build broken on ppc linux?!
Mike Stump
mikestump@comcast.net
Thu Nov 21 20:53:00 GMT 2013
On a powerpc64-unknown-linux-gnu, (aka Welcome to SUSE Linux Enterprise Server 11 SP1 (ppc64)), I am seeing:
libtool: compile: /home/mstump/wide/gcc-ppc/./gcc/xgcc -shared-libgcc -B/home/mstump/wide/gcc-ppc/./gcc -nostdinc++ -L/home/mstump/wide/gcc-ppc/powerpc64-unknown-linux-gnu/libstdc++-v3/src -L/home/mstump/wide/gcc-ppc/powerpc64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/mstump/wide/gcc-ppc/powerpc64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/tmp/gcc/powerpc64-unknown-linux-gnu/bin/ -B/tmp/gcc/powerpc64-unknown-linux-gnu/lib/ -isystem /tmp/gcc/powerpc64-unknown-linux-gnu/include -isystem /tmp/gcc/powerpc64-unknown-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -I../../../../gcc/libsanitizer/sanitizer_common -I ../../../../gcc/libsanitizer/include -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/powerpc64-unknown-linux-gnu -I../../../../gcc/libsanitizer/../libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo -MD -MP -MF .deps/sanitizer_platform_limits_posix.Tpo -c ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc -fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o
In file included from /usr/include/sys/vt.h:1:0,
from ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:49:
/usr/include/linux/vt.h:74:15: error: expected unqualified-id before ‘new’
unsigned int new; /* New console (if changing) */
^
make[4]: *** [sanitizer_platform_limits_posix.lo] Error 1
make[4]: Leaving directory `/home/mstump/wide/gcc-ppc/powerpc64-unknown-linux-gnu/libsanitizer/sanitizer_common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mstump/wide/gcc-ppc/powerpc64-unknown-linux-gnu/libsanitizer'
make[2]: *** [all-stage1-target-libsanitizer] Error 2
make[2]: Leaving directory `/home/mstump/wide/gcc-ppc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/mstump/wide/gcc-ppc'
make: *** [all] Error 2
I want to rip my hair out, the 1990s are over, really.
I hacked in a:
#define new _hide_new
#include <linux/vt.h>
#undef new
at the top of the file, and it seems to compile. I love it, a -j32 compile hums along at 97% idle.. seems wrong to me as well. :-(
More information about the Gcc
mailing list