digitalmars.D.ldc - Build from source
- Russel Winder via digitalmars-d-ldc (40/40) Apr 09 2017 Hi,
- kinke (3/6) Apr 09 2017 Try omitting `-DBUILD_SHARED=True`, that's untested, mentioned
- Russel Winder via digitalmars-d-ldc (33/40) Apr 09 2017 Apparently what I think I meant was -DBUILD_SHARED_LIB=3DBOTH. So my
- Johan Engelen (4/17) Apr 10 2017 Just to make sure: did you clean the build dir, removed the cmake
- Russel Winder via digitalmars-d-ldc (15/33) Apr 10 2017 =A0
Hi, Given the hassles with BigInt I thought I ought to take David's advice and build LDC from Git master to see if that gave hint as to the problem. On Debian Sid, I did the CMake: cmake -DCMAKE_INSTALL_PREFIX=3D$HOME/Built -DCMAKE_BUILD_TYPE=3DRelease -DBUILD_SHARED=3DTrue /home/Checkouts/Git/LDC then on build, after some successes: =E2=80=A6 cd /home/users/russel/BuildArea/LDC/runtime && ../bin/gen_gccbuiltins /home= /users/russel/BuildArea/LDC/runtime/gccbuiltins_s390.di s390 [=C2=A0=C2=A03%] Generating src/core/atomic-debug-shared.o cd /home/Checkouts/Git/LDC && /home/users/russel/BuildArea/LDC/bin/ldc2 --o= utput-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/s= rc/core/atomic.d -of/home/users/russel/BuildArea/LDC/runtime/src/core/atomi= c-debug-shared.o -w -g -link-debuglib -relocation-model=3Dpic -d-version=3D= Shared /home/users/russel/BuildArea/LDC/bin/ldc2: error while loading shared libra= ries: libldc.so: cannot open shared object file: No such file or directory runtime/CMakeFiles/druntime-ldc-debug-shared.dir/build.make:69: recipe for = target 'runtime/src/core/atomic-debug-shared.o' failed make[2]: *** [runtime/src/core/atomic-debug-shared.o] Error 127 make[2]: Leaving directory '/home/users/russel/BuildArea/LDC' CMakeFiles/Makefile2:1090: recipe for target 'runtime/CMakeFiles/druntime-l= dc-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 This seems a bit unfair=E2=80=A6 =20 --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Apr 09 2017
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 directoryTry omitting `-DBUILD_SHARED=True`, that's untested, mentioned nowhere in the LDC docs and apparently doesn't work. ;)
Apr 09 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:Apparently what I think I meant was -DBUILD_SHARED_LIB=3DBOTH. 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' [=C2=A0=C2=A03%] Generating src/rt/sections_elf_shared-debug-shared.o cd /home/Checkouts/Git/LDC && /home/users/russel/BuildArea/LDC/bin/ldc2 --o= utput-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/s= rc/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-mod= el=3Dpic -d-version=3DShared Error: Incompatible declaration of runtime function '_d_dso_registry' runtime/CMakeFiles/druntime-ldc-debug-shared.dir/build.make:1197: recipe fo= r 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-l= dc-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 --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder/home/users/russel/BuildArea/LDC/bin/ldc2: error while loading=C2=A0 shared libraries: libldc.so: cannot open shared object file: No=C2=A0 such file or directory=20 Try omitting `-DBUILD_SHARED=3DTrue`, that's untested, mentioned=C2=A0 nowhere in the LDC docs and apparently doesn't work. ;)
Apr 09 2017
On Monday, 10 April 2017 at 06:55:25 UTC, Russel Winder wrote:On Sun, 2017-04-09 at 20:37 +0000, kinke via digitalmars-d-ldc wrote:Just to make sure: did you clean the build dir, removed the cmake cache, etc.? Basically started from scratch? - JohanOn Sunday, 9 April 2017 at 16:25:42 UTC, Russel Winder wrote: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):/home/users/russel/BuildArea/LDC/bin/ldc2: error while loading shared libraries: libldc.so: cannot open shared object file: No such file or directoryTry omitting `-DBUILD_SHARED=True`, that's untested, mentioned nowhere in the LDC docs and apparently doesn't work. ;)
Apr 10 2017
On Mon, 2017-04-10 at 16:48 +0000, Johan Engelen via digitalmars-d-ldc wrote:On Monday, 10 April 2017 at 06:55:25 UTC, Russel Winder wrote:=A0On Sun, 2017-04-09 at 20:37 +0000, kinke via digitalmars-d-ldc=C2=A0 wrote:On Sunday, 9 April 2017 at 16:25:42 UTC, Russel Winder wrote:/home/users/russel/BuildArea/LDC/bin/ldc2: error while=C2=A0 loading shared libraries: libldc.so: cannot open shared=C2=A0 object file: No such file or directory=20 Try omitting `-DBUILD_SHARED=3DTrue`, that's untested, mentioned=C2=I did an rm -rf * in the build directory and re-ran cmake so yes, I am fairly certain I cleaned the directories. :-) --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder=20 Just to make sure: did you clean the build dir, removed the cmake=C2=A0 cache, etc.? Basically started from scratch?nowhere in the LDC docs and apparently doesn't work. ;)=20 Apparently what I think I meant was -DBUILD_SHARED_LIB=3DBOTH. So=C2=A0 my command line was really rather wrong. However, if I can now=C2=A0 redirect this thread as I now get a totally different error (oh=C2=A0 the joy of an over-general subject field):
Apr 10 2017