Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12024 - vnc-3.3.6 build fails
Summary: vnc-3.3.6 build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-12 10:03 UTC by Albert W. Hopkins
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2002-12-12 10:03:50 UTC
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=""
Comment 1 Mikael A 2002-12-12 18:36:33 UTC
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. 
Comment 2 Nick Hadaway 2002-12-21 15:12:15 UTC
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