Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166480 - dev-lang/ifc breaks dev-util/scons
Summary: dev-lang/ifc breaks dev-util/scons
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 147765 213150 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-12 10:07 UTC by Petr Vokac
Modified: 2010-08-23 12:27 UTC (History)
5 users (show)

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


Attachments
Patch for 0.0.9 (yafray-0.0.9-scons.patch,1.17 KB, patch)
2007-02-27 22:48 UTC, Mathy Vanvoorden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Vokac 2007-02-12 10:07:55 UTC
+++ This bug was initially created as a clone of Bug #42410 +++

emerge blender (media-gfx/blender-2.41-r1)
failed due to media-gfx/yafray-0.0.8:

ld -shared -no_archive -o src/yafraycore/libyafraycore.so src/yafraycore/bound.os src/yafraycore/buffer.os src/yafraycore/yafsystem.os src/yafraycore/tools.os src/yafraycore/camera.os src/yafraycore/color.os src/yafraycore/filter.os src/yafraycore/matrix4.os src/yafraycore/object3d.os src/yafraycore/triangletools.os src/yafraycore/mesh.os src/yafraycore/reference.os src/yafraycore/renderblock.os src/yafraycore/scene.os src/yafraycore/forkedscene.os src/yafraycore/threadedscene.os src/yafraycore/ipc.os src/yafraycore/ccthreads.os src/yafraycore/noise.os src/yafraycore/background.os src/yafraycore/sphere.os src/yafraycore/texture.os src/yafraycore/metashader.os src/yafraycore/targaIO.os src/yafraycore/triangle.os src/yafraycore/vector3d.os src/yafraycore/photon.os src/yafraycore/params.os src/yafraycore/HDR_io.os src/yafraycore/spectrum.os -lpthread
ld: -static and -shared may not be used together
scons: *** [src/yafraycore/libyafraycore.so] Error 1
scons: building terminated because of errors.

!!! ERROR: media-gfx/yafray-0.0.8 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  yafray-0.0.8.ebuild, line 37:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-12 10:10:30 UTC
Please, *do not* clone bugs like this... It sticks tons of CCs for people that totally are not interested in a completely different issue.
Comment 2 Mathy Vanvoorden 2007-02-27 22:46:19 UTC
After some looking around I found that the -no_archive option is the culprit. I patched the SConstruct file so that it now builds without errors. I have no idea if this patch is necessary on all arch's or just mine (x86).
Comment 3 Mathy Vanvoorden 2007-02-27 22:48:10 UTC
Created attachment 111495 [details, diff]
Patch for 0.0.9

Just replace the file in /usr/portage/media-gfx/yafray/files with this one. This patch should also work for older versions.
Comment 4 Petr Vokac 2007-03-19 07:41:11 UTC
(In reply to comment #3)
> Created an attachment (id=111495) [edit]
> Patch for 0.0.9
> 
> Just replace the file in /usr/portage/media-gfx/yafray/files with this one.
> This patch should also work for older versions.
> 
something more has to be changed :

ACCEPT_KEYWORDS="~x86" emerge yafray
Calculating dependencies... done!

>>> Emerging (1 of 1) media-gfx/yafray-0.0.9 to /
 * yafray-0.0.9.tar.gz MD5 ;-) ...                                        [ ok ] * yafray-0.0.9.tar.gz RMD160 ;-) ...                                     [ ok ] * yafray-0.0.9.tar.gz SHA1 ;-) ...                                       [ ok ] * yafray-0.0.9.tar.gz SHA256 ;-) ...                                     [ ok ] * yafray-0.0.9.tar.gz size ;-) ...                                       [ ok ] * checking ebuild checksums ;-) ...                                      [ ok ] * checking auxfile checksums ;-) ...                                     [ !! ]
!!! Digest verification failed:
!!! /usr/portage/media-gfx/yafray/files/yafray-0.0.9-scons.patch
!!! Reason: Filesize does not match recorded size
!!! Got: 1179
!!! Expected: 780

