Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192823 - [science overlay] sci-libs/blas-atlas-3.7.37 - xconfig crashes while building
Summary: [science overlay] sci-libs/blas-atlas-3.7.37 - xconfig crashes while building
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-17 15:00 UTC by Adam Wieckowski
Modified: 2007-09-17 19:22 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 Adam Wieckowski 2007-09-17 15:00:50 UTC
xconfig shows the usage screen end exits with status 19.

Reproducible: Always

Steps to Reproduce:
1.emerge 'atlas-blas-3.7.37'

Actual Results:  
xconfig shows the usage screen end exits with status 19. the sci-libs/blas-atlas should build properly, while it doesn't

Expected Results:  
don't know, developers of blas-atlas should know. basically, blas-atlas should build.

From what the usage screen says, the -F flag should assign fortran compiler flags, thus it should be sth. like -F if 'some flags', but as there are none flags set, it goes like -F if -NextFlag, which xconfig misinterpreters. I believe it's because there are none fortran flags set.
I don't know any way to set fortran flags globally in gentoo so I don't know how to fix the issue.
Comment 1 Adam Wieckowski 2007-09-17 15:02:28 UTC
I meant emerge '=blas-atlas-3.7.37', the = lacks in the other example.
This issue should be reassigned to the science dev team.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-17 15:44:25 UTC
Please post your emerge --info and the actual error messages (attach the build log) as well.
Comment 3 Adam Wieckowski 2007-09-17 17:35:12 UTC
Here they are


adam@localhost ~ $ cat /var/tmp/portage/sci-libs/blas-atlas-3.7.37/temp/build.log 
 * You need one of these Fortran Compilers: g77 gfortran ifc
 * Installed are:  gfortran
 * Using gfortran

 * Please make sure to disable CPU throttling completely
 * during the compile of blas-atlas. Otherwise, all atlas
 * generated timings will be completely random and the
 * performance of the resulting libraries will be degraded
 * considerably.

 * For users of <=gcc-4.1.1 only:
 * If you experience failing SANITY tests during
 * atlas' compile please try passing -mfpmath=387; this
 * option might also result in much better performance
 * than using then sse instruction set depending on your
 * CPU.

