FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12657 questions

15038 answers

24075 comments

46989 members

0 votes
32 views 2 comments
by

Hi,

Did someone try to build python gevent using RUT9_R_00.07.03?

Created a makefile for this:

https://pastebin.com/pHXjAP6E

But when compiling it gives the following error:

running build_ext

Running '(cd  "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/deps/libev"  && sh ./configure -C > configure-output.txt )' in /home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2

configure: error: in `/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/deps/libev':

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details

Traceback (most recent call last):

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/setup.py", line 496, in <module>

    run_setup(EXT_MODULES)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/setup.py", line 362, in run_setup

    setup(

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/hostpkg/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup

    return distutils.core.setup(**attrs)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/core.py", line 148, in setup

    dist.run_commands()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands

    self.run_command(cmd)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/dist.py", line 985, in run_command

    cmd_obj.run()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/hostpkg/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run

    return orig.install.run(self)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/command/install.py", line 546, in run

    self.run_command('build')

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/dist.py", line 985, in run_command

    cmd_obj.run()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/command/build.py", line 135, in run

    self.run_command(cmd_name)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/cmd.py", line 313, in run_command

    self.distribution.run_command(command)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/dist.py", line 985, in run_command

    cmd_obj.run()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/hostpkg/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run

    _build_ext.run(self)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/command/build_ext.py", line 343, in run

    self.build_extensions()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/command/build_ext.py", line 452, in build_extensions

    self._build_extensions_serial()

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/distutils/command/build_ext.py", line 477, in _build_extensions_serial

    self.build_extension(ext)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/_setuputils.py", line 368, in build_extension

    self.gevent_prepare(ext)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/_setuputils.py", line 365, in gevent_prepare

    configure(self, ext)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/_setuplibev.py", line 55, in configure_libev

    system(libev_configure_command)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/_setuputils.py", line 195, in system

    if _system(cmd, cwd=cwd, env=env, **kwargs):

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/_setuputils.py", line 191, in _system

    return check_call(cmd, cwd=cwd, env=env, **kwargs)

  File "/home/boris/rutos/rutos-ath79-rut9-gpl/staging_dir/target-mips_24kc_musl/usr/lib/python3.9/subprocess.py", line 373, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '(cd  "/home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2/deps/libev"  && sh ./configure -C > configure-output.txt )' returned non-zero exit status 1.

make[2]: *** [Makefile:66: /home/boris/rutos/rutos-ath79-rut9-gpl/build_dir/hostpkg/gevent-22.10.2//.built] Error 1

make[2]: Leaving directory '/home/boris/rutos/rutos-ath79-rut9-gpl/package/lang/python/python-gevent'

time: package/lang/python/python-gevent/compile#1.33#0.35#1.56

    ERROR: package/lang/python/python-gevent failed to build.

make[1]: *** [package/Makefile:114: package/lang/python/python-gevent/compile] Error 1

make[1]: Leaving directory '/home/boris/rutos/rutos-ath79-rut9-gpl'

make: *** [/home/boris/rutos/rutos-ath79-rut9-gpl/include/toplevel.mk:234: package/lang/python/python-gevent/compile] Error 2

2 Answers

0 votes
ago by
We solved it by removing code in pyeventbus package that requires gevent to be used...

We run our code from SD-CARD, so all python packages fit
Best answer
0 votes
ago by
Hello,

  

could you please expand on what OS you're using and what steps you're taking to compile the package?

Have you followed the instructions in the README file?

Could you try compiling using v07.03.3 SDK? There have been some improvements regarding SDK since the original release.

  

Best regards,
DaumantasG
ago by

I am trying to build this on RUT9_R_00.07.03

Ubuntu 20.04.5 LTS

I want to use pyeventbus package which requires gevent, i created Makefile and added this package with menuconfig.

after this i run:

make package/lang/python/python-gevent/compile V=sc

I took python-greenlet package as example

BR,

Boris

ago by
Hello,

before I contact the RnD department regarding this issue, could you make sure that all of the packages will fit in the RUT955? As it only has around 4MB of user-space storage with the default configuration, and even the light-weight python packages take up around 5MB.

Best regards,
DaumantasG