Console out ends with: make[5]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/tune/blas/gemv/Linux_P4SSE2' /usr/lib/ccache/bin/gcc -DL2SIZE=524288 -I/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/include -I/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/include/Linux_P4SSE2 -I/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/include/contrib -DAdd__ -DStringSunStyle -DATL_OS_Linux -DATL_ARCH_P4 -DATL_SSE2 -DATL_SSE1 -DATL_GAS_x8632 -o xdmv dgemvtune.o \ ATL_dgemv.o ATL_dgemvN_b0.o ATL_dgemvN_b1.o ATL_dgemvN_bX.o ATL_dgemvT_b0.o ATL_dgemvT_b1.o ATL_dgemvT_bX.o /wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/lib/Linux_P4SSE2/libtstatlas.a /wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/lib/Linux_P4SSE2/libatlas.a /wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/bin/Linux_P4SSE2/ATLrun.sh /wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/tune/blas/gemv/Linux_P4SSE2 xdmv -C 9 -l 75 -A N \ -m 1000 -n 1000 -f 16 -o res/dgemvN_9_75 res/dgemvN_9_75 : 493.871572 MFLOPS res/dgemvN_9_75 : 355.240955 MFLOPS res/dgemvN_9_75 : 232.077061 MFLOPS res/dgemvN_9_75 : 360.40 MFLOPS make[4]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/tune/blas/gemv/Linux_P4SSE2' res/dgemvN_9_75 : VARIATION EXCEEDS TOLERENCE, RERUN WITH HIGHER REPS. ATL_gemvN_mm.c : 285.56 ATL_gemvN_1x1_1.c : 147.26 ATL_gemvN_1x1_1a.c : 453.33 ATL_gemvN_4x2_0.c : 195.17 ATL_gemvN_4x4_1.c : 232.97 ATL_gemvN_8x4_1.c : 300.68 ATL_gemvN_16x2_1.c : 262.97 ATL_gemvN_16x4_1.c : 271.19 make[3]: *** [res/dMVRES] Error 255 make[3]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/tune/blas/gemv/Linux_P4SSE2' make[2]: *** [/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/tune/blas/gemv/Linux_P4SSE2/res/dMVRES] Error 2 make[2]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/bin/Linux_P4SSE2' ERROR 640 DURING MVTUNE!!. CHECK INSTALL_LOG/dMVTUNE.LOG FOR DETAILS. make[2]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/bin/Linux_P4SSE2' cd ../.. ; make error_report arch=Linux_P4SSE2 make[3]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS' make -f Make.top error_report arch=Linux_P4SSE2 make[4]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS' uname -a 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG /usr/lib/ccache/bin/gcc -v 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/specs Configured with: /wrk/tmp/portage/portage/gcc-3.3.6/work/gcc-3.3.6/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) /usr/lib/ccache/bin/gcc -V 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG gcc: `-V' option must have argument make[4]: [error_report] Error 1 (ignored) /usr/lib/ccache/bin/gcc --version 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG /bin/tar cf error_Linux_P4SSE2.tar Make.Linux_P4SSE2 bin/Linux_P4SSE2/INSTALL_LOG/* /bin/gzip --best error_Linux_P4SSE2.tar mv error_Linux_P4SSE2.tar.gz error_Linux_P4SSE2.tgz make[4]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS' make[3]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS' make[2]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS/bin/Linux_P4SSE2' Error report error_<ARCH>.tgz has been created in your top-level ATLAS directory. Be sure to include this file in any help request. First, make sure this error is not covered in the ATLAS errata file, http://math-atlas.sourceforge.net/errata.html All known errors, and most common mistakes/system problems are documented in this file, so it will save everyone hassle in the long run if you take the time to scope it out before sending e-mail to the help list. If this does not have the solution to your problem, and you can't figure out what went wrong, submit a support request to the ATLAS support tracker, as discussed here: http://math-atlas.sourceforge.net/faq.html#help In the above examples, <ARCH> should be replaced with your architecture string, such as "Linux_PIII" or "FreeBSD_21264". make[1]: *** [install] Error 255 make[1]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.6.0/work/ATLAS' make: *** [install] Error 2 !!! ERROR: sci-libs/blas-atlas-3.6.0 failed. !!! Function src_compile, Line 110, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. My system info is: # emerge info Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.6-r0, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.12.0_pre10 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/x/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.citkit.ru/pub/Linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://mir.zyrianes.net/gentoo/ http://ftp.rhnet.is/pub/gentoo/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LANG="en_US.UTF-8" MAKEOPTS="-j1" PKGDIR="/x/portage/packages" PORTAGE_TMPDIR="/wrk/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr crypt cups curl dvd dvdr dvdread eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gphoto2 gpm gstreamer gtk gtk2 guile howl idn imagemagick imlib ipv6 jack jpeg kde kdexdeltas ladcca lcms ldap libg++ libwww lirc mad mikmod mmx mng motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl png python qt quicktime readline sdl slang soundtouch speex spell sqlite ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS Reproducible: Always Steps to Reproduce:
Hi Andrew, > ccache version 2.4 [enabled] Could you please try to compile with ccache turned off an report back. Thanks!
Markus, I have tried with disabled ccache with the same result.
Hi Andrew, Bummer! I seem to remember having some ccache problems in the past, oh well. In any case, I just compiled it fine using gcc-3.4.4 and hopefully I can give 3.3.6 a shot sometime. In the meantime I'd suggest you try dropping -fomit-frame-pointer. BTW: You're using glibc-2.3.6 which currently isn't even marked testing and could potentially cause all sorts of problems!!
Last attempt (ccache is disabled) was done with glibc 2.3.5. There was a short "portage period" 2.3.6 was not masked. And I have synced just during this period :-) Now glibc is downgraded to 2.3.5-r3. BTW, I use "nptlonly" USE flag. Does it matter? I'll try to build without '-fomit-frame-pointer' a little later.
Omitting '-fomit-frame-pointer' doesn't help too.
Ok, i tried building it with 3.3.6 and it worked just fine. Since you have been fiddling around with glibc I suggest that you try rebuilding your whole toolchain and then give blas-atlas another shot. BTW: Does it always die in the same routine or in different ones?
Markus, - what do you mean saying about 'toolchain' - which packages and in which sequence must be reemerged? - the error is the same, as I remember - must I upload cited error_Linux_P4SSE2.tgz file (51Kb)?
Hi Andrew, >- what do you mean saying about 'toolchain' - which packages and in which > sequence must be reemerged? Good question and I should have been more verbose. Here's what I usually do to recompile my toolchain, even though I am sure some people disagree:) emerge linux-headers glibc gcc binutils && emerge linux-headers glibc gcc binutils > - must I upload cited error_Linux_P4SSE2.tgz file (51Kb)? Try recompiling with your updated toolchain first. If that doesn't work please contact upstream with the error file.
Markus, Double reemerging of listed packages didn't help.
I have filed new issue here: https://sourceforge.net/tracker/index.php?func=detail&aid=1359358&group_id=23725&atid=379483
This is Clint's answer at the cited SF issue: "Andrew, This is the classic: http://math-atlas.sourceforge.net/errata.html#tol Any reason you are using non-standard flags and not using the arch defaults? I recommond the newest developer release (3.6 is way out of date for modern x86 machines). Regards, Clint"
Have you tried any of the recommendations given in the link? Also, have you tried if the more recent blas-atlas-3.7.10 works for you?
- there are no any USE flags to play with, - my goal is to install a scilab. After unmaskig blas-atlas-3.7.10 I get this packages list: ________________ emerge -pv scilab These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] sci-libs/blas-atlas-3.7.10 -debug -doc 1,985 kB [ebuild N ] sci-libs/blas-atlas-3.6.0 -doc 0 kB [ebuild N ] sci-libs/lapack-config-1.0.1 0 kB [ebuild N ] sci-libs/lapack-atlas-3.6.0-r1 -debug -doc -ifc 0 kB [ebuild N ] sci-mathematics/scilab-3.1.1-r3 -Xaw3d -debug +gtk -ifc -ocaml +tcltk 0 kB Total size of downloads: 1,985 kB ______________________________ You see, there is strange sci-libs/blas-atlas doubling.
Alone blas-atlas-3.7.10 emerging ends with: ____________________________ ... /wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/bin/Linux_P4SSE2/ATLrun.sh /wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/tune/blas/gemv/Linux_P4SSE2 xzmv -C 106 -l 97 -A T \ -m 1000 -n 1000 -f 0 -o res/zgemvT_106_97 res/zgemvT_106_97 : 529.767995 MFLOPS res/zgemvT_106_97 : 645.120970 MFLOPS res/zgemvT_106_97 : 1111.041671 MFLOPS res/zgemvT_106_97 : 761.98 MFLOPS make[4]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/tune/blas/gemv/Linux_P4SSE2' res/zgemvT_106_97 : VARIATION EXCEEDS TOLERENCE, RERUN WITH HIGHER REPS. ATL_cgemvN_mm.c : 199.99 ATL_cgemvN_1x1_1.c : 252.26 ATL_cgemvN_1x1_1a.c : 794.72 ATL_cgemvN_2x2_0.c : 391.90 ATL_cgemvN_4x2_1.c : 369.54 ATL_gemvN_SSE.c : -1.00 best zgemvN : ID=3, mu=32, nu=1 at 794.72 MFLOPS ATL_cgemvT_mm.c : 745.88 ATL_cgemvT_2x2_0.c : 766.74 ATL_cgemvT_2x4_1.c : 369.80 ATL_cgemvT_1x1_1.c : 975.69 ATL_gemvT_SSE.c : -1.00 ATL_gemv_SSE.c : 1091.15 best zgemvT : ID=106, mu=1, nu=128 at 1091.15 MFLOPS 50% 1111.46MFLOP --- 100% 1132.65MFLOP 75% 1091.15MFLOP --- 100% 1132.65MFLOP 87% 535.33MFLOP --- 100% 1132.65MFLOP 93% 1100.90MFLOP --- 100% 1132.65MFLOP 96% 1149.11MFLOP --- 100% 1132.65MFLOP 96% 1149.11MFLOP --- 98% 525.17MFLOP make[3]: *** [res/zMVRES] Error 255 make[3]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/tune/blas/gemv/Linux_P4SSE2' make[2]: *** [/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/tune/blas/gemv/Linux_P4SSE2/res/zMVRES] Error 2 make[2]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/bin/Linux_P4SSE2' ERROR 640 DURING MVTUNE!!. CHECK INSTALL_LOG/zMVTUNE.LOG FOR DETAILS. make[2]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/bin/Linux_P4SSE2' cd ../.. ; make error_report arch=Linux_P4SSE2 make[3]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS' make -f Make.top error_report arch=Linux_P4SSE2 make[4]: Entering directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS' uname -a 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG /usr/lib/ccache/bin/gcc -v 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/specs Configured with: /wrk/tmp/portage/portage/gcc-3.3.6/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) /usr/lib/ccache/bin/gcc -V 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG gcc: `-V' option must have argument make[4]: [error_report] Error 1 (ignored) /usr/lib/ccache/bin/gcc --version 2>&1 >> bin/Linux_P4SSE2/INSTALL_LOG/ERROR.LOG /bin/tar cf error_Linux_P4SSE2.tar Make.Linux_P4SSE2 bin/Linux_P4SSE2/INSTALL_LOG/* /bin/gzip --best error_Linux_P4SSE2.tar mv error_Linux_P4SSE2.tar.gz error_Linux_P4SSE2.tgz make[4]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS' make[3]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS' make[2]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS/bin/Linux_P4SSE2' Error report error_<ARCH>.tgz has been created in your top-level ATLAS directory. Be sure to include this file in any help request. First, make sure this error is not covered in the ATLAS errata file, http://math-atlas.sourceforge.net/errata.html All known errors, and most common mistakes/system problems are documented in this file, so it will save everyone hassle in the long run if you take the time to scope it out before sending e-mail to the help list. If this does not have the solution to your problem, and you can't figure out what went wrong, submit a support request to the ATLAS support tracker, as discussed here: http://math-atlas.sourceforge.net/faq.html#help In the above examples, <ARCH> should be replaced with your architecture string, such as "Linux_PIII" or "FreeBSD_21264". make[1]: *** [install] Error 255 make[1]: Leaving directory `/wrk/tmp/portage/portage/blas-atlas-3.7.10/work/ATLAS' make: *** [install] Error 2 !!! ERROR: sci-libs/blas-atlas-3.7.10 failed. !!! Function src_compile, Line 103, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message.
(In reply to comment #13) > - there are no any USE flags to play with, > It looks like your setup has a general timing problem while compiling atlas and you will have to walk through the instructions provided in the link that the atlas folks provided. You could, e.g., use ebuild to compile atlas until it dies, then cd into the appropriate directory in /var/tmp/portage and then follow the instructions on the website. Hopefully, this will eventually provide you with a working install.
At last, in accordance with these instructions http://math-atlas.sourceforge.net/errata.html#tol I have increased five times ATL_nkflop constants (with deleting "bad" result files) and, in accordance with restart instructions http://math-atlas.sourceforge.net/errata.html#restart, was able to build the app. What are my further steps?
Since this particular problem seems fairly specific to your system setup I don't think that there's anything that can be done inside portage since any patch that would jack up the timings like you had to do might then cause problems for other people. I would therefore recommend that you create a patch for this fix that you then add to an ebuild in your local portage overlay. I will close this bug for now and please email me if you need more detailed instructions regarding the overlay.
*** Bug 159778 has been marked as a duplicate of this bug. ***