This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: i686-apple-darwin10 to i386-pc-linux-gnu, ld invoked with gnu options


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


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