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: crosstool-ng build failure with default arm-unknown-linux-uclibcgnueabi sample


Hello Thomas!
Hello All!

On Tuesday 01 December 2009 22:34:03 Thomas Petazzoni wrote:
> I'm having a build failure with the current (mercurial) crosstool-ng
> while building the toolchain of sample arm-unknown-linux-uclibcgnueabi
> sample.
> It fails while compiling the first gcc compiler

It just worked fine for me here:

--8<--
[INFO ]  Installing C library headers: done in 4.58s (at 05:26)
[INFO ]  =================================================================
[INFO ]  Installing static core C compiler
[EXTRA]    Configuring static core C compiler
[EXTRA]    Building static core C compiler
[EXTRA]    Installing static core C compiler
[INFO ]  Installing static core C compiler: done in 93.74s (at 07:00)
[INFO ]  =================================================================
[INFO ]  Installing C library
--8<--

[it bails out while trying to build ltrace, later, but that's nother issue]

> .config and build.log attached.

I extracted the failing commandline from your log file (i486.dat, in the
diff below), and compared it to the one from mine (x86_64.dat, below):

--8<--
# diff -u i486.dat x86_64.dat
--- i486.dat    2009-12-01 23:36:45.000000000 +0100
+++ x86_64.dat  2009-12-01 23:36:48.000000000 +0100
@@ -1,4 +1,4 @@
-i486-build_pc-linux-gnu-gcc
+x86_64-build_pc-linux-gnu-gcc
 -c
 -pipe
 -DIN_GCC
@@ -20,18 +20,18 @@
 -DGENERATOR_FILE
 -I.
 -Ibuild
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/build
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/../include
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/../libcpp/include
--I/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/include
--I/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/include
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/../libdecnumber
--I/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/../libdecnumber/dpd
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/build
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/../include
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/../libcpp/include
+-I/home/ymorin/x-tools/arm-unknown-linux-uclibcgnueabi/include
+-I/home/ymorin/x-tools/arm-unknown-linux-uclibcgnueabi/include
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/../libdecnumber
+-I/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/../libdecnumber/dpd
 -I../libdecnumber
--I/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/include
--I/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/include
+-I/home/ymorin/x-tools/arm-unknown-linux-uclibcgnueabi/include
+-I/home/ymorin/x-tools/arm-unknown-linux-uclibcgnueabi/include
 -DCLOOG_PPL_BACKEND
 -o
 build/genmodes.o
-/home/thomas/projets/crosstool-ng/targets/src/gcc-4.4.0/gcc/genmodes.c
+/home/ymorin/dev/crosstool-NG/ct-ng.temp/targets/src/gcc-4.4.0/gcc/genmodes.c
--8<--

OK, so apart from the path being different, there is nothing that differs:
this is the exact same command line. Well, you're using an i486 host while
I'm using an x86_64, but that should not be an issue. Or may be it is...

> with /[...]/arm-unknown-linux-uclibcgnueabi/bin/as:
> unrecognized option '-Qy'

There's no mention of any '-Qy' option in the as man page (nor is there any
on the online manual either).

Hmm, doing the command by hand, and adding '--verbose -Wl,--verbose' gives
me (excerpt):

--8<--
[...]
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/cc1 [...] -Wno-variadic-macros
-Wno-overlength-strings -version -o - |
 as -V -Qy -o build/genmodes.o -
[...]
--8<--

Hey! Looks like it's calling the _native_ assembler, here, while yours seems
to be calling the _cross_ assembler?!? WTF is going on here?

OK, I'll look a bit more in depth at the log file to see why it does so.
I'll try to replicate the problem on my i686 netbook, but that machine is
slow, so if you have a little time to investigate on your side in the
meantime...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
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]