bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21861] New: mingw-w64 binutils built on x86_64-musl segfau


From: ntzrmtthihu777 at gmail dot com
Subject: [Bug binutils/21861] New: mingw-w64 binutils built on x86_64-musl segfaults when compiling zlib.
Date: Fri, 28 Jul 2017 22:54:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21861

            Bug ID: 21861
           Summary: mingw-w64 binutils built on x86_64-musl segfaults when
                    compiling zlib.
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: ntzrmtthihu777 at gmail dot com
  Target Milestone: ---

An odd corner case. After setting up a x86_64-w64-mingw32 toolchain
(binutils-2.28, gcc-7.1.0, mingw-w64 5.0.2) on gentoo musl, attempting
to `x86_64-w64-mingw32-emerge sys-libs/zlib` results in a segfault
upon invoking the resource compiler as such:
`x86_64-w64-mingw32-windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc`

Testing with the bare compilers ouside of emerge is reproducable.
After asking about it in irc.freenode.net/#musl we narrowed it down
to iconv issues, whereupon user midipix pointed me at the following patch:
http://git.midipix.org/cgit.cgi/ports/chainport/tree/binutils-2.24.51.midipix.patch
Reducing this down to https://bpaste.net/show/089908e214c3 was enough to
fix the issue. Applying this patch on a glibc system's mingw-w64 toolchain
does not affect the compilation, and as this is a windows only tool
it would not affect any non-windows system/compiler toolchain.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]