public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
       [not found] <545BE242.7020507@free.fr>
@ 2014-11-06 21:06 ` Falk Tannhäuser
  2014-11-06 22:37   ` JonY
  0 siblings, 1 reply; 5+ messages in thread
From: Falk Tannhäuser @ 2014-11-06 21:06 UTC (permalink / raw)
  To: cygwin

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).

Falk

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
  2014-11-06 21:06 ` Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking Falk Tannhäuser
@ 2014-11-06 22:37   ` JonY
  2014-11-06 22:59     ` Falk Tannhäuser
  0 siblings, 1 reply; 5+ messages in thread
From: JonY @ 2014-11-06 22:37 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

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).
> 
> Falk

Does it somehow work if you link with gcc -fno-lto?





[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
  2014-11-06 22:37   ` JonY
@ 2014-11-06 22:59     ` Falk Tannhäuser
  2014-11-07  9:32       ` JonY
  0 siblings, 1 reply; 5+ messages in thread
From: Falk Tannhäuser @ 2014-11-06 22:59 UTC (permalink / raw)
  To: cygwin

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.

Falk

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
  2014-11-06 22:59     ` Falk Tannhäuser
@ 2014-11-07  9:32       ` JonY
  2014-11-07 20:42         ` Falk Tannhäuser
  0 siblings, 1 reply; 5+ messages in thread
From: JonY @ 2014-11-07  9:32 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

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.




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking
  2014-11-07  9:32       ` JonY
@ 2014-11-07 20:42         ` Falk Tannhäuser
  0 siblings, 0 replies; 5+ messages in thread
From: Falk Tannhäuser @ 2014-11-07 20:42 UTC (permalink / raw)
  To: cygwin

Am 07.11.2014 um 10:32 schrieb JonY:
> 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.

ACK. I confirm that the problem is gone with cygwin-1.7.33-0.8 (no need for -fno-lto anymore).

Falk

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-07 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <545BE242.7020507@free.fr>
2014-11-06 21:06 ` Fwd: gcc-4.9.2-1 (x86_64) generates segfault during linking Falk Tannhäuser
2014-11-06 22:37   ` JonY
2014-11-06 22:59     ` Falk Tannhäuser
2014-11-07  9:32       ` JonY
2014-11-07 20:42         ` Falk Tannhäuser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).