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

Bryan Hundven bryanhundven@gmail.com
Thu Jun 23 11:36:00 GMT 2011


Andrea, all,

On Thu, Jun 23, 2011 at 3:32 AM, Andrea Franceschini
<therealmorpheu5@gmail.com> wrote:
> 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

Hah, looking at that email what I see is someone sending the list some
patches, and Yann saying "no".
So it doesn't seem to be good.

>
> [ALL  ]    x86_64-build_apple-darwin10.7.4-gcc  -pipe -DIN_GCC
> -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings
> -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
> -L/opt/crosstools-build/x86-build/.build/i386-pc-linux-gnu/build/static/lib
> -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
> -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]
> [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]
> [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

Um. Apples 'ld' is not gnu/binutils, and that is what the crosstool-ng
build expects.

> 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

Please read:

http://crosstool-ng.org/hg/crosstool-ng/file/8bb5151c5b01/docs/C%20-%20Misc.%20tutorials.txt#l41

> Thanks a lot,
>
> --
> Andrea
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>

-Bryan

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



More information about the crossgcc mailing list