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: *** SPAM ***The question


Hello Iztok!

Please, use the crossgcc mailing list for such questions.

On Tuesday 08 December 2009 13:07:59 Iztok Fister wrote:
> I thank you for using your cross compiler toolchain crosstools-NG that 
> I have been generated for processor GENE-5315 based on AMD Geode 
> processors. 
> While compiling the program HelloWorld.c the following messages were
> arisen:

Note that semingly-native toolchains may have issues, look at:
  docs/known-issues.txt

But yours seems different...

> GNU C (crosstool-NG-1.5.2) version 4.3.2 (i686-unknown-linux-gnu)
>       compiled by GNU C version 4.4.1 20090725 (Red Hat 4.4.1-2), GMP
> version 4.2.2, MPFR version 2.3.2.
> warning: GMP header version 4.2.2 differs from library version 4.2.4.
> warning: MPFR header version 2.3.2 differs from library version 2.4.1.

Woops... Something is wrong here. It looks as though the build did not
complete properly: finding the correct gmp/mpfr libraries should be
gracefully handled by the wrappers that are isntalled at the end of the
build. Could you run:
  ls -A1 /root/x-tools/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin
       '--> this is a 'one', not an 'ell'.

You should have something along the lines of:
  .i686-unknown-linux-gnu-as
  .i686-unknown-linux-gnu-g++
  .i686-unknown-linux-gnu-gcc
  .i686-unknown-linux-gnu-gcc-4.4.2
  .i686-unknown-linux-gnu-gdb
  .i686-unknown-linux-gnu-ld
  .i686-unknown-linux-gnu-readelf
  i686-unknown-linux-gnu-as
  i686-unknown-linux-gnu-g++
  i686-unknown-linux-gnu-gcc
  i686-unknown-linux-gnu-gcc-4.4.2
  i686-unknown-linux-gnu-gdb
  i686-unknown-linux-gnu-ld
  i686-unknown-linux-gnu-readelf

(I stripped the list for brevity)

If your list is not similar to the above, that is for every
i686-unknown-linux-gnu-XXX there is a .i686-unknown-linux-gnu-XXX
then the build was screwed.

Oh, by the way. Looks like you installed as root. Don't. It might break
things doing so.

>  as -V -Qy -osrc/Hello.o /tmp/cc8yzhix.s
> GNU assembler version 2.19.51.0.14 (i586-redhat-linux) using BFD version
> version 2.19.51.0.14-1.fc11 20090722

It is taking your _native_ 'as'. Weird. Definitely, something went wrong.

> ld: this linker was not configured to use sysroots

Yep. Native tools are not build for using sysroot. Looks like it also
picked your native 'ld'.

Try rebuilding the toolchain from scratch, as non-root.

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]