i686-apple-darwin10 to i386-pc-linux-gnu, ld invoked with gnu options

Andrea Franceschini therealmorpheu5@gmail.com
Thu Jun 23 10:32:00 GMT 2011

Hi there.
I'm building a cross toolchain for i386-pc-linux-gnu on Mac OS X (it
says x86_64-apple-darwin10) and I'm facing a strange bug. According to
http://sourceware.org/ml/crossgcc/2010-10/msg00187.html should already
be good. Nonetheless this is what build.log has to say

[ALL  ]    x86_64-build_apple-darwin10.7.4-gcc  -pipe -DIN_GCC
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
 -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o
c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o
c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o
c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o
	  main.o  libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a  -liconv
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-lcloog -L/opt/crosstools-build/x86-build/.build/i386-pc-linux-gnu/build/static/lib
-lppl_c -lppl -lgmpxx -static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic
-lm -L/opt/crosstools-build/x86-build/.build/i386-pc-linux-gnu/build/static/lib
-lmpfr -lgmp
[ALL  ]    ld: unknown option: -Bstatic
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[2]: *** [cc1-dummy] Error 1
[ALL  ]    rm gcc.pod
[ERROR]    make[1]: *** [all-gcc] Error 2
[ERROR]    >>  Build failed in step 'Installing static core C compiler'
[ERROR]    >>
[ERROR]    >>  Error happened in: CT_DoExecLog[scripts/functions]
[ERROR]    >>        called from: do_cc_core[scripts/build/cc/gcc.sh@348]
[ERROR]    >>        called from: do_cc_core_pass_1[scripts/build/cc/gcc.sh@66]
[ERROR]    >>        called from: main[scripts/crosstool-NG.sh@582]
[ERROR]    >>
[ERROR]    >>  For more info on this error, look at the file: 'build.log'
[ERROR]    >>  There is a list of known issues, some with workarounds, in:
[ERROR]    >>      '/opt/local/share/doc/ct-ng-1.11.3/B - Known issues.txt'
[ERROR]    Build failed in step 'Installing static core C compiler'

(complete log at http://www.morpheu5.net/public/build-20110623-0.log)

To the best of my knowledge, this means Apple's ld is being invoked
using GNU options, which is clearly wrong. I'm using ct-ng 1.11.3 and
its Makefile is at http://www.morpheu5.net/public/Makefile-20110623-0

I may very well have made some mistake during configuration, so any
hint is appreciated. You can also find the .config resulting from
ct-ng menuconfig at http://www.morpheu5.net/public/config-20110623-0

Thanks a lot,


For unsubscribe information see http://sourceware.org/lists.html#faq

More information about the crossgcc mailing list