Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 51601
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: GCC Porting Team <gcc-porting@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ed Catmur <ed@catmur.co.uk>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gcc-3.4.patch 4.0/gcc-3.4.patch patch Ed Catmur 2004-05-20 18:41 0000 262 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 51601 depends on: Show dependency tree
Bug 51601 blocks: 48528
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-05-20 17:04 0000
g++   -I.. -DHAVE_VSNPRINTF -O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow
-mfpmath=387 -momit-leaf-frame-pointer -ftracer -fweb -fomit-frame-pointer
-ffast-math -falign-functions=64 -falign-loops=4 -falign-jumps=4 -funroll-loops
-fprefetch-loop-arrays -Wall -c HTTPServer.cxx
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/vector:72,
                 from ../rfb/Region.h:25,
                 from ../rfb/UpdateTracker.h:23,
                 from ../rfb/HTTPServer.h:32,
                 from HTTPServer.cxx:19:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector<bool,
_Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator,
_ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h:522:
error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector<bool,
_Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/stl_bvector.h:823:
error: expected unqualified-id before '(' token
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/vector:75,
                 from ../rfb/Region.h:25,
                 from ../rfb/UpdateTracker.h:23,
                 from ../rfb/HTTPServer.h:32,
                 from HTTPServer.cxx:19:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp,
_Alloc> >, size_t, const _Tp&)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc:307: error:
expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp,
_Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.0/include/g++-v3/bits/vector.tcc:384: error:
expected unqualified-id before '(' token
make[1]: *** [HTTPServer.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/rfb'

Looks like an idiot-#defining-max problem
(http://gcc.gnu.org/ml/gcc-bugs/2003-09/msg00752.html)

I'll see if #undef'ing max before the include lets it work.

------- Comment #1 From Ed Catmur 2004-05-20 18:41:11 0000 -------
Created an attachment (id=31786) [details]
4.0/gcc-3.4.patch

Seems to work fine.

------- Comment #2 From Tuan Van (RETIRED) 2004-05-24 15:02:43 0000 -------
thanks for the patch. It gets me going a little far but not to the end, and I
don't have clue how to fix it:)

c++ -m32 -o XFree86 -O2 -march=pentium4 -pipe  -fPIC -ansi -pedantic -Wall
-Wpointer-arith -Wundef     -L../../exports/lib  -L/usr/X11R6/lib
xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o         
../../programs/Xserver/hw/xfree86/common/xf86Init.o
../../programs/Xserver/hw/xfree86/common/xf86IniExt.o
../../programs/Xserver/hw/xfree86/common/libxf86.a     
../../programs/Xserver/hw/xfree86/parser/libxf86config.a
../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a
../../programs/Xserver/hw/xfree86/loader/libloader.a          
../../programs/Xserver/hw/xfree86/common/libxf86.a dix/libdix.a os/libos.a
../../exports/lib/libXau.a ../../exports/lib/libXdmcp.a        
../../lib/font/fontbase.o                  ../../lib/font/libfontbase.a
Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a      
            ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a  
                 ../../../Xregion/libXregion.a                   
../../../network/libnetwork.a                    ../../../rdr/librdr.a
../../programs/Xserver/hw/xfree86/common/libxf86.a               Xext/libexts.a
xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                  
../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a              
     ../../../Xregion/libXregion.a                   
../../../network/libnetwork.a                    ../../../rdr/librdr.a
randr/librandr.a render/librender.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a
xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                  
../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a              
     ../../../Xregion/libXregion.a                   
../../../network/libnetwork.a                    ../../../rdr/librdr.a
randr/librandr.a render/librender.a 
../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a    -ljpeg -lz -lm    
                  -rdynamic -ldl  -Wl,-rpath-link,../../exports/lib
c++: ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a: No such file or
directory
c++: ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a: No such file or
directory
make[4]: *** [XFree86] Error 1
make[4]: Target `all' not remade because of errors.
c++ -m32 -o Xvfb -O2 -march=pentium4 -pipe  -fPIC -ansi -pedantic -Wall
-Wpointer-arith -Wundef     -L../../exports/lib  -L/usr/X11R6/lib
hw/vfb/stubs.o hw/vfb/miinitext.o hw/vfb/dpmsstubs.o      dix/libdix.a
os/libos.a ../../exports/lib/libXau.a ../../exports/lib/libXdmcp.a 
hw/vfb/libvfb.a fb/libfb.a mfb/libmfb.a dix/libxpstubs.a mi/libmi.a
Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a      
            ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a ../../../rfb/librfb.a  
                 ../../../Xregion/libXregion.a                   
../../../network/libnetwork.a                    ../../../rdr/librdr.a
randr/librandr.a render/librender.a mi/libmi.a   Xext/libext.a dbe/libdbe.a
record/librecord.a                    XTrap/libxtrap.a os/libcwrapper.o   
-ljpeg ../../lib/font/libXfont.a  dix/libxpstubs.a  -lz -lm                   
-Wl,-rpath-link,../../exports/lib
rm -f Xserver._man
/usr/bin/cpp -undef -traditional 
-D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__filemansuffix__=5x
-D__libmansuffix__=3x -D__miscmansuffix__=7 -D__drivermansuffix__=4
-D__projectroot__=/usr/X11R6 -D__xorgversion__='"Release 6.6" "X Version 11"'
-D__vendorversion__="`echo 4 3 0 | sed -e 's/ /./g' -e 's/^/Version /'`
XFree86"  <Xserver.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^XCOMM$/s//#/'
-e '/^XCOMM[^a-zA-Z0-9_]/s/^XCOMM/#/' >Xserver._man
rm -f Xserver.1x.html Xserver.1x-html
../../config/util/rman -f HTML < Xserver._man \
  > Xserver.1x-html && mv -f Xserver.1x-html Xserver.1x.html
macro "in" not recognized -- ignoring
make[4]: Leaving directory
`/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory
`/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-4.0b4-unixsrc/xc'
make: *** [World] Error 2

!!! ERROR: net-misc/tightvnc-4.0_beta20031113 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! (no error message)

------- Comment #3 From Ed Catmur 2004-05-24 15:31:12 0000 -------
If you have 2.6 kernel headers, see bug 51701

------- Comment #4 From Tuan Van (RETIRED) 2004-05-24 16:09:42 0000 -------
I came a cross the other bug couple time but totally forgot it :(. Thanks for
pointing it out. Agh, I just wasted about 1 hour compiling for nothing ;).

------- Comment #5 From Daniel Ahlberg (RETIRED) 2004-05-24 16:28:03 0000 -------
In CVS, thanks!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug