|
From: | Philippe Michel |
Subject: | Re: [Bug-gnubg] Building on Ubuntu 14.04 : Temporary Workaround |
Date: | Sun, 6 Sep 2015 00:52:28 +0200 (CEST) |
User-agent: | Alpine 2.20 (BSF 67 2015-01-07) |
On Mon, 27 Jul 2015, Michael Petch wrote:
I sent you an email that seems to suggest the issue is with Optimizations (-O0 seems to work) / compiling with --std=c99 / and some issue with the C Runtime (And it could be related to something in our code that makes this appear. If it is a bug it is something that seems to affect the runtime code prior to main() being called. The error you see under Ubuntu 15.04 is actually the same thing I see on 14.04 depending on the optimization level I use. If I remove all the std=c99 stuff from configure.ac that has been added then it seems to work fine no matter the optimization level.
The problem seems not to be specific to Ubuntu, but triggered by compiling as C99 with _FORTIFY_SOURCE=2 (which Ubuntu's gcc slyly does).
Undefining the latter on Ubuntu prevents gnubg from hanging, compiling with it on some other distributions or on Ubuntu with clang causes a similar issue.
It's a bit surprising that gnubg hangs. I would expect it to abort if fortify_source detects something suspect (that's what happens when built with clang).
[Prev in Thread] | Current Thread | [Next in Thread] |