[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: reverse_cross is supported in gcc-4.2



Hello,

It looks like cross builds are broken on this version, at least for me
on several arches. It fails to change to directory ../src/fixincludes/

do you experience the same issue?

----

MIPS error log
----------------------
: # Install directories
rm -rf debian/tmp
mkdir -p debian/tmp/lib debian/tmp/usr debian/tmp/usr/lib/debug
: # Install everything
PATH=/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/bin:$PATH \
        \
         /usr/bin/make -C
/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/build \
           CFLAGS="-O2" \
           LDFLAGS="" \
           BOOT_CFLAGS="-O2" \
           DESTDIR=/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/debian/tmp
\
           infodir=/usr/share/info \
           mandir=/usr/share/man \
               install
make[2]: Entering directory
`/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/build'
make[3]: Entering directory
`/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/build'
/bin/sh ../src/mkinstalldirs
/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/debian/tmp/usr
/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/debian/tmp/usr
/bin/sh: line 3: cd: ./fixincludes: No such file or directory
make[3]: *** [install-fixincludes] Error 1
make[3]: Leaving directory
`/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/build'
make[2]: *** [install] Error 2
make[2]: Leaving directory
`/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1/build'
make[1]: *** [stamps/07-install-stamp] Error 2
make[1]: Leaving directory `/home/toolchain/trunk/mips/gcc-4.2-4.2-20070627-1'
make: *** [stamps/07-install-stamp] Error 2


2007/7/7, Neil Williams <linux@codehelp.co.uk>:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431086

> One issue that arose during DebConf7 relates to an upstream behaviour of
> gcc that is not working inside the debian packaging code.
>
> Emdebian has been building cross-compiler toolchains for some time but
> in order to be able to build all Emdebian packages from source, we need
> to be able to cross build gcc, not to provide a cross compiler but to
> provide some core libraries - specifically libgcc1 and libstsdc++6-foo
> - cross built for a different host.
>
> e.g.
> Build=amd64|i386|powerpc
> Host=arm
> Target=arm
>
> compared to
> build=amd64|i386|powerpc
> host=amd64|i386|powerpc
> target=arm
> for a standard cross-compiler.
>
> As host==target this isn't a full canadian cross, more of a reverse
> cross.
>
> A normal arm-linux-gnu-gcc etc. toolchain is used to build these
> packages.

The patch has now been included in gcc-4.2:

Source: gcc-4.2
Source-Version: 4.2-20070707-1

We believe that the bug you reported is fixed in the latest version of
gcc-4.2, which is due to be installed in the Debian FTP archive:

...

Changes:
 gcc-4.2 (4.2-20070707-1) unstable; urgency=low
 .
   [Matthias Klose]
   * Update to SVN 20070707 from the ubuntu/gcc-4_2-branch.
     - debian/patches/libjava-soname.dpatch: Remove.
     - debian/patches/disable-configure-run-check.dpatch: Update.
   * Only suggest multilib packages on multilib architectures.
   * Point ICE messages to the 4.2 docdir.
   * Explicitely use fastjar to build gcj-4.1. Addresses: #416001.
   * Configure with --enable-libgcj on m32r (Kazuhiro Inaoka).
   * Include the hppa64 cross compiler on hppa snapshot builds.
   * debian/patches/arm-libffi.dpatch: Update.
   * libgcj-doc: Include the generated documentation.
   * Fix building the libjava/classpath examples.
   * Support reverse cross builds (Neil Williams). Closes: #431086.

--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/





--
Héctor Orón



Reply to: