Linker errors building tools from git master
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Apr 18 10:15:39 PDT 2015
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__T7opIndexZ7opIndexMxFNaNbNiNewZb+0x21):
undefined reference to
`_D3std3uni107__T12mapTrieIndexTS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ20__T12mapTrieIndexTwZ12mapTrieIndexFNaNbNiNfwZm'
rdmd.d:(.text._D3std3uni152__T4TrieTS3std3uni20__T9BitPackedTbVmi1Z9BitPackedTwVmi1114112TS3std3uni23__T9sliceBitsVmi8Vmi21Z9sliceBitsTS3std3uni22__T9sliceBitsVmi0Vmi8Z9sliceBitsZ4Trie12__T7opIndexZ7opIndexMxFNaNbNiNewZb+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?
More information about the Digitalmars-d-learn
mailing list