Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS

Alan Modra amodra@gmail.com
Fri May 18 03:26:00 GMT 2018


On Thu, May 17, 2018 at 06:50:59PM +0200, Thomas Mader wrote:
> Hello,
> 
> I need a little support to figure out a problem on NixOS with binutils.
> You will find detailed information here:
> https://github.com/NixOS/nixpkgs/issues/40397

Error messages like the following
nm: /home/thomad/devel/nixpkgs/result/lib/libphobos2.a(object_1_257.o): no group info for section .text._D6object6Object5opCmpMFCQqZi
indicate that the section mentioned has the SHF_GROUP flag set, ie. is
a member of a group, but BFD could not find a SHT_GROUP section
indexing the section.

There have been some fixes to binutils relating to groups, and better
error checking.  It's possible that some of those improvements have a
bug, but it's also possible that the library is faulty.  If you open a
binutils bugzilla, attaching one of the object files that
binutils-2.30 complains about, I'll take a look.

> 
> I don't think it's binutils bug because it works on Archlinux with binutils
> 2.30. Though they use one newer version of dmd/phobos but that should not
> matter as the Changelog doesn't mention any fixes regarding binutils and
> the build on NixOS also works with the same dmd/phobos version but binutils
> 2.28.1.
> 
> But somewhere is a bug and I am having a hard time figuring out in which
> direction to go from here or to narrow down the problem. So I thought I try
> to contact the binutils mailing list for help.
> 
> Thanks in advance
> Thomas

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list