Either I'm confused or the gc is

donallen donaldcallen at gmail.com
Thu Oct 22 19:38:42 UTC 2020


On Thursday, 22 October 2020 at 18:54:24 UTC, tsbockman wrote:
> On Thursday, 22 October 2020 at 04:02:10 UTC, donallen wrote:
>> I tried this. With the gc on, the problem still occurs.
>>
>> I am working on 64-bit Arch Linux systems, up-to-date, DMD64 D 
>> Compiler v2.094.0
>
> Have you tried using a different compiler?

Yes -- to no avail:
dca at franz:~/Software/newcash_d/verifier$ make
cd ../library ; make
make[1]: Entering directory '/home/dca/Software/newcash_d/library'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/dca/Software/newcash_d/library'
#dmd -g -profile=gc -I=../library -L='-lsqlite3' verifier.d 
../library/lib.o
ldc -g -I=../library -L='-lsqlite3' verifier.d ../library/lib.o
../library/lib.o:lib.d:function 
_D3std9exception__T7bailOutHTC9ExceptionZQwFNaNfAyamMAxaZv: 
error: undefined reference to '_d_throwdwarf'
../library/lib.o:lib.d:function 
_D3std3utf__T10decodeImplVbi1VEQBd8typecons__T4FlagVAyaa19_7573655265706c6163656d656e744463686172ZQCai0TAxwZQDrFNaQkKmZw: error: undefined reference to '_d_throwdwarf'
../library/lib.o:lib.d:function 
_D3std6format__T14formattedWriteTSQBg5array__T8AppenderTAyaZQoTaTAaZQCaFNaNfKQBsMxAaQtZk: error: undefined reference to '_d_throwdwarf'
../library/lib.o:lib.d:function 
_D3std6format__T6getNthVAyaa13_696e7465676572207769647468SQCe6traits10isIntegralTiTAaZQCsFNaNfkQmZi: error: undefined reference to '_d_throwdwarf'
../library/lib.o:lib.d:function 
_D3std6format__T13formatElementTSQBf5stdio4File17LockingTextWriterTAyaTaZQCfFNfKQBwQqMKxSQDjQDi__T10FormatSpecTaZQpZv: error: undefined reference to '__dmd_begin_catch'
../library/lib.o:lib.d:function 
_D3std6format__T15formatValueImplTSQBh5stdio4File17LockingTextWriterTwTaZQCfFNfKQBuwMKxSQDiQDh__T10FormatSpecTaZQpZv: error: undefined reference to '_memset32'
../library/lib.o:lib.d:DW.ref.__dmd_personality_v0: error: 
undefined reference to '__dmd_personality_v0'
../library/lib.o:lib.d:function 
_D3std9algorithm9iteration__T8splitterVAyaa6_61203d3d2062TQtTQwZQBjFQBdQBgZ6Result11__xopEqualsFKxSQDtQDsQDl__TQDeVQCya6_61203d3d2062TQDrTQDvZQEjFQEdQEgZQDaKxQCiZb: error: undefined reference to '_D4core8internal5array8equality__T8__equalsTyaTyaZQqFNaNbNiNfMAyaMQeZb'
../library/lib.o:lib.d:function 
_D3std9algorithm9iteration__T8splitterVAyaa6_61203d3d2062TQtTQwZQBjFQBdQBgZ6Result11__xopEqualsFKxSQDtQDsQDl__TQDeVQCya6_61203d3d2062TQDrTQDvZQEjFQEdQEgZQDaKxQCiZb: error: undefined reference to '_D4core8internal5array8equality__T8__equalsTyaTyaZQqFNaNbNiNfMAyaMQeZb'
../library/lib.o:lib.d:function 
_D3std4conv__T10emplaceRefTAyaTQeTQhZQxFKQoKQrZ1S11__xopEqualsFKxSQCmQCl__TQCjTQCaTQCeTQCiZQCzFKQCrKQCvZQCfKxQBsZb: error: undefined reference to '_D4core8internal5array8equality__T8__equalsTyaTyaZQqFNaNbNiNfMAyaMQeZb'
../library/lib.o:lib.d:function 
_D4core8internal5array8equality__T8__equalsTxAyaTxQfZQtFNaNbNiNfMAxQwMQfZb: error: undefined reference to '_D4core8internal5array8equality__T8__equalsTyaTyaZQqFNaNbNiNfMAyaMQeZb'
collect2: error: ld returned 1 exit status
Error: /usr/bin/cc failed with status: 1
make: *** [makefile:11: verifier] Error 1
dca at franz:~/Software/newcash_d/verifier$ make
cd ../library ; make
make[1]: Entering directory '/home/dca/Software/newcash_d/library'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/dca/Software/newcash_d/library'
#dmd -g -profile=gc -I=../library -L='-lsqlite3' verifier.d 
../library/lib.o
gdc -g -I=../library -L='-lsqlite3' verifier.d ../library/lib.o
verifier.d:4:8: error: module lib is in file 'lib.d' which cannot 
be read
     4 | import lib;
       |        ^
import path[0] = /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/d
make: *** [makefile:11: verifier] Error 1
dca at franz:~/Software/newcash_d/verifier$ ls -l ../library/lib.d
-rw-r--r-- 1 dca allen 12244 Oct 20 11:19 ../library/lib.d
dca at franz:~/Software/newcash_d/verifier$

I hate to say this, because so much of this project makes sense 
to me -- the design of the language, the effort that has been put 
into documentation, the helpfulness of the community -- but I 
think I have to throw in the towel. I can't spend any more time 
on this and it appears that D is just not solid enough for the 
work I'm trying to do with it.



More information about the Digitalmars-d mailing list