gcc 4.7 changes binary behaviors ?

Jan Kratochvil jan.kratochvil at redhat.com
Thu Jan 26 11:08:34 UTC 2012


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'
> kmk: *** Waiting for unfinished jobs....
> 
> build virtualbox with same kBuild but that was build with gcc 4.6 I
> don't have this problem using kBuild-0.1.98-1.r1.fc17 works, using
> kBuild-0.1.98-2.r1.fc17 I got this error, with kmk_sed. 
> Any clue is appreciated 

kmk_sed is most probably using some undefined C behavior which only
fortunately worked with gcc-4.6.  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.

As an illustration gcore also broke with gcc-4.7 but it was a bug of gcore:
	http://sourceware.org/ml/binutils/2011-12/msg00298.html


Regards,
Jan


More information about the devel mailing list