cmake and Subsurface builds

Dirk Hohndel dirk at hohndel.org
Fri Apr 10 11:49:24 PDT 2015


On Fri, Apr 10, 2015 at 06:27:10PM +0100, Pedro Neves wrote:
> On 10-04-2015 18:03, Dirk Hohndel wrote:
> >As Tomaz suggested, could you try this from a clean tree? If network
> >bandwidth is a concern you could move /home/willem/subsurface/marble-source
> >to a different directory and clone from there (so you don't need to
> >re-download all of marble)
> >
> Hi:
> 
> I've removed my src directory and started with a new install as per the
> instructions on the site:
> 
> mkdir -p ~/src
> cd ~/src
> git clone -b v4.4.1 git://subsurface-divelog.org/subsurface
> ./subsurface/scripts/build.sh
> 
> After a while I get the following error:
> 
> Konsole output
> Linking CXX executable TestGpsCoords
> Linking CXX executable TestParse
> //usr/bin/ld: usr/usr//binlib//gccld/:x86_64 /-usrlinux/-libgnu//gcc4.9//x86_64.-.linux/.-.gnu//.4.9.//.x86_64.-/linux.-.gnu//.libgit2.a.(/cache.c.ox86_64)-:linux
> -undefinedgnu /referencelibgit2.a (tocache.c.o )symbol:
> 'undefinedpthread_rwlock_wrlock @reference@ GLIBC_2
> .2.5to'
> symbol/ lib'/pthread_rwlock_wrlockx86_64 at -@linuxGLIBC_2.2.5-'gnu
> //libpthread.so.0lib:/ x86_64error- linuxadding- gnusymbols/:libpthread.so.0
> :DSO  errormissing  addingfrom  symbolscommand:  lineDSO
> collect2: error: ld returned 1 exit status
> missing from command line
> collect2: error: ld returned 1 exit status

This looks like an issue with a missing library from the link line or more
likely ordering of the libraries. Sounds pthread related... but something
is really weird about this output... it's all garbled: 
" usr/usr//binlib//gccld/:x86_64" ???

Can you do this, please:

cd ~/src/subsurface/build
make 2>&1 | tee /tmp/linkfailure.log

and then attache /tmp/linkfailure.log to an email?

Thanks

/D


More information about the subsurface mailing list