[Bug binutils/23199] New: Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
https://sourceware.org/bugzilla/show_bug.cgi?id=23199 Bug ID: 23199 Summary: Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS Product: binutils Version: 2.30 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: thomas.mader at gmail dot com Target Milestone: --- As suggested in https://sourceware.org/ml/binutils/2018-05/msg00183.html I open this bug. As already mentioned in my newsgroup question at https://sourceware.org/ml/binutils/2018-05/msg00180.html I wonder how it is possible to have such a bug in NixOS while on Archlinux it works with the same version of binutils (2.30). Maybe it has something to do with the different configure switches with which the two distributions are building binutils? NixOS: https://github.com/NixOS/nixpkgs/blob/3027bca02aa2ab50393cb9a8924ad73284d2700b/pkgs/development/tools/misc/binutils/default.nix Archlinux: https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/binutils&id=26c1ad8f31e6c4416d1f83275a586d6afa6167b8 -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23199] Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
https://sourceware.org/bugzilla/show_bug.cgi?id=23199 --- Comment #1 from Thomas Mader --- The problematic static phobos lib can be found under https://drive.google.com/file/d/179Nvnk7D3YLO5iQ3-zNAJl-7TDHw_twU/view?usp=sharing It was too big to attach directly. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23199] Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
https://sourceware.org/bugzilla/show_bug.cgi?id=23199 --- Comment #5 from Thomas Mader --- The dmd compiler doesn't seem to be using any binutils except for linking. https://forum.dlang.org/post/lvxvkopqssytuxzzc...@forum.dlang.org So it's still a question as to why the problem occurs only with 2.30 and not with 2.28. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23199] Phobos static lib not build properly anymore after update to binutils 2.30 on NixOS
https://sourceware.org/bugzilla/show_bug.cgi?id=23199 Thomas Mader changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED |--- --- Comment #8 from Thomas Mader --- (In reply to Alan Modra from comment #6) > OK, so not a binutils bug causing these bad SHT_GROUP section entries. > > The same nm error is reported for all binutils I tried back to 2.25 (at > which point I stopped looking). It is possible that your 2.28 binutils had > some distro patches that made BFD behave better with these bad object files, > but my binutils-2_28-branch version does not. I found the problem. Nix is stripping the libs and binaries on installation and there seems to be a bug introduced in binutils 2.30 with strip. I disabled the striping and everythings worked fine. You can find the unstripped lib here: https://drive.google.com/file/d/1fPjoNiQJNE5uzpCvqkRE1G7sMM5LbaNR/view?usp=sharing Output of nix-build when stripping: strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip stripping (with command strip and flags -S) in /nix/store/q674hw91v3605szwhhc8ypwdc2iqxb20-dmdBuild-2.079.1/lib /nix/store/q674hw91v3605szwhhc8ypwdc2iqxb20-dmdBuild-2.079.1/bin -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/23199] Strip broken after update to binutils 2.30
https://sourceware.org/bugzilla/show_bug.cgi?id=23199 Thomas Mader changed: What|Removed |Added Summary|Phobos static lib not build |Strip broken after update |properly anymore after |to binutils 2.30 |update to binutils 2.30 on | |NixOS | -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils