[M3devel] Didn't happen for long time now... pthread related error while ./scripts/do-cm3-std.sh

Tony Hosking hosking at cs.purdue.edu
Wed Jan 9 17:05:57 CET 2008


On Jan 8, 2008, at 8:24 AM, Jay wrote:

> Not my area of expertise, but, try this:
>
>  > "LIBC" : [ "-lm", "-L/usr/lib", "-lpthread" ],
>  > "PTHREAD" : [ ],

PTHREAD is no longer used, so can safely be discarded.  LIBC should  
indeed contain "-lpthread" where pthreads are not part of libc.

>
>
> and look here:
>
> http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/ 
> src/config/LINUXLIBC6?rev=1.20;content-type=text%2Fplain
>
> or here:
>
> http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/ 
> src/config-no-install/LINUXLIBC6?rev=1.10;content-type=text%2Fplain
>
> ..ok, which suggests really, try this:
>
>   "LIBC"       : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lm", "- 
> L/usr/lib", "-lpthread" ],
>
> and remove the PTHREAD line. (My suggest was from memory of - 
> lpthread being on the LIBC line.)
>
>  - Jay
>
>
>
> > From: dragisha at m3w.org
> > To: m3devel at elegosoft.com
> > Date: Tue, 8 Jan 2008 09:13:22 +0100
> > Subject: [M3devel] Didn't happen for long time now... pthread  
> related error while ./scripts/do-cm3-std.sh build
> >
> > I have Fedora6 on this box, and I've building cm3 for long time  
> on it.
> > Last night ago I've updated my local repo to CVS head, and tried  
> this
> > script.. It breaks on every package linking pthread, looks like.  
> Then I
> > cd to package folder, type "cm3", and it links ok. Example is at  
> end of
> > message.
> >
> > cm3.cfg changes? Here is what I think is relevant in my current.
> >
> >
> > % grep -i pthread /usr/local/cm3/bin/cm3.cfg -A1 -B1
> > "LIBC" : [ "-lm" ],
> > "PTHREAD" : ["-L/usr/lib", "-lpthread"],
> > %-- not on most Linux platforms
> > --
> > SYSTEM_LIBORDER = [ "OPENGL", "DECPEX", "MOTIF", "X11", "TCP",  
> "ODBC",
> > "POSTGRES95", "FLEX-BISON", "LEX-YACC", "LI! BC",
> > "PTHREAD" ]
> >
> > TIA,
> > dd
> >
> >
> > > === package m3-tools/m3totex ===
> > > +++ cm3 -DPTHREAD -build -override -DROOT='/home/dragisha/src/ 
> cm3-cvshead-0629/cm3' -DCM3_VERSION_TEXT='d5.5.1' - 
> DCM3_VERSION_NUMBER='050501' -DCM3_LAST_CHANGED='2007-12-30' +++
> > > --- building in LINUXLIBC6 ---
> > >
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-tools/m3bundle/ 
> LINUXLIBC6/m3bundle -name B -F/var/tmp/qk
> > > new source -> compiling B.i3
> > > new source -> compiling B.m3
> > > new source -> compiling m3totex.m3
> > > -> linking m3totex
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `sem_init'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_key_create'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3c! ore/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_attr_sets  
> tacksize'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_kill'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_getspecific'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_create'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to  
> `pthread_attr_getstacksize'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `sem_post'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_detach'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `sem_getvalue'
> > > /home/dragisha/src/cm3-cvshea! d-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `pthread_setspecific'
> > > /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/ 
> LINUXLIBC6/libm3core.so: undefined reference to `sem_wait'
> > > collect2: ld returned 1 exit status
> > > Fatal Error: package build failed
> > > *** execution of failed ***
> > > faramir:dragisha/pts/7: src/cm3-cvshead-0629/cm3% cd m3-tools/ 
> m3totex
> > > faramir:dragisha/pts/7: cm3/m3-tools/m3totex% cm3
> > > --- building in LINUXLIBC6 ---
> > >
> > > ignoring ../src/m3overrides
> > >
> > > -> linking m3totex
> > > faramir:dragisha/pts/7: cm3/m3-tools/m3totex% which cm3
> > > /usr/local/cm3/bin/cm3
> > > faramir:dragisha/pts/7: cm3/m3-tools/m3totex% echo $CM3
> > > cm3 -DPTHREAD
> > >
> > --
> > Dragiša Durić <dragisha at m3w.org>
> >
>
>
> Watch "Cause Effect," a show abo! ut real people making a real  
> difference. Learn more




More information about the M3devel mailing list