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

Tony Kelman kelman at berkeley.edu
Sun Jul 12 15:44:09 EDT 2015


Which version of the Pardiso library did you download? A .so is a Linux 
shared library, you need a .dll for Windows, if Pardiso even provides one.


-----Original Message----- 
From: magneticconfine at sjtu.edu.cn
Sent: Saturday, July 11, 2015 6:46 PM
To: ipopt at list.coin-or.org
Subject: [Ipopt] Pardiso Library does not seem to work due to "File in 
wrongformat"

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

_______________________________________________
Ipopt mailing list
Ipopt at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/ipopt 



More information about the Ipopt mailing list