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]

undefined reference to C++ constructs in libppl when linking cc1-dummy.exe


I am using crossstool-ng 1.8.1 built and hosted on cygwin and targeting powerpc 
linux uclibc.? 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++?? I have included the relevant error from 
the log.? The complete log is here: http://pastebin.com/Ugsy55a5
	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
	2. [ALL ?] ? 
?/opt/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib/libppl_c.a(ppl_c_BD_Shape_mpz_class.o):ppl_c_BD_Shape_mpz_class.cc:(.text+0xf6):
 undefined reference to `___cxa_begin_catch'
	3. [ALL ?] ? 
?/opt/x-tools/targets/powerpc-860-linux-uclibc/build/static/lib/libppl_c.a(ppl_c_BD_Shape_mpz_class.o):ppl_c_BD_Shape_mpz_class.cc:(.text+0x10f):
 undefined reference to `___cxa_end_catch'




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