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: Building a static toolchain ?


Arnaud, All,

On Saturday 10 April 2010 19:10:41 Arnaud Lacombe wrote:
> On Sat, Apr 10, 2010 at 6:50 AM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
> > Does not work for me:
> >
> > [ALL ?] ? ?libtool: link: x86_64-build_pc-linux-gnu-gcc -Wall -fomit-frame-pointer -pipe -o cloog cloog.o ?-L/home/ymorin/x-tools/armeb-unknown-linux-u
> > [ALL ?] ? ?/home/ymorin/x-tools/armeb-unknown-linux-uclibcgnueabi/lib/libppl_c.a(ppl_c_implementation_common.o): In function `ppl_delete_Grid_Generator
> > [ALL ?] ? ?ppl_c_implementation_common.cc:(.text+0x41a): undefined reference to `operator delete(void*)'
> > And many, many more errors related to C++ symbols...
> d'oh... certainly a missing -lstd++ ${somewhere},

What I thought. But cloog is built with:
 --with-host-libstdcxx='-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'

I have tried to manually link the sucker, but to no avail. I have to
understand why on earth libtool passes the above link flags *before* the
other libs. It must be *after*, or the libstdc++ will not be parsed for
required symbols.

> let me come back to 
> you with something cleaner. What is your .config btw ?

Attached. Makes me feel strange, as for the first time, someone is asking
*me* my .config to help me. Hehe! :-)

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.  |
'------------------------------^-------^------------------^--------------------'

Attachment: .config
Description: Text document

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