For the adventurous: News from the LDC/Linux front

Joseph Rushton Wakeling via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 12 10:12:46 PDT 2014


On 10/07/14 01:35, David Nadlinger via Digitalmars-d wrote:
> A few lost hairs and an implementation of weak symbols later, this should now be
> fixed in Git master.
>
> In other words, there are currently no known issues with shared libraries, so
> everybody test away. ;)

Hmm, I just rebuild current git master from a fresh pull, and the problem is 
still there. :-(

This is a fresh build on Ubuntu 14.04 with cmake called via:

     cmake -DCMAKE_INSTALL_PREFIX=/opt/ldc -DBUILD_SHARED_LIBS=ON ..

Then if I try to build and run the hap.random benchmark with

     ldmd2 -I./source -O -inline -release -ofbenchmarknew benchmarknew.d 
source/hap/random/adaptor.d source/hap/random/distribution.d 
source/hap/random/generator.d source/hap/random/package.d source/hap/random/traits.d

     ./benchmarknew

.... the latter falls over with the error previously mentioned:
error while loading shared libraries: libphobos2-ldc.so.65: cannot open shared 
object file: No such file or directory.

I note that when "make install" is run, then after libphobos2-ldc.so is 
installed, I see the following:

-- Removed runtime path from "/opt/ldc/lib/libphobos2-ldc.so.2.0.65"
-- Installing: /opt/ldc/lib/libdruntime-ldc-debug.so.2.0.65
-- Installing: /opt/ldc/lib/libdruntime-ldc-debug.so.65
-- Installing: /opt/ldc/lib/libdruntime-ldc-debug.so
-- Installing: /opt/ldc/lib/libphobos2-ldc-debug.so.2.0.65
-- Installing: /opt/ldc/lib/libphobos2-ldc-debug.so.65
-- Installing: /opt/ldc/lib/libphobos2-ldc-debug.so
-- Removed runtime path from "/opt/ldc/lib/libphobos2-ldc-debug.so.2.0.65"

... is this relevant?


More information about the Digitalmars-d mailing list