Building SDC from source

Joseph Rushton Wakeling via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 27 04:08:04 PDT 2014


Hi all,

I'm running into a little trouble trying to build SDC.  The first problem was 
that the makefile does not auto-detect the appropriate llvm-config, or the 
libphobos2 location, but that's simply enough fixed by doing (in my case):

     make LLVM_CONFIG=llvm-config-3.4 LD_PATH=/opt/dmd/lib64

It also needs libncurses5-dev to be installed (Debian/Ubuntu package name, may 
vary on other distros).

However, even allowing for this, the build still falls over when it reaches this 
stage:

gcc -o bin/sdc obj/sdc.o -m64  -L/opt/dmd/lib64 -lphobos2 -Llib -ld-llvm -ld 
`llvm-config-3.4 --ldflags` `llvm-config-3.4 --libs` -lstdc++ -export-dynamic 
-ldl -lffi -lpthread -lm -lncurses
bin/sdc -c -o obj/rt/dmain.o libsdrt/src/d/rt/dmain.d -Ilibsdrt/src
bin/sdc: error while loading shared libraries: libphobos2.so.0.66: cannot open 
shared object file: No such file or directory

This is a bit mysterious, as libphobos2.so.0.66 does indeed exist in the 
/opt/dmd/lib64 directory.  Or is this just an incompatible library version, with 
SDC expecting 2.065 .... ?

Can anyone advise?

Thanks & best wishes,

       -- Joe


More information about the Digitalmars-d-learn mailing list