Lux gentoo 64bit icc

Discussion and help for Compilation problems and platform portability.

Moderators: Dade, coordinators

Lux gentoo 64bit icc

Postby ewomer » Fri Aug 28, 2009 2:42 pm

im getting this error compiling lux with icc 10.1.023

Code: Select all
make
[  0%] Building CXX object CMakeFiles/lux.dir/luxparse.o
/opt/intel/cce/10.1.023/bin/mcpcom: /usr/lib32/libstdc++.so.5: no version information available (required by /opt/intel/cce/10.1.023/bin/mcpcom)
/opt/intel/cce/10.1.023/bin/mcpcom: /usr/lib32/libstdc++.so.5: no version information available (required by /opt/intel/cce/10.1.023/bin/mcpcom)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h(89): error: argument of type "char *" is incompatible with parameter of type "__va_list_tag *"
      const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args);
                        ^

/home/eric/src/blender/luxrender/lux/core/lux.h(44): warning #584: omission of exception specification is incompatible with previous function "expf" (declared at line 101 of "/usr/include/bits/mathcalls.h")
  inline float expf(float a) { return exp(a); }
                             ^

compilation aborted for /home/eric/src/blender/luxrender/build/luxparse.cpp (code 2)
make[2]: *** [CMakeFiles/lux.dir/luxparse.o] Error 2
make[1]: *** [CMakeFiles/lux.dir/all] Error 2
make: *** [all] Error 2


Config:
Code: Select all
cmake ../lux
-- The C compiler identification is Intel                 
-- The CXX compiler identification is Intel               
-- Check for working C compiler: /opt/intel/cce/10.1.023/bin/icc
-- Check for working C compiler: /opt/intel/cce/10.1.023/bin/icc -- works
-- Detecting C compiler ABI info                                         
-- Detecting C compiler ABI info - done                                 
-- Check for working CXX compiler: /opt/intel/cce/10.1.023/bin/icpc     
-- Check for working CXX compiler: /opt/intel/cce/10.1.023/bin/icpc -- works
-- Detecting CXX compiler ABI info                                         
-- Detecting CXX compiler ABI info - done                                   
-- Building for target x86_64-pc-linux-gnu                                 
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname                                                     
-- Looking for gethostbyname - found                                             
-- Looking for connect                                                           
-- Looking for connect - found                                                   
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- OpenGL include directory: /usr/include
-- Boost version: 1.39.0
-- Found the following Boost libraries:
-- Boost library directory: /usr/lib
-- Boost include directory: /usr/include/boost-1_39
-- Found ZLIB: /lib64/libz.so
-- Found PNG: /usr/lib64/libpng.so
-- Found TIFF: /usr/lib64/libtiff.so
-- Found TIFF: /usr/lib64/libtiff.so
-- Found JPEG: /usr/lib64/libjpeg.so
-- JPEG include directory: /usr/include
-- Found wxWidgets: TRUE
-- wxWidgets include directory: /usr/lib64/wx/include/gtk2-unicode-release-2.8/usr/include/wx-2.8
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eric/src/blender/luxrender/build


system info via emerge --info
Code: Select all
emerge --info                         
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r5system17 x86_64)                                                                                                       
=================================================================                                           
System uname: Linux-2.6.30-gentoo-r5system17-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.0.1 
Timestamp of tree: Fri, 28 Aug 2009 09:15:01 +0000                                                           
app-shells/bash:     4.0_p28                                                                                 
dev-java/java-config: 2.1.8-r1                                                                               
dev-lang/python:     2.6.2-r1, 3.1.1                                                                         
dev-util/cmake:      2.6.4-r2                                                                               
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.6.3, 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:   1.3.5, 2.2.6a                                                                           
virtual/os-headers:  2.6.30-r1                                                                               
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                               
CBUILD="x86_64-pc-linux-gnu"                                                                                 
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"                                           
CHOST="x86_64-pc-linux-gnu"                                                                                 
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/splash /etc/terminfo /etc/udev/rules.d"           
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"                                         
DISTDIR="/usr/portage/distfiles"                                                                             
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"                                                       
GENTOO_MIRRORS="http://gentoo.binarycompass.org http://gentoo.osuosl.org/ http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/"                                                                                           
LANG="en_US.utf8"                                                                                           
LDFLAGS="-Wl,-O1"                                                                                           
LINGUAS="en_US"                                                                                             
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/mozilla /usr/local/portage/layman/pro-audio /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb branding bzip2 cairo captury cdda cddax cdio cdparanoia cdr cli consolekit cracklib crypt css ctype cups curl cxx dbus dri dts dv dvd dvdr eds emboss encode evo fam fbcon fbcondecor ffmpeg filter firefox flac fontconfig gdbm gif gimp glib gnutls gpm graphviz gs gtk hal httpd iconv imagemagick ipv6 isdnlog jpeg kde lame lcms ldap libass libcaca libnotify libwww lua lzma lzo mad matroska mikmod mjpeg mmx mmxext mng modplug mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nptl nptlonly ogg openal openexr opengl openmp openntpd oss pam pcre pdf perl phonon physfs png ppds pppd python q16 q32 qt3support qt4 quicktime raw readline reflection remoteosd rtsp sasl sdl semantic-desktop session skins smp speex spell spl sqlite sse sse2 ssl ssse3 startup-notification stream svg sysfs tcpd theora threads thumbnail thunar tiff truetype unicode usb vlm vorbis webdav-neon webkit wmf x264 xanim xcb xcomposite xft xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ioplug ladspa lfloat linear meter mulaw multi null rate share shm asym dmix empty iec958 plug route softvol mmap_emul" 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="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

