Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296510 - media-gfx/hugin-2009.2.0.ebuild fails to buld with acml with USE lapack enabled
Summary: media-gfx/hugin-2009.2.0.ebuild fails to buld with acml with USE lapack enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-11 12:27 UTC by Frank Hellmuth
Modified: 2013-11-24 16:43 UTC (History)
1 user (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 Frank Hellmuth 2009-12-11 12:27:42 UTC
Linking fails with

Linking CXX shared library libceleste.so                                                                 
[ 66%] Built target celeste                                                                              
Linking CXX executable align_image_stack                                                                 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrda_sincos_'                                                                                                      
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrda_exp_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrda_scaled_logr_'                                                                                                 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_logf_'                                                                                                        
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_expf_'                                                                                                        
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrda_log_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_sincosf_'                                                                                                     
collect2: ld gab 1 als Ende-Status zurück                                                                
make[2]: *** [src/tools/align_image_stack] Fehler 1                                                      
make[1]: *** [src/tools/CMakeFiles/align_image_stack.dir/all] Fehler 2                                   
make: *** [all] Fehler 2                                                                                 
 * ERROR: media-gfx/hugin-2009.2.0 failed:                                                               
 *   Make failed!

Adding LDFLAGS -L/opt/acml4.1.0/gfortran64_mp/lib -lacml_mp -lacml_mv makes higin emerge and work fine.


Reproducible: Always




 # eselect lapack list
Installed LAPACK for library directory lib64
  [1]   acml-gfortran
  [2]   acml-gfortran-int64
  [3]   acml-gfortran-openmp *
  [4]   acml-gfortran-openmp-int64

# emerge --info                 
Portage 2.2_rc58 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-default x86_64)                                                                                                       
=================================================================                                        
System uname: Linux-2.6.32-gentoo-default-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.1                                                                                                 
Timestamp of tree: Fri, 11 Dec 2009 10:30:01 +0000                                                       
app-shells/bash:     4.0_p35                                                                             
dev-java/java-config: 2.1.10                                                                             
dev-lang/python:     2.6.4                                                                               
dev-util/cmake:      2.8.0                                                                               
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.5.3                                                                               
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.64                                                                          
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                                                  
sys-devel/binutils:  2.20                                                                                
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6b                                                                              
virtual/os-headers:  2.6.30-r1                                                                           
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                           
ACCEPT_LICENSE="*"                                                                                       
CBUILD="x86_64-pc-linux-gnu"                                                                             
CFLAGS="-march=native -O2"                                                                               
CHOST="x86_64-pc-linux-gnu"                                                                              
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                               
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                
CXXFLAGS="-march=native -O2"                                                                             
DISTDIR="/usr/portage/distfiles"                                                                         
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                     
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.blueyonder.co.uk http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"                                           
LANG="de_DE.UTF-8"                                                                                       
LDFLAGS="-Wl,-O1"                                                                                        
LINGUAS="en de"                                                                                          
MAKEOPTS="-j3"                                                                                           
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/portage/local/layman/nx /usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome2-globalmenu /usr/local/portage"                                 
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                           
USE="3dnow X a52 aac aalib accessibility acl acpi akonadi alsa amazon amd64 apache2 audiofile automount avahi bash-completion berkdb bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr cli consolekit cracklib crypt css cups cvs cxx dbus djvu dri dssi dts dv dvb dvd dvdnav dvdr emacs emboss encode examples exif expat fbcon ffmpeg fftw firefox flac fluidsynth fortran ftp gd gdbm gecko gif gimp ginac glut gmp gnome gnuplot gnutls gphoto2 gpm gsl gstreamer gtk hal iconv icq idn ieee1394 imagemagick imap inotify ipod jack jackmidi java java6 javascript jpeg kde kerberos ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate lirc lm_sensors lzo mad mikmod mime mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz mysql mythtv ncurses nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp pam pcre pdf perl plasma plotutils png policykit ppds pppd python qt3support qt4 quicktime raw rdesktop readline recode reflection rss samba scanner sdl session slang smp sndfile snmp sockets sox spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd theora threads thunar tiff timidity truetype udev unicode usb v4l v4l2 vcd virtualbox vnc vorbis vst wav webkit wifi wmf wxwindows x264 xcomposite xemacs xetex xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" LINGUAS="en de" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Harder gentoo-dev 2011-05-18 02:30:08 UTC
Is this still relevant to current releases in the tree?
Comment 2 Frank Hellmuth 2011-05-18 17:17:40 UTC
Yes. Just switched back for a try to acml 

