Re: gcc 4.7 changes binary behaviors ?

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

 



On 01/27/2012 06:22 AM, Sérgio Basto wrote:
On Thu, 2012-01-26 at 12:08 +0100, Jan Kratochvil wrote:
On Thu, 26 Jan 2012 08:12:43 +0100, Sérgio Basto wrote:
/usr/bin/kmk_sed: file /builddir/build/BUILD/VirtualBox-4.1.8_OSE/src/VBox/Runtime/common/err/errmsg.sed line 31: Unmatched [ or [^
kmk: *** [/builddir/build/BUILD/VirtualBox-4.1.8_OSE/obj/obj/Runtime/errmsgdata.h] Error 1
kmk: *** Deleting file `/builddir/build/BUILD/VirtualBox-4.1.8_OSE/obj/obj/Runtime/errmsgdata.h'

You should try compiling kmk_sed first with
-O0 and then checking whether the specific function having this problem there
is really valid ISO C.

don't understand whats help compile without optimization ,

-O0 turns off optimizations. i.e. it causes GCC to behave less agressively and often causes "sloppily" written code to behave "as expected" and not to expose a run-time bug.

It's a common initial step when trying to isolate the cause of a bug.


Another, similar initial step is to check build logs for warnings and to go after them. These days, e.g. warnings related to "punned pointers" or "casts to different sizes" often are pointing to the causes of run-time mal-functions and should not be taken light-heartedly.

Ralf
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux