This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/13225] New: post gcc3.3.2 Makefile changes break crosscompiling
- From: "olh at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2003 21:58:32 -0000
- Subject: [Bug bootstrap/13225] New: post gcc3.3.2 Makefile changes break crosscompiling
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This simple script works with plain 3.3.2, but it fails with the current CVS gcc-3_3-branch.
chmod 755 ../fixinc.sh
make[2]: Leaving directory `/home/toolchain/cross-test/obj/gcc/gcc/fixinc'
The directory that should contain system headers does not exist:
/home/toolchain/cross-test/x/lib/gcc-lib/i686-linux/3.3.2/../../../../i686-linux/sys-include
make[1]: *** [stmp-fixinc] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/toolchain/cross-test/obj/gcc/gcc'
make: *** [all-gcc] Error 2
Command exited with non-zero status 2
toolchain@papaya:~> find -name sys-include
./cross-test/x/i686-linux/sys-include
toolchain@papaya:~> ls -l /home/toolchain/cross-test/x/lib/
total 876
-rw-r--r-- 1 toolchain users 891234 Nov 28 22:53 libiberty.a
toolchain@papaya:~>
set -ex
export CROSS=$HOME/cross-test
export CROSSP=$CROSS/x
export PATH=$CROSSP/bin:$PATH
cd $HOME
#
rm -rf $CROSS
mkdir $CROSS
cd $CROSS
#
~olaf/bin/unrpm ~olaf/glibc-devel.rpm
#
tar xfj ~olaf/cross-ppc64-binutils/binutils-2.14.90.0.7.tar.bz2
cd binutils-2.14.90.0.7/
bzip2 -cd ~olaf/binutils-2.14.90.0.7-binutils-head.patch.bz2 | patch -Esp1
cd ..
tar xfj ~olaf/cross-ppc64-gcc-core/gcc-3.3.2.tar.bz2
cd gcc-3.3.2/
gzip -cd ~olaf/gcc-3_3-branch-20031128.diff.gz | patch -Esp0
cd ..
mkdir obj
cd obj/
mkdir binutils gcc
cd binutils/
powerpc32 $CROSS/binutils-2.14.90.0.7/configure --disable-nls --target=i686-linux --prefix=$CROSSP
make -j6
make install
cd ..
cd gcc
powerpc32 $CROSS/gcc-3.3.2/configure --disable-nls --target=i686-linux --prefix=$CROSSP --enable-languages=c --disable-shared --with-headers=$CROSS/usr/include
make -j6
make
make install
cd ..
--
Summary: post gcc3.3.2 Makefile changes break crosscompiling
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: i686-linux,powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13225