Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on OpenWRT/LEDE #1290

Closed
vahid-dan opened this issue Jun 7, 2018 · 4 comments
Closed

Installing on OpenWRT/LEDE #1290

vahid-dan opened this issue Jun 7, 2018 · 4 comments

Comments

@vahid-dan
Copy link

Hi;

I am trying to install psutil on LEDE 17.01.4 with no success. Using either pip3 install psutil or manually compiling it, I get the following error:

unable to execute 'arm-openwrt-linux-gnueabi-gcc': No such file or directory

I should mention I've already installed python3-dev package.

Is there a way to cross-compile it? Any suggestions?

Thanks in advance.

Bests,
Vahid

@giampaolo
Copy link
Owner

Did you try sudo apt-get install build-essential?

@vahid-dan
Copy link
Author

vahid-dan commented Jun 7, 2018

Hi @giampaolo;

For OpenWRT, there is no build-essential package. Other packages installed by pip3 work fine, though.

This is the whole error message:

root@LEDE:~/psutil# python3 setup.py install
running install
running bdist_egg
running egg_info
writing psutil.egg-info/PKG-INFO
writing dependency_links to psutil.egg-info/dependency_links.txt
writing top-level names to psutil.egg-info/top_level.txt
reading manifest file 'psutil.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'scripts/internal/purge.py'
writing manifest file 'psutil.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'psutil._psutil_linux' extension
arm-openwrt-linux-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -mcpu=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/vd/workspace/source/build_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.24_eabi/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -mcpu=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/vd/workspace/source/build_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.24_eabi/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -mcpu=cortex-a53 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /home/vd/workspace/source/build_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.24_eabi/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/vd/workspace/source/staging_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.24_eabi/usr/include -I/home/vd/workspace/source/staging_dir/target-arm_cortex-a53+neon-vfpv4_glibc-2.24_eabi/include -I/home/vd/workspace/source/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.4.0_glibc-2.24_eabi/usr/include -I/home/vd/workspace/source/staging_dir/toolchain-arm_cortex-a53+neon-vfpv4_gcc-5.4.0_glibc-2.24_eabi/include -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=546 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/include/python3.6 -c psutil/_psutil_common.c -o build/temp.linux-armv7l-3.6/psutil/_psutil_common.o
unable to execute 'arm-openwrt-linux-gnueabi-gcc': No such file or directory
error: command 'arm-openwrt-linux-gnueabi-gcc' failed with exit status 1

It seems it is trying to use a wrong compiler.

Thanks,
Vahid

@vahid-dan
Copy link
Author

I guess it is a compiler error. I'm trying to fix it now.

@giampaolo
Copy link
Owner

Closing this out as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants