Skip to contentSkip to conversation

cross compile issue libpopt.so

dm-crypt anirudh 1 participant 1 message May 31, 2011

lore
Share & tools
lore

anirudh

author
#0 lore raw

Hi,

i am trying to cross compile cryptsetup-1.2.0 for a 64 bit system on a
debian vm.

The build fails saying "/usr/lib/libpopt.so: could not read symbols: File in wrong format". Looks like it is trying to read libpopt.so file that is present in /usr/lib space instead of trying to read it from /stagin_dir/...

The file under /usr/lib is a 32 bit file and that's the reason its giving an error. If i remove the file under /usr/lib/libpopt, it compiles fine. It is picking up the right file under "/staging_dir/.." in this case.

I tried to set the LD_LIBRARY_PATH environment variable to /stagin_dir/ but it is not working either.

Is there a way to build a 64 bit version of cryptestup-1.2.0 while a 32 bit version of the libpopt.so file is present under /usr/lib?

Thanks in advance for your help.