Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125917 - [gcc4.1] blender-2.41 fails to compile
Summary: [gcc4.1] blender-2.41 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 04:36 UTC by Markus Rothe (RETIRED)
Modified: 2006-07-01 20:18 UTC (History)
1 user (show)

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


Attachments
blender-2.41.ebuild (corrected) (blender-2.41.ebuild,3.44 KB, text/plain)
2006-07-01 10:15 UTC, Alain Crespo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2006-03-12 04:36:25 UTC
Hi,

using gcc-4.1.0 and blender-2.41 fails to compile:


[...]
In file included from source/blender/ftfont/intern/FTF_Api.cpp:44:
source/blender/ftfont/intern/FTF_TTFont.h:40:28: error: FTGLPixmapFont.h: No such file or directory
source/blender/ftfont/intern/FTF_TTFont.h:41:29: error: FTGLTextureFont.h: No such file or directory
source/blender/ftfont/intern/FTF_TTFont.h:115: error: ISO C++ forbids declaration of ‘FTFont’ with no type
source/blender/ftfont/intern/FTF_TTFont.h:115: error: expected ‘;’ before ‘*’ token
source/blender/ftfont/intern/FTF_TTFont.h:117: error: ISO C++ forbids declaration of ‘FTFont’ with no type
source/blender/ftfont/intern/FTF_TTFont.h:117: error: expected ‘;’ before ‘*’ token
source/blender/ftfont/intern/FTF_TTFont.h:118: error: ISO C++ forbids declaration of ‘FTFont’ with no type
source/blender/ftfont/intern/FTF_TTFont.h:118: error: expected ‘;’ before ‘*’ token
source/blender/ftfont/intern/FTF_TTFont.h:119: error: ISO C++ forbids declaration of ‘FTFont’ with no type
source/blender/ftfont/intern/FTF_TTFont.h:119: error: expected ‘;’ before ‘*’ token
scons: *** [/var/tmp/portage/blender-2.41/work/build/linux2/source/blender/ftfont/intern/FTF_Api.o] Error 1
scons: building terminated because of errors.


