gcc -c -march=i686 -ansi -pedantic -I. -I../../../../exports/include/X11 -I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET hextile.c rm -f zrle.o g++ -c -march=1 -Wall -I. -I../../../../exports/include/X11 -I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc cc1plus: bad value (1) for -march= switch Not sure how the -march=1 is getting in there. It's not in my CFLAGS. It happens even if I set CFLAGS=""
I get a similar error: g++ -c -O2 -mcpu=1 -pipe -Wall -I. -I../../../../exports/include/X11 -I../../../../include/fonts -I../../../../exports/include/X11 -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os -I../../../../.. -I../../../.. -I../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DSHAPE -DGCCUSESGAS -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR -DDDXTIME -DPART_NET zrle.cc cc1plus: bad value (1) for -mcpu= switch And a quick: find . -exec grep -Hin mcpu=1 \{\} \; Yields: ./Xvnc/lib/font/fontfile/Makefile:602:CXXFLAGS = -O2 -mcpu=1 -pipe -Wall ./Xvnc/lib/font/fontfile/Makefile.bak:602:CXXFLAGS = -O2 -mcpu=1 -pipe -Wall ./Xvnc/programs/Xserver/hw/vnc/Makefile:605:CXXFLAGS = -O2 -mcpu=1 -pipe -Wall ./Xvnc/programs/Xserver/hw/vnc/Makefile.bak:605:CXXFLAGS = -O2 -mcpu=1 -pipe -Wall ./Xvnc/programs/Xserver/Makefile:704:CXXFLAGS = -O2 -mcpu=1 -pipe -Wall From vnclibs.def.in * vnclibs.def.in - tells Xvnc where to pick up external VNC libraries * * Whenever you change this file, you need to run configure and then remake * the Makefiles in * lib/font/fontfile, programs/Xserver and programs/Xserver/hw/vnc Note that it mentions all three directories where mcpu=1 is found. however vnclibs.def contains: CXXFLAGS = -O2 -mcpu=i686 -pipe -Wall Something is going on here i cant fathom.
A fix for this problem is in vnc-3.3.5-r1. I added the fix to the 3.3.6 build. Please update your portage tree and re-emerge vnc