Open 2017DEVIL opened 1 year ago
I suppose this error arises in older python versions such as 2.7. Could you check with a later version such as 3.6? And try the following
CXX = 'g++'
import subprocess
version = subprocess.getoutput('%s -dumpversion' %CXX)
I suppose this error arises in older python versions such as 2.7. Could you check with a later version such as 3.6? And try the following
CXX = 'g++' import subprocess version = subprocess.getoutput('%s -dumpversion' %CXX)
cd taucs && ./configure module=!METIS && /usr/bin/make ./configure: 27: ./configure: [[: not found make[1]: Entering directory '/home/devil/deep-learing/phi_sft/arcsim/dependencies/taucs' cc -o configurator/configurator configurator/taucs_config.c configurator/taucs_config.c: In function ‘emit_configfile’: configurator/taucs_config.c:244:5: warning: implicit declaration of function ‘mkdir’ [-Wimplicit-function-declaration] mkdir(configdir); ^~~~~ make[1]: Leaving directory '/home/devil/deep-learing/phi_sft/arcsim/dependencies/taucs'
make[1]: Entering directory '/home/devil/deep-learing/phisft/arcsim/dependencies/taucs' mkdir obj mkdir obj/linux/ echo exists > obj/linux/exists.log cc -c -O3 -Wall -fPIC -std=c99 -DMACHTYPE -I src/ -I build/linux/ -I external/src/ \ progs/taucs_blas_underscore_test.c \ -oobj/linux/taucs_blas_underscore_test.o cc \ -oobj/linux/taucs_blas_underscore_test \ obj/linux/taucs_blas_underscore_test.o -llapack -lblas -lgfortran -lm build/linux/makefile:22: recipe for target 'build/linux/taucs_config_tests.h' failed obj/linux/taucs_blas_underscore_test build/linux/taucs_config_tests.h build/linux/makefile:22: recipe for target 'build/linux/taucs_configtests.h' failed cc -c -O3 -Wall -fPIC -std=c99 -DMACHTYPE -I src/ -I build/linux/ -I external/src/ \ progs/taucs_blas_nounderscore_test.c \ -oobj/linux/taucs_blas_nounderscore_test.o /usr/bin/x86_64-linux-gnu-ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make[1]: [build/linux/taucs_config_tests.h] Error 1 (ignored) make[1]: obj/linux/taucs_blas_underscore_test: Command not found make[1]: [build/linux/taucs_config_tests.h] Error 127 (ignored) cc \ -oobj/linux/taucs_blas_nounderscore_test \ obj/linux/taucs_blas_nounderscore_test.o -llapack -lblas -lgfortran -lm /usr/bin/x86_64-linux-gnu-ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make[1]: [build/linux/taucs_config_tests.h] Error 1 (ignored) make[1]: obj/linux/taucs_blas_nounderscore_test: Command not found make[1]: [build/linux/taucs_config_tests.h] Error 127 (ignored) build/linux/makefile:22: recipe for target 'build/linux/taucs_config_tests.h' failed obj/linux/taucs_blas_nounderscore_test build/linux/taucs_config_tests.h build/linux/makefile:22: recipe for target 'build/linux/taucs_configtests.h' failed cc -c -O3 -Wall -fPIC -std=c99 -DMACHTYPE -I src/ -I build/linux/ -I external/src/ \ progs/taucs_c99_complex_test.c \ -oobj/linux/taucs_c99_complex_test.o cc \ -oobj/linux/taucs_c99_complex_test \ obj/linux/taucs_c99_complex_test.o -llapack -lblas -lgfortran -lm /usr/bin/x86_64-linux-gnu-ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make[1]: [build/linux/taucs_config_tests.h] Error 1 (ignored) make[1]: obj/linux/taucs_c99_complex_test: Command not found make[1]: [build/linux/taucs_config_tests.h] Error 127 (ignored) build/linux/makefile:22: recipe for target 'build/linux/taucs_config_tests.h' failed obj/linux/taucs_c99_complex_test build/linux/taucs_config_tests.h build/linux/makefile:22: recipe for target 'build/linux/taucs_configtests.h' failed cc -c -O3 -Wall -fPIC -std=c99 -DMACHTYPE -I src/ -I build/linux/ -I external/src/ \ progs/taucs_cilk_test.c \ -oobj/linux/taucs_cilk_test.o build/linux/makefile:22: recipe for target 'build/linux/taucs_config_tests.h' failed cc \ -oobj/linux/taucs_cilk_test \ obj/linux/taucs_cilk_test.o -llapack -lblas -lgfortran -lm build/linux/makefile:22: recipe for target 'build/linux/taucs_config_tests.h' failed obj/linux/taucs_cilk_test build/linux/taucs_config_tests.h build/linux/makefile:22: recipe for target 'build/linux/taucs_configtests.h' failed mkdir bin mkdir bin/linux/ echo exists > bin/linux/exists.log mkdir lib mkdir lib/linux/ echo exists > lib/linux/exists.log cc -c -O3 -Wall -fPIC -std=c99 -DMACHTYPE -I src/ -I build/linux/ -I external/src/ \ -DTAUCS_CORE_GENERAL \ src/taucs_sn_llt.c \ -oobj/linux/taucs_sn_llt.o build/linux/makefile:51: recipe for target 'obj/linux/taucs_sn_llt.o' failed make[1]: Leaving directory '/home/devil/deep-learing/phi_sft/arcsim/dependencies/taucs' /home/devil/deep-learing/phi_sft/arcsim/dependencies/Makefile:18: recipe for target 'lib/libtaucs.a' failed progs/taucs_cilk_test.c:8:19: fatal error: cilk.h: No such file or directory
^
compilation terminated. make[1]: [build/linux/taucs_config_tests.h] Error 1 (ignored) cc: error: obj/linux/taucs_cilk_test.o: No such file or directory make[1]: [build/linux/taucs_config_tests.h] Error 1 (ignored) make[1]: obj/linux/taucs_cilk_test: Command not found make[1]: [build/linux/taucs_config_tests.h] Error 127 (ignored) In file included from src/taucs_sn_llt.c:13:0: src/taucs.h:6:32: fatal error: taucs_config_tests.h: No such file or directory
^
compilation terminated. make[1]: [obj/linux/taucs_sn_llt.o] Error 1 make: [lib/libtaucs.a] Error 2
My analysis is as follows. Here, taucs failed to build as the path to gfortran library was not found. You could set LIBRARY_PATH or LD_LIBRARY_PATH to point to its location. On the other hand, you could try updating the path in arcsim/dependencies/taucs/config.
Could you also let me know how did you solve the last issue, 'module' object has no attribute 'getoutput'?
Thanks, Navami
cd jsoncpp && /usr/bin/scons platform=linux-gcc scons: Reading SConscript files ... AttributeError: 'module' object has no attribute 'getoutput': File "/data0/hj/phi_sft/arcsim/dependencies/jsoncpp/SConstruct", line 29: version = subprocess.getoutput('%s -dumpversion' %CXX) Makefile:12: recipe for target 'lib/libjson.a' failed make: *** [lib/libjson.a] Error 2