Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
JonY
10walls@gmail.com
Fri Nov 7 09:32:00 GMT 2014
On 11/7/2014 06:59, Falk Tannhäuser wrote:
> Am 06.11.2014 um 23:37 schrieb JonY:
>> On 11/7/2014 05:06, Falk Tannhäuser wrote:
>>> Since I updated gcc from version 4.9.0-1 to 4.9.2-1, I obtain the error
>>> collect2: Fehler: ld mit Signal 11 [Segmentation fault] beendet
>>> when compiling and linking a C or C++ program. However, an executable is
>>> generated and appears to work as expected.
>>> I installed the latest test release of cygwin so far (1.7.33-0.7).
>>
>> Does it somehow work if you link with gcc -fno-lto?
>
> Yes, this fixes the problem.
>
There seems to be some confusion in the __cxa_atexit in Cygwin 1.7.32,
basically 4.9.1 will only work with .32.
1.7.33 fixed the incorrect behavior that unfortunately broke gcc
__cxa_atexit usage. The next 1.7.33-0.8 should be more tolerant of the
old .32 behavior.
After 1.7.33 is officially released, gcc-4.8.3-4 and 4.9 will switch to
the standard conformant behavior.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20141107/248c8945/attachment.sig>
More information about the Cygwin
mailing list