Need help with the dmd package on NixOS

Thomas Mader thomas.mader at gmail.com
Wed May 9 19:58:48 UTC 2018


On Friday, 4 May 2018 at 20:27:33 UTC, Thomas Mader wrote:
> The dmd package on NixOS doesn't work anymore in their master 
> branch.

Since dmd still works correctly on the stable branch I tried to 
examine the differences of libphobos2.a.
I switched back to version 2.079.0 on master to have the same 
version as on stable.

First I diffed the outputs of 'ar -t libphobos2.a' but there 
weren't any differences.

But executing 'nm libphobos2.a' results in many errors like:

nm: 
/home/thomad/devel/nixpkgs/result/lib/libphobos2.a(object_1_257.o): no group info for section .text._D6object6Object5opCmpMFCQqZi
nm: 
/home/thomad/devel/nixpkgs/result/lib/libphobos2.a(object_1_257.o): no group info for section .text._D6object6Object5opCmpMFCQqZi
nm: object_1_257.o: Bad value
nm: 
/home/thomad/devel/nixpkgs/result/lib/libphobos2.a(object_5_391.o): no group info for section .text._D6object9Interface9__xtoHashFNbNeKxSQBjQBfZm
nm: 
/home/thomad/devel/nixpkgs/result/lib/libphobos2.a(object_5_391.o): no group info for section .text._D6object9Interface9__xtoHashFNbNeKxSQBjQBfZm
nm: object_5_391.o: Bad value

nm on the static lib of the stable branch has just one error:

nm: threadasm.o: no symbols

Looking into the output of both nm calls shows that a lot of 
sections are missing in the static phobos lib on the master 
branch.
The first being object_1_257.o.

Now I wonder how something like that is possible.



More information about the Digitalmars-d mailing list