Open dreirund opened 2 years ago
Should be fixed by #19245.
Is it musl code (stdio.h) that is triggering these compiler errors? That sounds like a mismatch between GCC and musl, not a problem with libsoup. I would like to avoid disabling compiler protections.
@flyn-org wrote:
Is it musl code (stdio.h) that is triggering these compiler errors? That sounds like a mismatch between GCC and musl, not a problem with libsoup.
I have no idea, I don't know almost anything about linking and compilers and such stuff.
I have seen those errors also on a few other packages.
Maintainer:
@flyn-org
Environment:
grep ^CONFIG_TARGET .config
:openwrt-22.03
fromgit://git.openwrt.org/openwrt/openwrt.git
,git pull
and./scripts/feeds update -a && ./scripts/feeds update -a
on 2022-07-20, ca. 08:15 UTC(I give up on posting latest commit date and hash, since
git log
gives me some old dates, and I don't know how I can makegit log
printing out the last operation. I don't know much aboutgit
.).config
,grep -i soup .config
:grep -i fortify config.txt
:Description:
make -j6
fails in above configuration onpackage/feeds/packages/libsoup
.An explicit run of
make -j1 V=sc package/feeds/packages/libsoup/compile
fails in
./configure
withFAILED: libsoup/libsoup-2.4.so.1.11.2.p/soup-auth-ntlm.c.o
and
staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-11.2.0_musl_eabi/include/fortify/stdio.h:101:9: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
This error could be mitigated by adding
PKG_FORTIFY_SOURCE:=0
to
package/feeds/packages/libsoup/Makefile
.→ Patch:
Feel free to use that patch or your own way to incorporate that fix.
Or, which I suspect would be the more clean way, not regard the warning as error? (
-Wno-error=format-nonliteral
somewhere?)More context of the output of the above failing
make
run:Full
make
output: →libsoup.compile.log
.