Build from source

Russel Winder via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Apr 9 23:55:25 PDT 2017


On Sun, 2017-04-09 at 20:37 +0000, kinke via digitalmars-d-ldc wrote:
> On Sunday, 9 April 2017 at 16:25:42 UTC, Russel Winder wrote:
> > /home/users/russel/BuildArea/LDC/bin/ldc2: error while loading 
> > shared libraries: libldc.so: cannot open shared object file: No 
> > such file or directory
> 
> Try omitting `-DBUILD_SHARED=True`, that's untested, mentioned 
> nowhere in the LDC docs and apparently doesn't work. ;)

Apparently what I think I meant was -DBUILD_SHARED_LIB=BOTH. So my
command line was really rather wrong. However, if I can now redirect
this thread as I now get a totally different error (oh the joy of an
over-general subject field):



make[2]: Entering directory '/home/users/russel/BuildArea/LDC'
[  3%] Generating src/rt/sections_elf_shared-debug-shared.o
cd /home/Checkouts/Git/LDC && /home/users/russel/BuildArea/LDC/bin/ldc2 --output-o -c -I/home/Checkouts/Git/LDC/runtime/druntime/src -I/home/Checkouts/Git/LDC/runtime/druntime/src/gc /home/Checkouts/Git/LDC/runtime/druntime/src/rt/sections_elf_shared.d -of/home/users/russel/BuildArea/LDC/runtime/src/rt/sections_elf_shared-debug-shared.o -w -g -link-debuglib -relocation-model=pic -d-version=Shared
Error: Incompatible declaration of runtime function '_d_dso_registry'
runtime/CMakeFiles/druntime-ldc-debug-shared.dir/build.make:1197: recipe for target 'runtime/src/rt/sections_elf_shared-debug-shared.o' failed
make[2]: *** [runtime/src/rt/sections_elf_shared-debug-shared.o] Error 1
make[2]: Leaving directory '/home/users/russel/BuildArea/LDC'
CMakeFiles/Makefile2:1090: recipe for target 'runtime/CMakeFiles/druntime-ldc-debug-shared.dir/all' failed
make[1]: *** [runtime/CMakeFiles/druntime-ldc-debug-shared.dir/all] Error 2
make[1]: Leaving directory '/home/users/russel/BuildArea/LDC'
Makefile:160: recipe for target 'all' failed



-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-ldc/attachments/20170410/89ffc8c1/attachment.sig>


More information about the digitalmars-d-ldc mailing list