# eselect lapack list
Installed LAPACK for library directory lib64
  [1]   acml-gfortran-int64
  [2]   acml-gfortran-openmp-int64 *
  [3]   atlas

and got

# emerge hugin
[...]
[ 64%] Building CXX object src/celeste/CMakeFiles/celeste.dir/Utilities.cpp.o                                                               
/var/tmp/portage/media-gfx/hugin-2010.4.0/work/hugin-2010.4.0/src/celeste/Utilities.cpp: In Funktion »void celeste::FileOpenError(char*)«:  
/var/tmp/portage/media-gfx/hugin-2010.4.0/work/hugin-2010.4.0/src/celeste/Utilities.cpp:206:32: Warnung: ignoring return value of »char* getcwd(char*, size_t)«, declared with attribute warn_unused_result
/var/tmp/portage/media-gfx/hugin-2010.4.0/work/hugin-2010.4.0/src/celeste/Utilities.cpp: In Funktion »void celeste::FileCreateError(char*)«:
/var/tmp/portage/media-gfx/hugin-2010.4.0/work/hugin-2010.4.0/src/celeste/Utilities.cpp:197:32: Warnung: ignoring return value of »char* getcwd(char*, size_t)«, declared with attribute warn_unused_result
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrda_sincos_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrda_exp_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrda_scaled_logr_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_logf_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_expf_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrda_log_'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/liblapack.so: undefined reference to `vrsa_sincosf_'
[...]
Comment 3 Tim Harder gentoo-dev 2011-05-18 20:13:32 UTC
So it would probably be good just to depend on lapack-reference or lapack-atlas instead of virtual/lapack.

At least, until someone provides a patch since I don't want to fix the underlying problem. :)
Comment 4 Frank Hellmuth 2011-05-18 20:29:43 UTC
Since no one really independent confirmed my bug report and I'm not an expert in the details of linking Fortran libs to C code, I would leave it as is, until either we get an independent confirmation (maybe it's something with my local setup) or we have at least a hint whats wrong with linking hugin against amds core math libraries.
Comment 5 Tim Harder gentoo-dev 2011-05-18 20:45:13 UTC
(In reply to comment #4)
> Since no one really independent confirmed my bug report and I'm not an expert
> in the details of linking Fortran libs to C code, I would leave it as is, until
> either we get an independent confirmation (maybe it's something with my local
> setup) or we have at least a hint whats wrong with linking hugin against amds
> core math libraries.

Sounds fine to me. I might look into it more sometime if I feel like doing some debugging.
Comment 6 Michael Weber (RETIRED) gentoo-dev 2013-06-15 12:03:02 UTC
(In reply to Tim Harder from comment #1)
> Is this still relevant to current releases in the tree?

Can you reproduce this problem with 2011.4.0-r1?
Comment 7 Frank Hellmuth 2013-06-15 12:28:02 UTC
(In reply to Michael Weber from comment #6)

> Can you reproduce this problem with 2011.4.0-r1?

As my gentoo installation currently suffers from serious hardware problems and this seems to be a kind of "exotic" bug, since no one else complained, I suggest to close the bug.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2013-11-24 16:43:30 UTC
+*hugin-9999 (24 Nov 2013)
+*hugin-2012.0.0-r1 (24 Nov 2013)
+
+  24 Nov 2013; Justin Lecher <jlec@gentoo.org> +hugin-2012.0.0-r1.ebuild,
+  hugin-2013.0.0.ebuild, +hugin-9999.ebuild, +files/hugin-2012.0.0-boost.patch,
+  +files/hugin-2012.0.0-perl.patch, +files/hugin-2013.0.0-boost.patch,
+  metadata.xml:
+  Backport fix for building with newer boost; Use system cmake modules to
+  detect lapack; backport patch to use perl 5.16; fixes bugs
+  #296510,300127,373387,374337,388149,404227,484238
+
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-11-24 16:43:52 UTC
+*hugin-9999 (24 Nov 2013)
+*hugin-2012.0.0-r1 (24 Nov 2013)
+
+  24 Nov 2013; Justin Lecher <jlec@gentoo.org> +hugin-2012.0.0-r1.ebuild,
+  hugin-2013.0.0.ebuild, +hugin-9999.ebuild, +files/hugin-2012.0.0-boost.patch,
+  +files/hugin-2012.0.0-perl.patch, +files/hugin-2013.0.0-boost.patch,
+  metadata.xml:
+  Backport fix for building with newer boost; Use system cmake modules to
+  detect lapack; backport patch to use perl 5.16; fixes bugs
+  #296510,300127,373387,374337,388149,404227,484238
+