$ emerge --info
Portage 2.1_pre5-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-tbird -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apm avi bash-completion berkdb bitmap-fonts bzip2 cairo crypt css cups dlloader dri dts dvd dvdr dvdread eds emboss encode ffmpeg foomaticdb fortran gdbm gif glitz gmp gnutls gphoto2 gpm gs gstreamer gtk gtk2 hal ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse input_devices_vmmouse ipv6 jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg musicbrainz ncurses nls nptl nvidia ogg opengl pam pccts pdflib perl png ppds python qt quicktime readline samba sametime scanner sdl spell ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vcd video_cards_none video_cards_nvidia video_cards_vmware visualization vorbis win32codecs xcomposite xine xml xscreensaver xv xvid xvmc zeroconf zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Luca Barbato gentoo-dev 2006-03-12 06:07:21 UTC
bogus scons version maybe?
Comment 2 Anders Hellgren gentoo-dev 2006-03-12 07:23:26 UTC
https://forums.gentoo.org/viewtopic-t-414371.html and a couple of dups thereof deal with the same problem.
Comment 3 radoslaww 2006-05-11 14:17:23 UTC
(In reply to comment #0)
I get similiar error messages with blender 2.40 also, and with gcc 3.4.6. It seem's that these errors are not blender or gcc version specific.
Comment 4 radoslaww 2006-05-11 23:15:17 UTC
Upgrading ftgl from 2.1.2 to (currently) testing version: 2.1.2-r1 solved the problem in my system. Blender 2.4.1 compiled with gcc 4.1.0.
Comment 5 Steve Carr 2006-06-30 14:16:41 UTC
I'm getting a different problem:

ranlib /var/tmp/portage/blender-2.41/work/build/linux2/lib/libblender_python.a
ar: creating /var/tmp/portage/blender-2.41/work/build/linux2/lib/libblender_python.a
gcc -Xlinker -export-dynamic -pthread -o blender /var/tmp/portage/blender-2.41/work/build/linux2/source/creator/dynamic_buildinfo.o -L/var/tmp/portage/blender-2.41/work/build/linux2/lib -Llib -L/usr/lib/python2.4/config -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/X11R6/lib -lblender_creator -lblender_blendersrc -lblender_render -lblender_yafray -lblender_renderconverter -lblender_radiosity -lblender_BSP -lblender_blenkernel -lblender_LOD -lblender_IK -lblender_ONL -lblender_elbeem -lblender_readblenfile -lblender_img -lblender_bop -lblender_blenkernel -lblender_blenloader -lblender_blenpluginapi -lblender_imbuf -lblender_avi -lblender_blenlib -lblender_makesdna -lblender_kernel -lblender_GHOST -lblender_STR -lblender_guardedalloc -lblender_CTR -lblender_MEM -lblender_MT -lblender_BMF -lsoundsystem -lfreetype -lz -lblender_FTF -lextern_ftgl -lfreetype -lz -lKX_blenderhook -lKX_converter -lPHY_Dummy -lPHY_Bullet -lPHY_Physics -lKX_ketsji -lSCA_GameLogic -lRAS_rasterizer -lRAS_OpenGLRasterizer -lblender_expressions -lSG_SceneGraph -lblender_MT -lKX_blenderhook -lKX_network -lblender_kernel -lNG_network -lextern_bullet -lNG_loopbacknetwork -lPHY_Sumo -lPHY_Physics -lblender_MT -lextern_solid -lextern_qhull -lblender_python -lpython2.4 -lSDL -lpthread -lpng -ljpeg -lz -lopenal -lalut -lm -lutil -lstdc++ -lGL -lGLU
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lalut
collect2: ld returned 1 exit status
scons: *** [blender] Error 1
scons: building terminated because of errors.

!!! ERROR: media-gfx/blender-2.41 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  blender-2.41.ebuild, line 104:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --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 alsa apache2 apm arts avi berkdb bitmap-fonts cgi cli crypt cups curl dri eds emboss encode esd fam foomaticdb fortran freetds gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog java jpeg kerberos ldap libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl objc odbc ogg opengl oss pam pcre pdflib perl php png pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev usb vorbis x86 xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon video_cards_vesa video_cards_nvidia video_cards_i810 video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Alain Crespo 2006-07-01 08:10:07 UTC
Same "error: FTGLPixmapFont.h: No such file or directory" here.
Upgrading ftgl from 2.1.2 to 2.1.2-r1 solves the problem.



$ emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.12.1
ccache version 2.3 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/mnt/big/tmp/distfiles"
FEATURES="autoconfig ccache distlocks parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.solnet.ch http://ftp.club-internet.fr/pub/mirrors/gentoo http://gentoo.intergenia.de http://mirror.switch.ch/ftp/mirror/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.modulix.net/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linuv.uv.es/mirror/gentoo/ http://mirror.datapipe.net/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es eu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/mnt/big/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/science /usr/portage/local/layman/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X Xaw3d a52 aac acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bindist bitmap-fonts bzip2 bzlib cddb cdparanoia cdr cli crypt cups curl directfb divx4linux dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal exif fam fbcon ffmpeg firefox flac flash foomaticdb fortran ftp gcj gd gdbm geoip gif glut gmp gphoto2 gpm graphviz gstreamer gtk gtk2 hal iconv imagemagick imlib ipv6 isdnlog jabber jack java javascript joystick jpeg kde kdeenablefinal kdehiddenvisibility libcaca libg++ libwww lirc live lm_sensors lzo mad matroska mbox mikmod mime ming mmx mmxext mng motif mp3 mpeg msn nas ncurses nls nptl nvidia objc odbc offensive ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php pic png posix postgres povray ppds pppd python pyton qt qt3 qt4 quicktime readline real recode reflection rtc samba sasl scanner sdl session smime sndfile sockets speex spell spl sqlite sse ssl svg svga symlink tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis wmf wxwindows xdeltas xface xine xls xml xml2 xmms xorg xosd xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_joystick kernel_linux linguas_es linguas_eu userland_GNU video_cards_nv video_cards_vesa video_cards_fbdev video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Alain Crespo 2006-07-01 09:39:26 UTC
After solving the include problem, I get the same problem of Comment #5 .
Comment 8 Alain Crespo 2006-07-01 10:15:38 UTC
Created attachment 90630 [details]
blender-2.41.ebuild (corrected)

The modified ebuild that works for me.
Modified ftgl deppend to ">=media-libs/ftgl-2.1.2-r1"
And corrected -lalut kinking problem.
Comment 9 Alain Crespo 2006-07-01 10:16:48 UTC
in $PORTAGE_TMPDIR/blender-2.41/work/blender/config.opts
apears:
OPENAL_LIBRARY = ['openal','alut']
and if you have media-libs/openal instead media-libs/freealut, it should be:
OPENAL_LIBRARY = ['openal']

In the ebuild, there is a sed statement:

   sed -i -e "s:'openal':'openal','alut':" config.opts

That causes the error, and commenting out, all works fine.

I attached the modified ebuild that works for me.
Comment 10 Luca Barbato gentoo-dev 2006-07-01 20:18:50 UTC
-r1 already fixes it.