Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175890 - scilab-4.1 compile error : scilex can't be executed during compilation
Summary: scilab-4.1 compile error : scilex can't be executed during compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 17:33 UTC by Thomas Capricelli
Modified: 2007-04-26 22:29 UTC (History)
0 users

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 Thomas Capricelli 2007-04-24 17:33:21 UTC
i've tried to find out with no success. I did ldconfig and env-update to try, but this changes nothing

genlop -l gives : 
     Tue Apr 24 19:07:31 2007 >>> sci-libs/blas-atlas-3.7.30
     Tue Apr 24 19:08:31 2007 >>> app-text/sablotron-1.0.3
     Tue Apr 24 19:10:34 2007 >>> x11-libs/vte-0.14.2
     Tue Apr 24 19:10:37 2007 >>> app-admin/eselect-lapack-0.1
     Tue Apr 24 19:19:41 2007 >>> sci-libs/lapack-atlas-3.7.30


ldd on /tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/bin/ gives :
        libblas.so.0 => not found
        libcblas.so.0 => not found

and finally : 
# equery  files blas-atlas | grep libcblas
/usr/lib64/blas/atlas/libcblas.a
/usr/lib64/blas/atlas/libcblas.la
/usr/lib64/blas/atlas/libcblas.so
/usr/lib64/blas/atlas/libcblas.so.0
/usr/lib64/blas/atlas/libcblas.so.0.0.0
/usr/lib64/blas/threaded-atlas/libcblas.a
/usr/lib64/blas/threaded-atlas/libcblas.la
/usr/lib64/blas/threaded-atlas/libcblas.so
/usr/lib64/blas/threaded-atlas/libcblas.so.0
/usr/lib64/blas/threaded-atlas/libcblas.so.0.0.0

Strangely, it seems scilex was compiled with success, but can't be executed. The libcblas had to be found for the link, no ?

Reproducible: Always

Actual Results:  
make[1]: Entering directory `/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/man'
make[2]: Entering directory `/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/man/eng'
Creating html help files
/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/bin/scilab -l eng  \
                -nwni  -e "xmltohtml([],[],'html-rev.xsl');quit" -args -nouserstartup
/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/bin/scilex: error while loading shared libraries: libblas.so.0: cannot open shared object file: No such file or directory
make[2]: *** [man] Error 127
Comment 1 Thomas Capricelli 2007-04-25 10:59:09 UTC
Oh, i forgot, there's this part of output before the scilex problem. I've checked other scilab-related bugs, and it doesn't seem to be related.
i dont have the tcl use flag, emerge -vta scilab says : 
[ebuild  N    ] sci-mathematics/scilab-4.1  USE="gtk java -Xaw3d -debug -ocaml -tk" 0 kB


...
rm -f ../bin/intersci-n
gcc -o ../bin/intersci-n intersci-n.o getrhs.o crerhs.o variables.o read.o fornames.o out.o outext.o declare.o opt.o check.o -lieee
make[1]: Leaving directory `/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/intersci'
making all in tcl...
make[1]: Entering directory `/tmp/portage/sci-mathematics/scilab-4.1/work/scilab-4.1/tcl'
gcc -o browsehelpexe browsehelpexe.c -march=k8 -O3 -pipe `pkg-config gtk+-2.0 --cflags`    -I.  -lieee   `pkg-config gtk+-2.0 libgtkhtml-2.0 --libs`        -lm
/tmp/portage/sci-mathematics/scilab-4.1/temp/ccUq5ANZ.o: In function `flushTKEvents':
browsehelpexe.c:(.text+0xa): undefined reference to `Tcl_DoOneEvent'
/tmp/portage/sci-mathematics/scilab-4.1/temp/ccUq5ANZ.o: In function `main':
browsehelpexe.c:(.text+0xbe): undefined reference to `Tcl_FindExecutable'
browsehelpexe.c:(.text+0xc3): undefined reference to `Tcl_CreateInterp'
browsehelpexe.c:(.text+0xce): undefined reference to `Tcl_Init'
browsehelpexe.c:(.text+0xe3): undefined reference to `Tk_Init'
browsehelpexe.c:(.text+0xf2): undefined reference to `Tk_MainLoop'
browsehelpexe.c:(.text+0x121): undefined reference to `Tk_MainWindow'
browsehelpexe.c:(.text+0x14d): undefined reference to `Tk_GeometryRequest'
browsehelpexe.c:(.text+0x163): undefined reference to `Tcl_SetVar'
browsehelpexe.c:(.text+0x179): undefined reference to `Tcl_SetVar'
browsehelpexe.c:(.text+0x18f): undefined reference to `Tcl_SetVar'
browsehelpexe.c:(.text+0x1b0): undefined reference to `Tcl_SetVar'
browsehelpexe.c:(.text+0x1bd): undefined reference to `Tcl_EvalFile'
browsehelpexe.c:(.text+0x1ca): undefined reference to `Tcl_Eval'
browsehelpexe.c:(.text+0x1d7): undefined reference to `Tcl_Eval'
browsehelpexe.c:(.text+0x1e4): undefined reference to `Tcl_Eval'
browsehelpexe.c:(.text+0x1ee): undefined reference to `Tcl_DoOneEvent'
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2007-04-25 12:51:03 UTC
Hi Thomas,

Thanks for your report. Could you please post your emerge --info
and possibly your complete build log up until it fails. Also,
what does 

eselect cblas list
eselect blas list

give? Have you tried re-setting the proper (c)blas
implementation via "eselect set <implementation> to make
sure all the symlinks are there?

Thanks,
Markus
Comment 3 Thomas Capricelli 2007-04-25 13:10:49 UTC
To answer your questions : 

berlioz ~ # eselect  cblas list
Installed CBLAS for library directory lib64
  [1]   atlas
  [2]   threaded-atlas *
berlioz ~ # eselect  blas list
Installed BLAS for library directory lib64
  [1]   atlas
  [2]   threaded-atlas *

If i select '1' for both, then........ it fixes the problem and scilab gets installed ! thanx!

(i dont know if i should close the bug, as still, if you just do 'emerge scilab', it fails)


emerge info :
Portage 2.1.2.3 (default-linux/amd64/2006.1, gcc-4.0.3, glibc-2.5-r1, 2.6.20 x86_64)
=================================================================
System uname: 2.6.20 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.10
Timestamp of tree: Sat, 14 Apr 2007 21:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
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/kde/3.svn/share/config /usr/kde/4.svn/share/config /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.ntua.gr/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.intergenia.de"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en fr it"
MAKEOPTS="-j 3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage-fh /var/portage/overlays/demexp"
SYNC="rsync://gentoo.freehackers.org/gentoo-portage"
USE="X a52 aac alsa amd64 arts berkdb bidi bitmap-fonts browserplugin bzip2 cairo cdda cdio cli cracklib crypt cups dbus dga divx4linux dri dts dv dvb dvd dvdread edl encode exif fam fbcon fbdev ffmpeg flac font-server fortran freetype gdbm gif gnutls gpm gtk hal httpd iconv ilbc imap innodb ipv6 isdnlog jabber java jpeg kde lame libg++ live lm_sensors mad matroska midi mng mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl pam pcre pdf perl perlsuid pic png ppds pppd python qt3 qt4 quicktime readline reflection rtc rtsp samba sasl session speex spl sqlite3 ssl stream svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vlm vorbis wifi wmf wxwindows x264 xcomposite xine xinerama xorg xv xvid xvmc zeroconf zlib zrtp" 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 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 fr it" USERLAND="GNU" VIDEO_CARDS="vga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2007-04-26 22:29:39 UTC
Hi Thomas,

I am glad scilab installs now. I'll close this bug as fixed since the
scilab problem is gone. However, it looks like you have an issue
with your eselect blas. You may want to remerge it just to make
sure.

Best,
Markus