Hi everyone I am trying to compile regex and numpy packages for an openwrt v22 (mpisel_24kc) since those do not exists for the above architecture.
I have no clue which documentation i should follow (i believe that openwrt is not so beginner-friendly btw) so i have tried to install gcc, python3-dev, python3-setuptools on the device and proceed to installing the packages from source.
I have decided to start with regex which seems to be a smaller package than numpy, so running "python setup.py install -vvvvvv" within the regex source dir starts the compilation process.
i can see that the .c files are correctly compile by gcc. but then at a certain point within the procedure, the gcc command is called with a "-shared" flag which leads to this error:
gcc -shared -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib -znow -zrelro -L/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc_musl/Python-3.10.12 -L/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib -znow -zrelro -L/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc_musl/Python-3.10.12 -L/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/lib build/temp.linux-mips-cpython-310/regex_3/_regex.o build/temp.linux-mips-cpython-310/regex_3/_regex_unicode.o -L/usr/lib -o build/lib.linux-mips-cpython-310/regex/_regex.cpython-310.so
gcc: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found
compilation terminated.
error: command '/tmp/opkg-installed/usr/bin/gcc' failed with exit code 1
am i on the right path? or am i doing something impossible to achieve ?