This is the mail archive of the
mailing list for the binutils project.
Re: Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
- From: Alan Modra <amodra at gmail dot com>
- To: Thomas Mader <thomas dot mader at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 18 May 2018 12:56:10 +0930
- Subject: Re: Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
- References: <CAEKaCQ0_pi=Y_YNzxsgPU6mfOrsLwTDDTPAag8_1j_TiUQbP0g@mail.gmail.com>
On Thu, May 17, 2018 at 06:50:59PM +0200, Thomas Mader wrote:
> I need a little support to figure out a problem on NixOS with binutils.
> You will find detailed information here:
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
> 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
Australia Development Lab, IBM