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] |
Hello everyone, I managed to build a toolchain for LynxOS. It almost works: I have build with C and Ada, the build did not come through when adding C++. This is how I configured the compiler: ../gcc-4.0.3/configure --host=i686-pc-linux-gnu --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,ada --enable-threads=posix --with-newlib --with-sysroot=/home/ubuntu/gccbuild/target_root/ target_root contains lib,usr and sys from the target (actually from the cygwin environment on my Windoze, but they should be syncronized) I have succesfully compiled and executed a C-program (not threaded) and an Ada-program (without tasks). Next I made a little Ada program with two tasks, and ran my cross-gnatmake on it. the compilation went ok, but the linking produced this: /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_mutexattr_init': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:174: undefined reference to `pthread_mutexattr_create' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_mutexattr_destroy': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:191: undefined reference to `pthread_mutexattr_delete' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_condattr_init': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:278: undefined reference to `pthread_condattr_create' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_condattr_destroy': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:295: undefined reference to `pthread_condattr_delete' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_setschedparam': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:415: undefined reference to `pthread_setscheduler' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__sched_yield': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:457: undefined reference to `pthread_yield' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-osinte.o): In function `system__os_interface__pthread_key_create': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-osinte.adb:585: undefined reference to `pthread_keycreate' /opt/ppc/lib/gcc/ppc-elf-lynxos/4.0.3/adalib/libgnarl.a(s-taprop.o): In function `system__task_primitives__operations__create_task': /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-taprop.adb:944: undefined reference to `pthread_attr_create' /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-taprop.adb:944: undefined reference to `pthread_attr_create' /home/ubuntu/gccbuild/build_gcc/gcc/ada/rts/s-taprop.adb:984: undefined reference to `pthread_attr_delete' I tried to put the threaded versions of the C-libraries in 'sys-root'/lib, but that did not help. What went wrong here? Was it when building the tools or when building the application? Erlo Haugen System Software Engineer,RD&E Integrated Systems Terma A/S Vasekær 12 2730 Herlev Denmark T +45 8743 6000 T +45 4594 9851 (direct) F +45 8743 6001 E elh@terma.com w www.terma.com ____________________________________________________________________ Attention: This e-mail (and attachment(s), if any) - intended for the addressee(s) only - may contain confidential, copyright, or legally privileged information or material, and no one else is authorized to read, print, store, copy, forward, or otherwise use or disclose any part of its contents or attachment(s) in any form. If you have received this e-mail in error, please notify me by telephone or return e-mail, and delete this e-mail and attachment(s). Thank you. E-mail sent over the Internet can be tampered with. Therefore, neither Terma nor the sender of this e-mail assumes any responsibility for the contents of this e-mail. ____________________________________________________________________ -- 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] |