This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building native cross compiler



Currently I took the plunge and dumped the whole binutils directory in the main gcc source...will see how it goes after I selected --host=x86_64 and --target=powerpc, fingers crossed!
Nope! :-(

Same error, though things are a bit different with the binutils package:

Configuring in powerpc-redhat-linux/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-redhat-linux-gnu
checking host system type... powerpc-redhat-linux-gnu
checking for powerpc-redhat-linux-ar... /home/mz/gcc-test/gcc-build/./binutils/ar
checking for powerpc-redhat-linux-lipo... powerpc-redhat-linux-lipo
checking for powerpc-redhat-linux-nm... /home/mz/gcc-test/gcc-build/./gcc/nm
checking for powerpc-redhat-linux-ranlib... /home/mz/gcc-test/gcc-build/./binutils/ranlib
checking for powerpc-redhat-linux-strip... /home/mz/gcc-test/gcc-build/./binutils/strip
checking whether ln -s works... yes
checking for powerpc-redhat-linux-gcc... /home/mz/gcc-test/gcc-build/./gcc/xgcc -B/home/mz/gcc-test/gcc-build/./gcc/ -B/usr/powerpc-redhat-linux/bin/ -B/usr/powerpc-redhat-linux/lib/ -isystem /usr/powerpc-redhat-linux/include -isystem /usr/powerpc-redhat-linux/sys-include checking for suffix of object files... configure: error: in `/home/mz/gcc-test/gcc-build/powerpc-redhat-linux/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/mz/gcc-test/gcc-build'
make: *** [all] Error 2



I see ar, ranlib and strip have been picked up from the binutils directory though the error is exactly the same as before - line 83 exec not found (what exec id doesn't say). So, I presume I have to build binutils first and place the executables in prefix/target/bin, right?



MZ



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]