Comment 5 Denilson Sá Maia 2007-03-19 11:20:29 UTC
(In reply to comment #4)
> !!! Digest verification failed:
> !!! /usr/portage/media-gfx/yafray/files/yafray-0.0.9-scons.patch
> !!! Reason: Filesize does not match recorded size
> !!! Got: 1179
> !!! Expected: 780

Run:
ebuild /usr/portage/media-gfx/yafray/yafray-0.0.9.ebuild digest

You must do that everytime you manually change the portage. See also:
http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
Comment 6 Luca Barbato gentoo-dev 2007-03-19 12:14:51 UTC
I cannot reproduce it...

emerge --info please
Comment 7 Mathy Vanvoorden 2007-03-20 19:42:31 UTC
Here you go:


Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System release 1.12.6
Timestamp of tree: Fri, 23 Feb 2007 19:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.5-r1, 2.0.31
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2 -ftree-vectorize"
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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse -msse2 -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel_fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/"
LINGUAS="en_GB en_US be nl"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/portage/local/layman/berkano"
SYNC="rsync://rsync.be.gentoo.org/gentoo-portage"
USE="Xaw3d aac acpi acpi4linux berkdb bitmap-fonts browserplugin canvas cli cracklib crypt cups dillo disablekernelsupport divx4linux dri dv dvb dvd dvdr effects evo ext-png ext-zlib faad fbcon fortran freetype gd gd-external gdbm gpm iconv inkjar ipv6 isdnlog ithreads kdeenablefinal kdehiddenvisibility leim libg++ live lufsusermount mbox md5sum midi mmx mmxext mozilla mozsvg mpeg4 ncurses nocd nptl nptlonly nsplugin nvidia offensive pam parse-clocks pcre php plugin ppds pppd print readline real reflection session sms speedo spl sse sse2 ssl tcpd threads tiff transcode truetype-fonts type1 type1-fonts unicode usb userlocales videos win32codecs wxgtk1 x86 xorg yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US be nl" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Luca Barbato gentoo-dev 2007-03-20 21:14:10 UTC
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -mmmx
-msse -msse2 -ftree-vectorize"

I'd drop -mfpmath=sse -mmmx
-msse -msse2 -ftree-vectorize

and that's for starting...

the cflags are quite experimental but should cause that problem ...
Comment 9 Trevor Forbes 2007-03-21 02:28:56 UTC
As already stated when the "-no_archive" is removed then ld -o src/yafraycore/libyafraycore.so ... links. ya...fray..

Perhaps this is related:
http://myxman.org/dp/node/150
Comment 10 Trevor Forbes 2007-04-14 02:00:08 UTC
FWIW the error only happens when using i686-pc-linux-gnu-4.1.2. It builds fine when using i686-pc-linux-gnu-3.4.6
Comment 11 Trevor Forbes 2007-06-09 08:53:39 UTC
It is a scons bug that occurs when dev-lang/ifc (Intel Fortran Compiler) is installed and scons gets the linking wrong. 

I hacked /usr/lib/scons-0.97/SCons/Tool/__init__.py to remove ifort from the fortran compiler choices and yafray builds correctly. 
Comment 12 Luca Barbato gentoo-dev 2007-06-09 09:18:44 UTC
redirecting to the scons people
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-12-28 22:07:05 UTC
Eh, can't reproduce this at all on a sane system. Don't install junk like IFC and you won't have problems.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-12-30 08:17:47 UTC
*** Bug 147765 has been marked as a duplicate of this bug. ***
Comment 15 Oliver Koch 2008-03-13 12:14:34 UTC
*** Bug 213150 has been marked as a duplicate of this bug. ***
Comment 16 Erlend Davidson 2008-07-16 17:16:35 UTC
(In reply to comment #13)
> Eh, can't reproduce this at all on a sane system. Don't install junk like IFC
> and you won't have problems.
> 

There's nothing "insane" about ifc, and it's not junk.  Some of us are scientists who need:
1. to use standards compliant compilers, so we can switch as we move between machines
2. a compiler which gives good performance
3. the same compiler we use at work.

If it really is as simple to solve as removing ifort from /usr/lib/scons-0.97/SCons/Tool/__init__.py can that be added to the ebuild in portage please (especially as this is actually quite a difficult bug to find)?
Comment 17 Jesus Rivero (RETIRED) gentoo-dev 2008-08-20 04:35:21 UTC
I can't reproduce this either. scons-1.0.0 in in tree as of now, could somebody test this bug again and let us know the results?. I'm not into fortran compilers but I don't think removing ifort from scons' fortran compilers list is the _best_ solution to tackle this issue. 

Best regards, 

emerge --info 

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 AMD Sempron(tm) Processor 2500+
Timestamp of tree: Tue, 19 Aug 2008 20:04:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r14, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.20_alpha2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
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/config /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-detect digest distcc distlocks metadata-transfer parallel-fetch sfperms sign strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
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/g_pypi /usr/local/portage /usr/portage/local/layman/enlightenment /usr/portage/local/layman/pythonhead /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amr apache2 audacious bash-completion berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode esd firefox fortran gdbm glitz gnome gnome-print gpm gtk gtk2 gtkhtml iconv ipv6 isdnlog jpeg jpeg2k ldap midi mp3 mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png postgres pppd python readline reflection session spl ssl svg tcpd unicode win32codecs x86 xcb xml xmlreader xmlrpc xmlwriter xorg xsl xslt xvid" ALSA_CARDS="via82xx" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 18 Oliver Koch 2008-08-20 12:08:59 UTC
(In reply to comment #17)
> I can't reproduce this either. scons-1.0.0 in in tree as of now, could somebody
> test this bug again and let us know the results?.

I also cannot reproduce the bug with >=scons-0.98.3, trying to compile yafray-0.0.9-r1. <scons-0.98 chooses the wrong linker (tested versions: 0.97, 0.98.[345] and of course 1.0.0)
Comment 19 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-08-23 12:27:03 UTC
Let's assume this is fixed, then.