ewomer
 
Posts: 13
Joined: Mon Feb 02, 2009 12:11 am

Re: Lux gentoo 64bit icc

Postby jeanphi » Fri Aug 28, 2009 2:48 pm

Hi,

This is an icc problem, it using using a gcc stdlib header but isn't compatible with gcc builtins. Maybe Tomb has a workaround.

Jeanphi
jeanphi
Developer
 
Posts: 7943
Joined: Mon Jan 14, 2008 7:21 am

Re: Lux gentoo 64bit icc

Postby ewomer » Fri Aug 28, 2009 3:48 pm

I'm going to try it with icc 11.1 (if it ever gets downleaded) and see if it helps.
ewomer
 
Posts: 13
Joined: Mon Feb 02, 2009 12:11 am

Re: Lux gentoo 64bit icc

Postby tomb » Fri Aug 28, 2009 4:39 pm

Sorry, never seen that particular error - have you tried googling it?

T
User avatar
tomb
Developer
 
Posts: 2677
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: Lux gentoo 64bit icc

Postby ewomer » Fri Aug 28, 2009 4:49 pm

installing version 11 didnt help still the same issue
ewomer
 
Posts: 13
Joined: Mon Feb 02, 2009 12:11 am

Re: Lux gentoo 64bit icc

Postby ewomer » Fri Aug 28, 2009 4:59 pm

duplicate of this post viewtopic.php?f=22&t=1560

**EDIT**
i guess commit this out of the CMakeLists.txt line # 305 column # 278 add a ) # so it looks like
Code: Select all
... ) # -D'__builtin_vsnprintf(__out, __size, __fmt, __args)'='__builtin_vsnprintf(__out, __size, __fmt, (char *) __args)'")


and commit out this line in core/lux.h line # 44 not 41
Code: Select all
inline float expf(float a) { return exp(a); }


which will brind me to this error
Code: Select all
 make
[  0%] Building CXX object CMakeFiles/lux.dir/core/renderfarm.o
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/include/g++-v4/cmath(500): error: identifier "__builtin_fpclassify" is undefined
        return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
               ^
          detected during:
            instantiation of "__gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp=float]" at line 172 of "/usr/include/boost-1_39/boost/functional/hash/detail/hash_float.hpp"
            instantiation of "size_t={unsigned long} boost::hash_detail::float_hash_value(T) [with T=float]" at line 304 of "/usr/include/boost-1_39/boost/functional/hash/hash.hpp"

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.1/include/g++-v4/cmath(500): error: identifier "__builtin_fpclassify" is undefined
        return __builtin_fpclassify(FP_NAN, FP_INFINITE, FP_NORMAL,
               ^
          detected during:
            instantiation of "__gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp=long double]" at line 172 of "/usr/include/boost-1_39/boost/functional/hash/detail/hash_float.hpp"
            instantiation of "size_t={unsigned long} boost::hash_detail::float_hash_value(T) [with T=long double]" at line 314 of "/usr/include/boost-1_39/boost/functional/hash/hash.hpp"

compilation aborted for /home/eric/src/blender/luxrender/lux/core/renderfarm.cpp (code 2)
make[2]: *** [CMakeFiles/lux.dir/core/renderfarm.o] Error 2
make[1]: *** [CMakeFiles/lux.dir/all] Error 2
make: *** [all] Error 2
ewomer
 
Posts: 13
Joined: Mon Feb 02, 2009 12:11 am

Re: Lux gentoo 64bit icc

Postby tomb » Sat Aug 29, 2009 3:43 am

Hi,

Seems to me that ICC doesn't play nicely with dependencies compiled using the GCC 4.4 toolchain. Try with a GCC 4.3 base if you can or see if you can find info about GCC 4.4+ICC.
I'm on (k)ubuntu which haven't gone GCC 4.4 yet. On a side note, I think ICC will perhaps only gain you +10% or so vs GCC 4.4 - there's a thread on which options to use with that
compiler kit somewhere in this forum.

Gentoo is typically more "bleeding edge" than most distros - unfortunately that means you also run into the issues first as well ;)

T
User avatar
tomb
Developer
 
Posts: 2677
Joined: Thu Oct 11, 2007 4:23 pm
Location: Oslo, Norway

Re: Lux gentoo 64bit icc

Postby SATtva » Thu Sep 10, 2009 12:02 pm

tomb wrote:there's a thread on which options to use with that
compiler kit somewhere in this forum.

Tomb, you're referencing this one, I suppose? viewtopic.php?f=22&t=1969 :)
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 7164
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: Lux gentoo 64bit icc

Postby tgoodhar » Thu Jan 07, 2010 10:37 am

I was able to fix this problem by changing the line "#define _GLIBCXX_USE_C99_MATH 1" to "#define _GLIBCXX_USE_C99_MATH 0" in my /usr/include/c++/4.4.2/x86_64-redhat-linux/bits/c++config.h file. Presumably there's an equivalent file in gentoo.
tgoodhar
 
Posts: 1
Joined: Thu Jan 07, 2010 10:34 am


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 1 guest