This is the mail archive of the crossgcc@sources.redhat.com 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] |
After a brief moment of happiness, the world fell apart again :-)) Here's a big picture: I need to build gcc 3 arm-elf cross compiler under cygwin I built binutils with no problems Configured gcc with the following: --target=arm-elf --prefix=/tools3 --enable-languages=c,c++ make all This built the compiler but failed to build libstdc++ because there were no crt0 .oand such. Built newlib - this created crt0.o and friends With crt0 etc in place I was able to finish building the cross-compiler So far so good. Now I'm trying to compile the following: void main() { unsigned long* foo = new unsigned long[24]; } When I try to build this code with my cross-compiler I get the following errors: $ /tools3/arm-elf/bin/g++ test.cpp $ /tools3/arm-elf/bin/g++ test.cpp /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(new_opv.o): In function `operator new[](unsigned long)': ../../../../gcc-3.0/libstdc++-v3/libsupc++/new_opv.cc:35: undefined reference to `LLSDA1' /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(eh_exception .o):../../../../gcc-3.0/libstdc++-v3/libsupc++/eh_exception.cc:36: undefined reference to `LLSDA7' /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(eh_personali ty.o): In function `base_of_encoded_value': ../../../../gcc-3.0/gcc/unwind-pe.h:98: undefined reference to `LLSDA8' /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(eh_terminate .o): In function `__cxxabiv1::__terminate(void (*)())': ../../../../gcc-3.0/libstdc++-v3/libsupc++/eh_terminate.cc:45: undefined reference to `LLSDA1' /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(new_op.o): I n function `operator new(unsigned long)': ../../../../gcc-3.0/libstdc++-v3/libsupc++/new_op.cc:41: undefined reference to `LLSDA1' /tools3/lib/gcc-lib/arm-elf/3.0/../../../../arm-elf/lib/libstdc++.a(eh_aux_runti me.o): In function `__cxa_bad_cast': ../../../../gcc-3.0/libstdc++-v3/libsupc++/eh_aux_runtime.cc:42: undefined reference to `LLSDA2' collect2: ld returned 1 exit status Can someone explain what's going on here ?? Thx Andy ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |