This is the mail archive of the 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: undefined reference to C++ constructs in libppl when linking cc1-dummy.exe

Doug, All,

On Tuesday 31 August 2010 22:39:31 Doug Crawford wrote:
> I am using crossstool-ng 1.8.1 built and hosted on cygwin and targeting powerpc 
> linux uclibc.

OK, it's known that the companion libs have issues on Cygwin when they are
built statically. Could you try to turn on:

Companion libraries  --->
  [*] Build shared companion libraries

It should fix the issue for now, but I'd really like to get rid of the
shared build, as it poses quite a few issues at run-time.

> It successfully builds libbackend.a then tries to link  
> cc1-dummy.exe but that step generates a lot of errors related to undefined 
> references to exception handlers and other C++ standard library stuff in 
> libppl_c.a.? When linking cc1-dummy.exe I see that that the link tool is 
> i686_build_pc_cygwin_gcc.? If libppl_c.a contains c++ constructs shouldn't the 
> link too be i686_build_pc_cygwin_g++?

Well, gcc is (should be) smart enough to see that it is only going to do
linking, and call the linker (almost) directly.

> I have included the relevant error from  
> the log.

> The complete log is here: 
> 	1. i686-build_pc-cygwin-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 
> -lstdc++ -lm -Wl,--stack,8388608 -o cc1-dummy.exe 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 rs6000-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/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib -lcloog 
> -L/opt/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib -lppl_c -lppl 
> -lgmpxx ?-L/opt/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib 
> -L/opt/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib -lmpfr -lgmp

-lstdc++ is missing... :-(
I'll look into that, but I do not have a Cygwin machine handy, so will rely
on you for testing...

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  |
| | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

For unsubscribe information see

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