>>> Unpacking source...
>>> Unpacking atlas3.7.37.tar.bz2 to /var/tmp/portage/sci-libs/blas-atlas-3.7.37/work
 * Applying atlas-3.7.37-shared-libs.patch ...                            [ ok ]
 * Applying atlas-asm-gentoo.patch ...                                    [ ok ]
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/include  -march=nocona -O2 -pipe -c /var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/src/atlconf_misc.c
x86_64-pc-linux-gnu-gcc -I/var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/include  -march=nocona -O2 -pipe -o xconfig /var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/src/config.c atlconf_misc.o 
/var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/src/config.c: In function ‘ProbeF77LIB’:
/var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/..//CONFIG/src/config.c:287: warning: assignment makes pointer from integer without a cast
atlconf_misc.o: In function `CmndResults':
atlconf_misc.c:(.text+0xb5b): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
./xconfig -d s /var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build/../ -d b /var/tmp/portage/sci-libs/blas-atlas-3.7.37/work/ATLAS/gentoo-build  -C ac x86_64-pc-linux-gnu-gcc -F ac '-march=nocona -O2 -pipe' -C if gfortran -F if  -Ss pmake '$(MAKE) -j6' -Si cputhrchk 0 -b 64

ERROR around arg 19 (pmake).
USAGE: ./xconfig [flags] where flags are:
   -v <verb> : verbosity level
   -O <enum OSTYPE #>  : set OS type
   -s <enum ASMDIA #>  : set assembly dialect
   -A <enum MACHTYPE #> : set machine/architecture
   -V #    # = ((1<<vecISA1) | (1<<vecISA2) | ... | (1<<vecISAN))
   -b <32/64> : set pointer bitwidth
   -o <outfile>
   -C [xc,ic,if,sk,dk,sm,dm,al,ac] <compiler>
   -F [xc,ic,if,sk,dk,sm,dm,al,ac,gc] '<comp flags>'
   -Fa [xc,ic,if,sk,dk,sm,dm,al,ac,gc] '<comp flags to append>'
        al: append flags to all compilers
        ac: append flags to all C compilers
        gc: append flags to gcc compiler used in user-contributed index files.
        acg: append to all C compilers & the index gcc
        alg: append to all compilers & the index gcc
   -T <targ> : ssh target for cross-compilation (probably broken)
   -D [c,f] -D<mac>=<rep> : cpp #define to add to [CDEFS,F2CDEFS]
      eg. -D c -DL2SIZE=8388604 -D f -DADD__ -D f -DStringSunStyle
   -d [s,b]  : set source/build directory
   -f <#> : size (in KB) to flush before timing
   -t <#> : set # of threads (-1: autodect; 0: no threading)
   -m <mhz> : set clock rate
   -S[i/s] <handle> <val>  : special int/string arg
      -Si bozol1 <0/1> : supress/enable bozo L1 defaults
      -Si archdef <1/0> : enable/supress arch default use
      -Si nof77 <0/1> : Have/don't have fortran compiler
      -Si nocygwin <0/1> : Do/don't depend on GPL cygwin library
                           (Windows compiler/cygwin install only)
      -Si cputhrchk <0/1> : Ignore/heed CPU throttle probe
      -Ss kern <path to comp> : use comp for all kernel compilers
      -Ss pmake <parallel make invocation (eg '$(MAKE) -j 4')>
      -Ss f77lib <path to f77 lib needed by C compiler>
      -Ss flapack <path to netlib lapack>: used to build full lapack lib
      -Ss [s,d]maflags 'flags'
NOTE: enum #s can be found by : make xprint_enums ; ./xprint_enums
xconfig exited with 19
 * 
 * ERROR: sci-libs/blas-atlas-3.7.37 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_unpack
 *   ebuild.sh, line 768:   Called qa_call 'src_unpack'
 *   ebuild.sh, line 44:   Called src_unpack
 *   blas-atlas-3.7.37.ebuild, line 97:   Called die
 * 
 * configure failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-libs/blas-atlas-3.7.37/temp/build.log'.
 * 
adam@localhost ~ $ emerge --info
Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8-b2 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8-b2 x86_64 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
Timestamp of tree: Mon, 17 Sep 2007 12:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
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.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer multilib parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="pl en_GB en de"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
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/java-overlay /usr/portage/local/layman/java-gcj-overlay /usr/portage/local/layman/toolchain /usr/portage/local/layman/pro-audio /usr/portage/local/layman/science /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 a52 aac aalib accessibility acl acpi alsa amd64 apache2 apm avi bash-completion berkdb bitmap-fonts bittorrent boo bzip2 c++ cairo cddb cdparanoia cdr cli cpudetection cracklib crypt cups curl d dbus dierectfb directfb divx dlloader dri dts dv dvd dvdnav dvdr dvdread emerald encode erandom exif fam fat fbcon ffmpeg firefox flac fortran gadu gdbm gdm gif glade glitz gmail gmedia gnome gnutls gpm gstreamer gtk hal iconv imagemagick ipv6 ipw3945 isdnlog jabber java java5 jce jpeg kerberos kerbos krb4 ladspa lame ldap libcaca libnotify logrotate mad maildir mbox mhash midi mmap mmx mng mono mp3 mpeg mudflap musepack mysql ncurses nls nptl nptlonly nsplugin ntfs odbc odk ogg opengl openmp pam pcntl pcre perl pmu png posix postgres pppd python quicktime readline reflection reiserfs sbcl sdl session slang sndfile sockets sound sox spell spl sqlite sqlite3 sse sse2 ssl subversion svg sysvipc tagwriting tcpd tetex threads threadsafe tiff truetype truetype-fonts type1-fonts unicode usb vcd vim vim-syntax vim-sytanx vim-with-x vorbis wavpack wireshark xine xml xorg xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en_GB en de" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2007-09-17 19:13:00 UTC
Hi

Thanks for testing the overlay. It probably crashes because no fortran flags were set (simply set FFLAGS="${CFLAGS}" in your make.conf. Anyway I fixed the ebuilds with a default FFLAGS=-O2. Let me know if it does the trick for you.

Sébastien
Comment 5 Adam Wieckowski 2007-09-17 19:22:57 UTC
The trick with FFLAGS did it for me. No problem with testing, thanks for maintaining. I believe that this case is herewith solved.