I'm having an issue replicating in Easybuild what I can do interactively when 
building OpenBLAS.

Manually running 'make BINARY=64 DYNAMIC_ARCH=1 USE_THREAD=1 NUM_THREADS=64 
NO_AFFINITY=1 NO_AVX2=1 UTEST_CHECK=1' on the source gives me no issue.

Using as a base the Easyconfig for OpenBLAS-0.2.9-GCC-4.8.3-LAPACK-3.5.0 [1] 
where I only changed the following:

version = '0.2.10'
maxparallel = 1 # OpenBLAS will parallel build by default AFAIK
buildopts = 'BINARY=64 DYNAMIC_ARCH=1 USE_THREAD=1 NUM_THREADS=64 NO_AFFINITY=1 
NO_AVX2=1 UTEST_CHECK=1'

$ eb OpenBLAS-0.2.10-GCC-4.8.3-LAPACK-3.5.0.eb --robot=.

# From the log file when it fails

tar xjf CUnit-2.1-2-src.tar.bz2
(cd 
/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2;
 CC=gcc CFLAGS="-O2 -march=native -O2 -DUTEST_CHECK -DSANITY_CHECK -DREFNAME=f_ 
-Wall -m64 -DF_INTERFACE_GFORT -fPIC -DDYNAMIC_ARCH -DNO_AVX2 -DSMP_SERVER 
-DNO_WARMUP -DMAX_CPU_NUMBER=64 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= 
-DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I. 
-I/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2/include
 -O2 -DUTEST_CHECK -DSANITY_CHECK -DREFNAME=libcunitf_ -Wall -m64 
-DF_INTERFACE_GFORT -fPIC -DDYNAMIC_ARCH -DNO_AVX2 -DSMP_SERVER -DNO_WARMUP 
-DMAX_CPU_NUMBER=64 -DASMNAME=libcunit -DASMFNAME=libcunit_ -DNAME=libcunit_ 
-DCNAME=libcunit -DCHAR_NAME=\"libcunit_\" -DCHAR_CNAME=\"libcunit\" 
-DNO_AFFINITY -I.." ./configure 
--prefix=/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2/missing:
 Unknown `--run' option
Try 
`/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2/missing
 --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
---------- Disabling debug mode compilation.
++++++++++ Enabling automated(XML) mode compilation
++++++++++ Enabling basic mode compilation
++++++++++ Enabling console mode compilation
---------- Disabling curses mode compilation
---------- Disabling examples mode compilation
---------- Disabling test mode compilation
---------- Disabling memtrace functionality at compile time
---------- Disabling use of deprecated v1.1 names
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** 
[/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest/CUnit-2.1-2/lib/libcunit.a]
 Error 77
make[1]: Leaving directory 
`/dev/shm/OpenBLAS/0.2.10/GCC-4.8.3-LAPACK-3.5.0/OpenBLAS-0.2.10/utest'
make: *** [tests] Error 2

== 2014-08-27 14:09:57,601 main.easyblock.<module> WARNING build failed (first 
300 chars): EasyBuild crashed with an error (at easybuild/tools/run.py:382 in 
parse_cmd_output): cmd " make -j 1 BINARY=64 DYNAMIC_ARCH=1 USE_THREAD=1 
NUM_THREADS=64 NO_AFFINITY=1 NO_AVX2=1 UTEST_CHECK=1" exited with exitcode 2 
and output:

Thanks,
- Trey

[1] : 
https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/o/OpenBLAS/OpenBLAS-0.2.9-GCC-4.8.3-LAPACK-3.5.0.eb

=============================

Trey Dockendorf 
Systems Analyst I 
Texas A&M University 
Academy for Advanced Telecommunications and Learning Technologies 
Phone: (979)458-2396 
Email: [email protected] 
Jabber: [email protected]

Reply via email to