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
Python-3.9.0 Compilation fails #14044
Comments
|
We're patching the GCC specs [1], [2] to implicitly add $STAGING_DIR/usr/lib to the linker and $STAGING_DIR/usr/include to the CPP flags. There is no need to globally pass these as -I and -L flags respectively. 1. https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=toolchain/gcc/final/Makefile#l86 2. https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=scripts/patch-specs.sh#l37 Ref: https://patchwork.ozlabs.org/project/openwrt/patch/20200820060637.533293-1-a.heider@gmail.com/#2511505 Suggested-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Without this, cmake will use whatever CC/CXX is set to, which could be clang. In that case, at least libjson-c/host will fail to compile. Signed-off-by: Rosen Penev <rosenp@gmail.com>
me too |
Put
|
Add this line of code you provided to compile normally |
Can confirm this... |
@ynezz can we fix this? Also is it normal that python3 is compiled even if not selected in menuconfig (no deps based on it, in theory) |
@zxlhhyccc great !it's works |
Same. This fix the problem. |
The problem hasn't been fixed. openwrt/openwrt@524fb56
|
@peterwillcn those fixes are for cmake. python does not use cmake. |
@Ansuel don't forget there is also python3/host |
BTW error messages in this issue are long, but useless, because the compiler output is not visible. By guessing from the proposed workaround (it's not proper fix):
it looks like some issue with the package as those linker flags are provided implicitly by the build system already, otherwise obviously every other package would fail. So something in this broken package is not honoring this linker flags and needs to be fixed. |
It's not just this one. google-authenticator-libpam fails because of that commit as well. I expect to find more failing packages once my VM compiles everything. |
@ynezz It is recommended to adjust the OpenWRT compilation architecture log error output to make it easier to track down accurate errors. I compile using the following command
|
Error according to the buildbots:
https://downloads.openwrt.org/snapshots/faillogs/arm_xscale/packages/python3/compile.txt |
That's not that problem as you can see The issue is probably |
Looks like it's just 5 broken packages. I'll make PRs for them. |
Two packages fail because of libpam. I wonder why. libpam does not use a pkgconfig file. |
Fix was merged. |
Related to openwrt/packages#14044 (comment) Signed-off-by: Pavel Krotkiy <porsh@yandex-team.ru>
Related to openwrt/packages#14044 (comment) Signed-off-by: Pavel Krotkiy <porsh@yandex-team.ru>
openwrt master latest
packages master latest
The text was updated successfully, but these errors were encountered: