Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287500 - sci-visualization/paraview-3.6.1-r1 can`t be built with gcc-4.4 - vtkgl.h
Summary: sci-visualization/paraview-3.6.1-r1 can`t be built with gcc-4.4 - vtkgl.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-03 14:23 UTC by David Kredba
Modified: 2009-10-09 03:38 UTC (History)
2 users (show)

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 David Kredba 2009-10-03 14:23:18 UTC
Build of sci-visualization/paraview-3.6.1-r1 fails with:

[ 27%] Building CXX object VTK/Rendering/CMakeFiles/vtkRendering.dir/vtkFrameBufferObject.o                                                                                                                                                 
In file included from /var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/ParaView3/VTK/Rendering/vtkFrameBufferObject.cxx:22:                                                                                                        
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:11508: error: 'GLint64' has not been declared                                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:11509: error: 'GLint64' has not been declared                                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12729: error: ISO C++ forbids declaration of 'GLsync' with no type                                                                                    
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12729: error: typedef 'vtkgl::GLsync' is initialized (use decltype instead)                                                                           
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12729: error: 'PFNGLFENCESYNCPROC' was not declared in this scope                                                                                     
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12730: error: typedef 'vtkgl::PFNGLISSYNCPROC' is initialized (use decltype instead)                                                                  
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12730: error: 'GLsync' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12731: error: typedef 'vtkgl::PFNGLDELETESYNCPROC' is initialized (use decltype instead)                                                              
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12731: error: 'GLsync' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12732: error: typedef 'vtkgl::PFNGLCLIENTWAITSYNCPROC' is initialized (use decltype instead)                                                          
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12732: error: 'GLsync' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12732: error: expected primary-expression before 'flags'                                                                                              
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12732: error: 'GLuint64' was not declared in this scope                                                                                               
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12733: error: typedef 'vtkgl::PFNGLWAITSYNCPROC' is initialized (use decltype instead)                                                                
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12733: error: 'GLsync' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12733: error: expected primary-expression before 'flags'                                                                                              
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12733: error: 'GLuint64' was not declared in this scope                                                                                               
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12734: error: 'GLint64' has not been declared                                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: typedef 'vtkgl::PFNGLGETSYNCIVPROC' is initialized (use decltype instead)                                                               
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: 'GLsync' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: expected primary-expression before 'pname'                                                                                              
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: expected primary-expression before 'bufSize'                                                                                            
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: expected primary-expression before '*' token                                                                                            
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: 'length' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: expected primary-expression before '*' token                                                                                            
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12735: error: 'values' was not declared in this scope                                                                                                 
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12736: error: 'PFNGLFENCESYNCPROC' does not name a type                                                                                               
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12737: error: 'PFNGLISSYNCPROC' does not name a type                                                                                                  
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12738: error: 'PFNGLDELETESYNCPROC' does not name a type                                                                                              
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12739: error: 'PFNGLCLIENTWAITSYNCPROC' does not name a type                                                                                          
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12740: error: 'PFNGLWAITSYNCPROC' does not name a type                                                                                                
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:12742: error: 'PFNGLGETSYNCIVPROC' does not name a type                                                                                               
In file included from /var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/ParaView3/VTK/Rendering/vtkFrameBufferObject.cxx:22:                                                                                                        
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17679: error: 'GLXVideoCaptureDeviceNV' has not been declared                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17680: error: expected initializer before '*' token                                                                                                   
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17681: error: 'GLXVideoCaptureDeviceNV' has not been declared                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17682: error: 'GLXVideoCaptureDeviceNV' has not been declared                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17683: error: 'GLXVideoCaptureDeviceNV' has not been declared                                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17685: error: 'PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC' does not name a type                                                                         
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17695: error: 'GLXVideoDeviceNV' has not been declared                                                                                                
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17696: error: 'GLXVideoDeviceNV' has not been declared                                                                                                
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17697: error: 'GLXVideoDeviceNV' has not been declared                                                                                                
/var/tmp/portage/sci-visualization/paraview-3.6.1-r1/work/build/VTK/Rendering/vtkgl.h:17700: error: 'GLXVideoDeviceNV' has not been declared                                                                                                
make[2]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/vtkFrameBufferObject.o] Error 1

Reproducible: Always

Steps to Reproduce:
1.Be ~amd64
2.Emerge sci-visualization/paraview-3.6.1-r1 with USE="boost examples hdf5 plugins python qt4 -doc -mpi".
3.Fails with MAKEOPTS=-j1 and -j5 too.

Actual Results:  
Fails to compile complaining about declarations and more in vtkgl.h.

Sci-libs/vtk-5.4.2  with USE="boost examples patented python qt4 tcl threads tk" builds fine on the same machine.

Expected Results:  
Compiles fine.

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo-r1-1d x86_64)
=================================================================                                            
System uname: Linux-2.6.31-gentoo-r1-1d-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.0.1 
Timestamp of tree: Sat, 03 Oct 2009 09:30:19 +0000                                                           
app-shells/bash:     4.0_p33                                                                                 
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -g -ggdb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -g -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages nostrip parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-O2 -g -ggdb -pipe"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://gentoo.mirror.web4u.cz/ "
LDFLAGS="-Wl,-O1"
LINGUAS="cs en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="echo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups dbus djvu dri dts dvd dvdr eds emboss encode esd evo examples exif extras fam firefox flac fontconfig fontforge fortran gdbm gif gmp gpm gstreamer gtk hal iconv idn isdnlog ithreads java jpeg jpeg2k kde kerberos lcms ldap libedit libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly objc objc++ objc-gc odbc ogg openexr opengl openmp pam pch pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session slang spell spl sqlite sse sse2 sse3 ssl startup-notification svg sysfs tcl tcpd threads thunar tiff tk truetype unicode usb utils vorbis x264 xattr xcb xinerama xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" LIRC_DEVICES="inputlirc" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Richard Kenney 2009-10-05 19:20:04 UTC
Same here but with GCC-4.1.2
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2009-10-09 03:38:39 UTC
That took some time to track down but should be fixed
now. In a nutshell, previously the ebuild pulled in
system OpenGL headers. Unfortunately, vtk's header
parsing framework generates bad code due
to the new GL-3.2 header specs provided by the most recent
NVidia drivers. I've reverted back to the included
header files which should take care of this problem.

Best,
Markus