trouble when linking with my toolchain

Khem Raj khem@mvista.com
Fri Jun 16 18:01:00 GMT 2006


Erlo Haugen said the following on 06/16/2006 02:50 AM:
> 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'
>
>
>   
are you specifying -lpthread to linker/gcc commandline?
> 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
>
>   


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list