We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Building cross compiler error



  • Hi,

    I am trying to build cross compiler on Opensuse distribution but I run into error:
    File "/home/morfeus/fresh_start_build/source/tmp/tmpyih9_2t1/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in <module>
    File "/home/morfeus/fresh_start_build/source/build_dir/hostpkg/Python-3.6.9/Lib/ctypes/init.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
    ModuleNotFoundError: No module named '_ctypes'
    make[4]: *** [install] Error 1

    any idea how to solve this?
    I did all as described in README.md and README file. Have also run sh scripts/onion-minimal-build.sh and checked in make menuconfig and there is no Python enabled. Thanks.



  • All fine. I was able to solve this problem this way:

    1. cd /scripts
    2. ./feeds install libffi
    3. ./feeds install libffi-devel
    4. ./feeds install python3-dev
    5. cd .. and run make -j
    6. (build failed again)
    7. cd staging_dir/hostpkg/lib/
    8. copy libffi* to /usr/lib
    9. enter to source folder and run make -j

    All together, looks like the build system doesn't look in the right place for libs but instead in host /libs folder.
    Just writing if someone runs into same problem to know how to solve.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.