Gentoo Archives: gentoo-science

From: Bill Dandreta <wjdandreta@×××.net>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] Cblas, Numpy, Scipy
Date: Wed, 28 Feb 2007 00:22:16
Message-Id: 45E4CB12.9090805@att.net
In Reply to: Re: [gentoo-science] Cblas, Numpy, Scipy by "Sébastien Fabbro"
1 Hi Sébastien,
2
3 I was trying to use acml to avoid compiling blas-atlas (it takes about 2
4 hours and I don't really need it right now. Also numpy and scipy are not
5 supposed to require it.
6
7 Note: This is on a new installation, some binaries came from the Gentoo
8 2006.1 stage3 tarball.
9
10 I tried compiling atlas, with the following error:
11
12 "libgfortran.so: could not read symbols: File in wrong format"
13
14 Here is the output from emerge:
15
16 gcc -shared .libs/libatlas.la-3.o -lpthread
17 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/32/libgfortran.so -Wl,-soname
18 -Wl,libatlas.so.0 -o .libs/libatlas.so.0.0.0
19 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/32/libgfortran.so: could not read
20 symbols: File in wrong format
21 collect2: ld returned 1 exit status
22 libtool: install: `libatlas.la' is not a valid libtool archive
23 Try `libtool --help --mode=install' for more information.
24 make[1]: *** [libatlas.so] Error 1
25 make[1]: Leaving directory
26 `/var/tmp/portage/sci-libs/blas-atlas-3.7.11/work/ATLAS'
27 make: *** [shared-strip] Error 2
28
29 !!! ERROR: sci-libs/blas-atlas-3.7.11 failed.
30 Call stack:
31 ebuild.sh, line 1614: Called dyn_compile
32 ebuild.sh, line 971: Called qa_call 'src_compile'
33 environment, line 3741: Called src_compile
34 blas-atlas-3.7.11.ebuild, line 132: Called die
35
36 Here is output from emerge --info:
37
38 plum ~ # emerge --info
39 Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0,
40 2.6.19-gentoo-r5 x86_64)
41 =================================================================
42 System uname: 2.6.19-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
43 Gentoo Base System version 1.12.1
44 Timestamp of tree: Sun, 25 Feb 2007 01:00:08 +0000
45 dev-lang/python: 2.4.3-r4
46 dev-python/pycrypto: 2.0.1-r5
47 sys-apps/sandbox: 1.2.17
48 sys-devel/autoconf: 2.13, 2.61
49 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
50 sys-devel/binutils: 2.16.1-r3
51 sys-devel/gcc-config: 1.3.14
52 sys-devel/libtool: 1.5.22
53 virtual/os-headers: 2.6.17-r1
54 ACCEPT_KEYWORDS="amd64"
55 AUTOCLEAN="yes"
56 CBUILD="x86_64-pc-linux-gnu"
57 CFLAGS="-march=athlon64 -O2 -pipe"
58 CHOST="x86_64-pc-linux-gnu"
59 CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
60 /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
61 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
62 CXXFLAGS="-march=athlon64 -O2 -pipe"
63 DISTDIR="/usr/portage/distfiles"
64 FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
65 GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
66 ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo
67 http://64.158.56.55 ftp://gentoo.mirrors.tds.net/gentoo"
68 MAKEOPTS="-j4"
69 PKGDIR="/usr/portage/packages"
70 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
71 --compress --force --whole-file --delete --delete-after --stats
72 --timeout=300 --exclude=/distfiles --exclude=/local --exclude=/packages"
73 PORTAGE_TMPDIR="/var/tmp"
74 PORTDIR="/usr/portage"
75 PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
76 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
77 USE="amd64 apache2 berkdb bitmap-fonts cli cracklib crypt cups doc dri
78 dvdread fortran gdbm gpm iconv ipv6 isdnlog libg++ midi mysql ncurses
79 nls nptl nptlonly pam pcre perl ppds pppd python readline reflection
80 session spl ssl tcpd truetype-fonts type1-fonts unicode usb wxwindows
81 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106
82 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
83 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
84 ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
85 file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null
86 plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard
87 mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
88 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx
89 radeon vesa fbdev"
90 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
91 LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
92
93 Bill
94
95 Sébastien Fabbro wrote:
96 > Hi Bill,
97 >
98 > You should report on bugs.gentoo.org.
99 > First make sure you synced your portage tree.
100 > Then see which cblas you have chosen with eselect show cblas.
101 > If it shows reference, atlas or threaded-atlas, and you still cannot get
102 > numpy to compile, then file a bug on the site above with en emerge
103 > --info, and I will see what I can do. acml needs more work, and is not
104 > yet supported by the ebuilds.
105 >
106 > Sebastien
107 >
108 > Bill Dandreta wrote:
109 >
110 >> I cannot get Numpy, Scipy to compile. Cblas error.
111 >>
112 >>
113 >>>>> Compiling source in
114 >>>>>
115 >> /var/tmp/portage/dev-python/numpy-1.0.1-r1/work/numpy-1.0.1 ...
116 >> !!! Error: Can't load module cblas
117 >> * You need to set cblas to atlas or reference. Do:
118 >> * eselect cblas set <impl>
119 >> * where <impl> is atlas, threaded-atlas or reference
120 >>
121 >> !!! ERROR: dev-python/numpy-1.0.1-r1 failed.
122 >> Call stack:
123 >> ebuild.sh, line 1614: Called dyn_compile
124 >> ebuild.sh, line 971: Called qa_call 'src_compile'
125 >> environment, line 3970: Called src_compile
126 >> numpy-1.0.1-r1.ebuild, line 123: Called numpy_configure
127 >> numpy-1.0.1-r1.ebuild, line 38: Called die
128 >>
129 >> eselect cblas set <anything>
130 >>
131 >> gives:
132 >> !!! Error: Can't load module cblas
133 >> Killed
134 >>
135 >> After:
136 >>
137 >> emerge -av eselect-cblas
138 >>
139 >>
140 >>>>> Compiling source in
141 >>>>>
142 >> /var/tmp/portage/dev-python/numpy-1.0.1-r1/work/numpy-1.0.1 ...
143 >> * You need to set cblas to atlas or reference. Do:
144 >> * eselect cblas set <impl>
145 >> * where <impl> is atlas, threaded-atlas or reference
146 >>
147 >> !!! ERROR: dev-python/numpy-1.0.1-r1 failed.
148 >> Call stack:
149 >> ebuild.sh, line 1614: Called dyn_compile
150 >> ebuild.sh, line 971: Called qa_call 'src_compile'
151 >> environment, line 3970: Called src_compile
152 >> numpy-1.0.1-r1.ebuild, line 123: Called numpy_configure
153 >> numpy-1.0.1-r1.ebuild, line 38: Called die
154 >>
155 >> !!! setup failed
156 >> !!! If you need support, post the topmost build error, and the call
157 >> stack if relevant.
158 >> !!! A complete build log is located at
159 >> '/var/tmp/portage/dev-python/numpy-1.0.1-r1/temp/build.log'.
160 >>
161 >>
162 >> I tried setting cblas to acml but I cannot get it to work.
163 >>
164 >> Any suggestions??
165 >>
166 >> Bill
167 >>
168 >
169 >

Replies

Subject Author
Re: [gentoo-science] Cblas, Numpy, Scipy "Sébastien Fabbro" <bicatali@g.o>