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]

RE: trouble when linking with my toolchain


  

> -----Original Message-----
> From: Khem Raj [mailto:khem@mvista.com] 
> Sent: 16. juni 2006 20:01
> To: Erlo Haugen
> Cc: crossgcc@sourceware.org
> Subject: Re: trouble when linking with my toolchain
> 
> 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-osin
te.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-osin
te.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-osin
te.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-osin
te.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-osin
te.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-osin
te.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-osin
te.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-tapr
op.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?

Good point. I just ran gnatmake in the beleif that it would set the
correct linker flags.
When I have used gnatmake on windows (gnat315), it has not been
neccessary to speciy any
flags in order to get the correct libiraries linked in. I will give it a
try.

Erlo

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