xfs
[Top] [All Lists]

Re: xfsprogs - debug build with -O0

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: Re: xfsprogs - debug build with -O0
From: Jan Tulak <jtulak@xxxxxxxxxx>
Date: Thu, 10 Sep 2015 13:37:16 +0200
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CACj3i72MONG=8c=t+X=_Ki5cNs_fKgNzPKJ9f70qnnRh8EmQ1g@xxxxxxxxxxxxxx>
References: <CACj3i72MONG=8c=t+X=_Ki5cNs_fKgNzPKJ9f70qnnRh8EmQ1g@xxxxxxxxxxxxxx>
On Wed, Sep 9, 2015 at 2:35 PM, Jan Tulak <jtulak@xxxxxxxxxx> wrote:
Hi all,

Is there a way how to disable compiler optimisation in xfsprogs? It should be done with setting env variable OPTIMIZER='-O0', however, even though this is mentioned on few places in xfsprogs, it doesn't work and the configure file always use "-O2" from autogenerated m4/libtool.m4. Other environment variables works as expected.

So far, when in need of debugging, I have been manually replacing -O2 with -O0 in configure, but this isn't a good solution. So, is there another way, or it is just broken? I find it strange that nobody would mind messed GDB outputs... :-)

âSo to reply to myself, it looks like it was an issue only on my host.Â

When I tried it on another pc, it worked ok and after some time with changing various global environment variables, it suddenly began to work on the first host too. I will keep an eye on it if the issue appears again, to find what really caused it. But for now, consider the previous email as a false alert.

Cheers,
Jan

--
<Prev in Thread] Current Thread [Next in Thread>