Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 09, 2017 Build from source | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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=$HOME/Built -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=True /home/Checkouts/Git/LDC then on build, after some successes: … cd /home/users/russel/BuildArea/LDC/runtime && ../bin/gen_gccbuiltins /home/users/russel/BuildArea/LDC/runtime/gccbuiltins_s390.di s390 [ 3%] Generating src/core/atomic-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/core/atomic.d -of/home/users/russel/BuildArea/LDC/runtime/src/core/atomic-debug-shared.o -w -g -link-debuglib -relocation-model=pic -d-version=Shared /home/users/russel/BuildArea/LDC/bin/ldc2: error while loading shared libraries: 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-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 This seems a bit unfair… -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 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 |
April 09, 2017 Re: Build from source | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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. ;)
|
April 10, 2017 Re: Build from source | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke Attachments:
| 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@ekiga.net 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 |
April 10, 2017 Re: Build from source | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | 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:
>> 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):
Just to make sure: did you clean the build dir, removed the cmake cache, etc.? Basically started from scratch?
- Johan
|
April 10, 2017 Re: Build from source | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen Attachments:
| 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: > > 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): > > Just to make sure: did you clean the build dir, removed the cmake cache, etc.? Basically started from scratch? I did an rm -rf * in the build directory and re-ran cmake so yes, I am fairly certain I cleaned the directories. :-) -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 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 |
Copyright © 1999-2021 by the D Language Foundation