All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc 4.8
@ 2013-05-23 23:23 Mark Hatle
  0 siblings, 0 replies; only message in thread
From: Mark Hatle @ 2013-05-23 23:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer, Khem Raj

I found an issue w/ the gcc 4.8 in oe-core as on Monday.  Some of my automated 
build machines are RHEL 5.9 machines.  These boxes have a host compiler that 
does not support -Wno-narrowing and -Wno-overlength-strings.  Unfortunately, 
when building target gcc (via the cross compiler) the system tries to use target 
compiler options on the system host compiler.

I tracked this down to the configure script checks support for those warnings 
(and others), but it only looks with the $CC value.  It then passes these values 
in via LOOSE_WARN and STRICT_WARN.. eventually these go through the system and 
end up in BUILD_COMPILERFLAGS via ALL_CXXFLAGS via WARN_CXXFLAGS via 
GCC_WARN_CXXFLAGS...  So configure checking only the cross compiler is the issue.

Below is the error that I got:

g++  -c   -O2 -pipe -g -fvisibility-inlines-hidden -DIN_GCC   -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE 
-I. -Ibuild 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemu
ppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/build 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../include 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../libcpp/include 
 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../libdecnumber 

-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../libdecnumber/dpd 
-I../libdecnumber 
-I/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../libbacktrace 
    \
	-DBASEVER="\"4.8.0\"" -DDATESTAMP="\"\"" \
	-DREVISION="\"\"" \
	-DDEVPHASE="\"\"" -DPKGVERSION="\"(GCC) \"" \
	-DBUGURL="\"<http://gcc.gnu.org/bugs.html>\"" -o build/version.o 
/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/version.c
cc1plus: error: unrecognized command line option "-Wno-narrowing"
cc1plus: error: unrecognized command line option "-Wno-overlength-strings"
make[2]: *** [build/version.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh 
/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work-shared/gcc-4.8.0-r0/gcc-4.8.0/gcc/../move-if-change 
tmp-optionlist optionlist
echo timestamp > s-options
make[2]: *** wait: No child processes.  Stop.
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory 
`/home/nxadm/nx/yow-blade16.1/builds-2013-05-23-130402/qemuppc_world/bitbake_build/tmp/work/ppc603e-wrs-linux/gcc/4.8.0-r0/gcc-4.8.0/build.powerpc-wrs-linux.powerpc-wrs-linux'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-23 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 23:23 gcc 4.8 Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.