This is the mail archive of the gcc@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: Can't build gcc 3.3.4 Linux to Sun Cross compiler


Mark Cuss wrote:
I'm attempting to build a gcc 3.3.4 linux to sun cross compiler.  I've
compiled binutils 2.14 and installed them into my $prefix directory and then
put $prefix/bin at the beginning of my $PATH.

../gcc-3.3.4/configure --host=$host --target=$target --with-sysroot=$sysroot
 --with-gnu-as --with-gnu-ld --enable-languages=c,c++,objc --disable-shared

You mentioned that binutils was installed into $prefix, but you did not use $prefix when configuring gcc. That is generally a mistake. You must use the same --prefix configure option when configuring both binutils and gcc. Otherwise, the cross gcc may not be able to find the cross binutils. Also, you want to put $prefix/bin on your PATH, but you mentioned that you did that.


You can debug the build problem by adding -v to the compiler command line that failed, and then looking at the output. It will probably say that gcc called "as", but the first as on your path is the native assembler, not the cross assembler.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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