digitalmars.D.learn - Linker errors building tools from git master
- Gary Willoughby (37/37) Apr 18 2015 I've cloned the main repositories and i'm trying to get
- Gary Willoughby (3/4) Apr 19 2015 This seems to be because i wasn't correctly specifying the newly
I've cloned the main repositories and i'm trying to get everything building successfully. DMD, druntime and phobos all built without a hitch. When building the tools however i'm getting a lot of warnings from new compiler features (which is to be expected i guess) but i'm also getting linker errors. Here was my original build command: make -f posix.mak MODEL=64 DMD=../dmd/src/dmd -j5; That issues errors so i decided to use this: rdmd --build-only --compiler=/media/Data/Projects/D/dmd/dmd/src/dmd --force rdmd.d and here's the output: /tmp/.rdmd-1000/rdmd-rdmd.d-85BBF62A27A6AB51B8E0A092D252C29C/objs/rdmd.o: In function `_D3std3uni152__T4TrieTS3std3uni20__T9BitPackedTbVmi1Z9BitPackedTwVmi1114112TS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ4Trie12__T7opIndexZ7opIndexMxFNaNbNiNewZb': rdmd.d:(.text._D3std3uni152__T4TrieTS3std3uni20__T9BitPackedTbVmi1Z9BitPackedTwVmi1114112TS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ4Trie12__T7opIndexZ7opIndexM FNaNbNiNewZb+0x21): undefined reference to `_D3std3uni107__T12mapTrieIndexTS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ20__T12mapTrieIndexTwZ12mapTrieIndexFNaNbNiNfwZm' rdmd.d:(.text._D3std3uni152__T4TrieTS3std3uni20__T9BitPackedTbVmi1Z9BitPackedTwVmi1114112TS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ4Trie12__T7opIndexZ7opIndexM FNaNbNiNewZb+0x43): undefined reference to `_D3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBits13__T6opCallTwZ6opCallFNaNbNiNfwZk' /tmp/.rdmd-1000/rdmd-rdmd.d-85BBF62A27A6AB51B8E0A092D252C29C/objs/rdmd.o: In function `_D3std5stdio4File13__T6readlnTaZ6readlnMFKAawZm': rdmd.d:(.text._D3std5stdio4File13__T6readlnTaZ6readlnMFKAawZm+0xce): undefined reference to `_D3std5stdio10readlnImplFPOS4core4stdc5stdio8_IO_FILEKAawE3std5stdio4File11OrientationZm' collect2: error: ld returned 1 exit status --- errorlevel 1 Here is my dmd.conf: [Environment32] DFLAGS=-I/media/Data/Projects/D/dmd/phobos -I/media/Data/Projects/D/dmd/druntime/import -L-L/usr/lib/i386-linux-gnu -L--export-dynamic [Environment64] DFLAGS=-I/media/Data/Projects/D/dmd/phobos -I/media/Data/Projects/D/dmd/druntime/import -L-L/usr/lib/x86_64-linux-gnu -L--export-dynamic Any ideas why i'm getting these linker errors?
Apr 18 2015
On Saturday, 18 April 2015 at 17:15:40 UTC, Gary Willoughby wrote:Any ideas why i'm getting these linker errors?This seems to be because i wasn't correctly specifying the newly generated phobos lib in the dmd.conf.
Apr 19 2015