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

SuperLU link error with Armadillo #21

Open
padmasridharan opened this issue Jan 24, 2017 · 5 comments
Open

SuperLU link error with Armadillo #21

padmasridharan opened this issue Jan 24, 2017 · 5 comments

Comments

@padmasridharan
Copy link

I build superlu for windows as following some suggestions on commenting fortran compiler. Trying to use them in my application which uses armadillo as upper layer to call superlu gives me link error . I have linked superlu with armadillo and no issues there.
Any ideas or reasoning?

@xiaoyeli
Copy link
Owner

xiaoyeli commented Jan 25, 2017 via email

@yywangvr
Copy link

[ 33%] Linking CXX shared library libarmadillo.so
/usr/bin/ld: /usr/local/lib/libsuperlu.a(util.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libsuperlu.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/armadillo.dir/build.make:97: recipe for target 'libarmadillo.so.7.950.1' failed
make[2]: *** [libarmadillo.so.7.950.1] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/armadillo.dir/all' failed
make[1]: *** [CMakeFiles/armadillo.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

@yywangvr
Copy link

I have this issue when I compile it for armadillo. Do you know how to fix it?

@yywangvr
Copy link

It seems I have to compile it as run time library, but according to the information I obtained online, no one works. Btw, the version of SUPERLU for me is 5.2. Thank you!

@xiaoyeli
Copy link
Owner

xiaoyeli commented Jun 26, 2017 via email

eschnett pushed a commit to eschnett/superlu that referenced this issue Oct 13, 2022
allow disabling openmp, rearrange one loop to compile under VS2017
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

3 participants