Skip to content

Build Error: "/usr/lib/libpython2.7.so: file not recognized: File format not recognized" #16

@jbaiter

Description

@jbaiter

I just checked out the latest version and ran the distribute.sh script on my Debian unstable, 64bit machine.
It runs fine for a while, up to the point where Biglink tries to create the libpymodules.so library. Then I get this:

± ./distribute.sh -m "libxml2 lxml sqlite3 openssl"
Entering in ARM enviromnent
Compiler found at /home/jojo/.android/ndk//toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
Biglink create /home/jojo/coding/python-for-android/build/libs/libpymodules.so library
Biglink arguments:
 /home/jojo/coding/python-for-android/build/objects/etree.so.o
 /home/jojo/coding/python-for-android/build/objects/objectify.so.o
 -L/home/jojo/coding/python-for-android/build/openssl/openssl-1.0.0e/
 -L/home/jojo/coding/python-for-android/build/libxslt/libxslt-1.1.26/libxslt/.libs
 -L/home/jojo/coding/python-for-android/build/libxslt/libxslt-1.1.26/libexslt/.libs
 -L/home/jojo/coding/python-for-android/build/libxml2/libxml2-2.7.8/.libs
 -L/usr/lib
 -L/home/jojo/coding/python-for-android/build/python-install/lib
 -lxslt
 -lexslt
 -lxml2
 -lz
 -lm
 -lpython2.7
 /usr/lib/libpython2.7.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

file has this to say about libpython2.7.so.1.0 (which libpython2.7.so is a symlink to):

± file /usr/lib/libpython2.7.so.1.0 
/usr/lib/libpython2.7.so.1.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x0f350cebf75fe8907780aef8e9136b011a67a9af, stripped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions