[Ipopt] Pardiso Library does not seem to work due to "File in wrong format"

magneticconfine at sjtu.edu.cn magneticconfine at sjtu.edu.cn
Sat Jul 11 21:46:52 EDT 2015


Hi! 

I was trying to configure ipopt with pardiso like this:
../configure --with-pardiso="$HOME/lib/libpardiso.so"
But got the error saying that "Pardiso library /home/MagTwo/lib/libpardiso.so does not seem to work"
I'm using Cygwin on a 64-bit machine.
Below is the information for failure extracted from the configuration file, but I searched for "File in wrong format" and got nothing insightful.

configure:35700: checking whether MKL is being used
configure:35708: gfortran -o conftest.exe -O3 -pipe    conftest.f /home/MagTwo/lib/libpardiso.so  -llapack -lblas >&5
/home/MagTwo/lib/libpardiso.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
configure:35714: $? = 1
configure: failed program was:
|       program main
|       call mkl_get_version_string()
|       end
configure:35736: result: no
configure:35753: checking whether user-supplied Pardiso library "/home/MagTwo/lib/libpardiso.so" works
configure:35761: gfortran -o conftest.exe -O3 -pipe    conftest.f /home/MagTwo/lib/libpardiso.so  -llapack -lblas >&5
/home/MagTwo/lib/libpardiso.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
configure:35767: $? = 1
configure: failed program was:
|       program main
|       call PARDISO()
|       end
configure:35788: error: Pardiso library /home/MagTwo/lib/libpardiso.so does not seem to work

Other than these, there are only two undefined reference found in the log file:

/tmp/ccCsmN04.o:conftest.c:(.text.startup+0xa): undefined reference to `foobar'
/tmp/ccCsmN04.o:conftest.c:(.text.startup+0xa): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `foobar'

/tmp/ccxC2CWE.o:conftest.c:(.text.startup+0xa): undefined reference to `dsyev_'
/tmp/ccxC2CWE.o:conftest.c:(.text.startup+0xa): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dsyev_'

Thank you in advance!
-- 
Best regards, 

Zhao Pu
Shanghai Jiao Tong University



More information about the Ipopt mailing list