Skip to content

error in make #2777

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

Closed
mxzhai-maker opened this issue Aug 13, 2020 · 12 comments
Closed

error in make #2777

mxzhai-maker opened this issue Aug 13, 2020 · 12 comments

Comments

@mxzhai-maker
Copy link

Error in make for compiling the Openblas library such as follows:

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x2B66E2D51697
#1 0x2B66E2D51CDE
#2 0x2B66E35AE27F
#3 0x2B66E2E104C0
#4 0x2B66E2E1DE27
#5 0x403281 in MAIN__ at sblat1.f:?
make: *** [level1] Segmentation fault (core dumped)

CPU :Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz

@martin-frbg
Copy link
Collaborator

Which version of OpenBLAS is that, and which compiler are you using ? (If gcc+gfortran, please make sure they are both the same version)

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@martin-frbg
Copy link
Collaborator

Very strange. E5-2678v3 should be standard "Haswell" architecture, I do not see why OpenBLAS should fail in this simple single-precision BLAS test unless there is a problem with your hardware.

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@martin-frbg
Copy link
Collaborator

Possibly you still have a link from /usr/bin/cc to the old gcc ? And you should be able to set the library path with `export LD_LIBRARY_PATH= to where your gcc lib (or lib64) directory is.

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@martin-frbg
Copy link
Collaborator

Hmm. And you did the build with something like make CC=/public1/soft/gcc/9.1.0/bin/gcc FC=/public1/soft/gcc/9.1.0/bin/gfortran ?

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

@martin-frbg
Copy link
Collaborator

Well, you did not write what you did before, so I can only guess. If CC is not set, the c_check script will default to using the "cc" command for figuring out what compiler and libraries to use. If /usr/bin/cc is still linked to the old gcc-4.8.5 that came with the original system installation, this will put the wrong entries in the generated Makefile.conf

@mxzhai-maker
Copy link
Author

mxzhai-maker commented Aug 13, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants