-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error. OpenBLAS could not be compiled #1020
Comments
Looks like your Ubuntu is missing a gfortran-dev package, or perhaps your gcc and gfortran are different |
@martin-frbg thanks for your suggestions. I followed #954 and installed |
Can you close the issue? |
I suggest to add compilers version consistency check inside the Makefile. |
What is the best version match for Xcode + gfortran? |
I install torch 7 on ubuntu 16.04 following the official site instructions, but it fails when compiling the OpenBLAS. Can anyone help to fix this problem?
make[1]: Leaving directory '/tmp/OpenBLAS/ctest'
make[1]: Entering directory '/tmp/OpenBLAS/exports'
perl ./gensymbol linktest x86_64 _ 0 0 0 0 0 0 "" "" 1 > linktest.c
gcc -O2 -DMAX_STACK_ALLOC=2048 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=16 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME="_" -DCHAR_CNAME="" -DNO_AFFINITY -I.. -shared -o ../libopenblas_haswellp-r0.2.20.dev.so
-Wl,--whole-archive ../libopenblas_haswellp-r0.2.20.dev.a -Wl,--no-whole-archive
-Wl,-soname,libopenblas.so.0 -lm -lpthread -lgfortran -lm -lpthread -lgfortran
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
Makefile:133: recipe for target '../libopenblas_haswellp-r0.2.20.dev.so' failed
make[1]: *** [../libopenblas_haswellp-r0.2.20.dev.so] Error 1
make[1]: Leaving directory '/tmp/OpenBLAS/exports'
Makefile:85: recipe for target 'shared' failed
make: *** [shared] Error 2
Error. OpenBLAS could not be compiled
The text was updated successfully, but these errors were encountered: