Skip to content
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

matlab mex error #105

Open
fireAj opened this issue Jun 26, 2023 · 0 comments
Open

matlab mex error #105

fireAj opened this issue Jun 26, 2023 · 0 comments

Comments

@fireAj
Copy link

fireAj commented Jun 26, 2023

root@ubuntu:~/superlu-6.0.0/MATLAB# make
/root/linux_matlab/matlab2018a/bin/mex -I../SRC -I/root/linux_matlab/matlab2018a/extern/include -O -DV5 mexlusolve.c
/root/superlu-6.0.0/lib/libsuperlu_5.1.a /root/superlu-6.0.0/lib/libblas.a -lm
Building with 'gcc'.
Warning: You are using gcc version '9.4.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release.
/usr/bin/ld: /tmp/mex_2524317599749166_1754387/mexlusolve.o: in function mexFunction': mexlusolve.c:(.text+0x277): undefined reference to dCreate_CompCol_Matrix'
/usr/bin/ld: mexlusolve.c:(.text+0x2a4): undefined reference to dCopy_Dense_Matrix' /usr/bin/ld: mexlusolve.c:(.text+0x2c6): undefined reference to dCreate_Dense_Matrix'
/usr/bin/ld: mexlusolve.c:(.text+0x344): undefined reference to dgssv' /usr/bin/ld: /root/superlu-6.0.0/lib/libsuperlu_5.1.a(util.o): relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

make: *** [Makefile:12: mexlusolve] Error 255

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

1 participant