This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
- From: Thomas Mader <thomas dot mader at gmail dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 18 May 2018 07:46:02 +0200
- 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> <20180518032609.GM23663@bubble.grove.modra.org>
Thank you very much for your help Alan.
I have created https://sourceware.org/bugzilla/show_bug.cgi?id=23199
On Fri, May 18, 2018 at 5:26 AM, Alan Modra <amodra@gmail.com> wrote:
> 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
>