lxml build failing on older Wolfi image with -lgcc_s_asneeded linker error #78707
|
Today I encountered an issue while building the lxml wheel from source on a Wolfi-based image. The build fails during the linking stage with the following error: Observation: This issue occurs on a Wolfi image that is ~3 days old. Question: Was there any recent change in the Wolfi toolchain (e.g., gcc/libgcc/binutils packaging) that could explain this behavior? Specifically, the linker is unable to resolve -lgcc_s_asneeded, which suggests a possible change in how libgcc or related runtime components are packaged or included. Alternatively, is this expected behavior due to the rolling nature of Wolfi repositories, where older images may become incompatible with newer package indexes? Any pointers or clarification would be helpful. |
Replies: 1 comment 3 replies
|
The asneeded changes are related to recent GCC 16 work. If your environment uses rolling "build-base" or "gcc" packages the older base image indeed can become stale and incompatible with a brand new toolchain. Most likely if you install "gcc-15-default" the build will likely work with both old and fresh container images as a starting point. In general, we always recommend to do all builds with fresh base images (for example The gss_s_asneeded changes are related to supporting GCC 16 and bootstrapping various toolchains. Also pinging @sergiodj who might have more technical details about this. |
The asneeded changes are related to recent GCC 16 work. If your environment uses rolling "build-base" or "gcc" packages the older base image indeed can become stale and incompatible with a brand new toolchain. Most likely if you install "gcc-15-default" the build will likely work with both old and fresh container images as a starting point. In general, we always recommend to do all builds with fresh base images (for example
docker run --pull=alwaysordocker build --no-cache.)The gss_s_asneeded changes are related to supporting GCC 16 and bootstrapping various toolchains.
Also pinging @sergiodj who might have more technical details about this.