openwrt / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
Other
20.5k stars 10.56k forks source link

Does not compile due to mbedtls #15908

Closed romanrm closed 2 months ago

romanrm commented 4 months ago

Describe the bug

FAILED: CMakeFiles/mbedtls_test.dir/tests/src/asn1_helpers.c.o 
/mnt/ssdp/k/build/openwrt66/staging_dir/toolchain-mipsel_24kc_gcc-13.3.0_musl/bin/mipsel-openwrt-linux-musl-gcc  -I/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/tests/include -I/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/include -I/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/library -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -fmacro-prefix-map=/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0=mbedtls-3.6.0 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -O2 -std=c11 -fPIC -MD -MT CMakeFiles/mbedtls_test.dir/tests/src/asn1_helpers.c.o -MF CMakeFiles/mbedtls_test.dir/tests/src/asn1_helpers.c.o.d -o CMakeFiles/mbedtls_test.dir/tests/src/asn1_helpers.c.o -c /mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/tests/src/asn1_helpers.c
In file included from /mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/include/mbedtls/build_info.h:174,
                 from /mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/tests/include/test/helpers.h:21,
                 from /mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/tests/src/asn1_helpers.c:11:
/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/include/mbedtls/check_config.h:854:2: error: #error "MBEDTLS_SSL_PROTO_DTLS defined, but not all prerequisites"
  854 | #error "MBEDTLS_SSL_PROTO_DTLS defined, but not all prerequisites"
      |  ^~~~~
/mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/include/mbedtls/check_config.h:890:2: error: #error "MBEDTLS_SSL_TLS_C defined, but no protocols are active"
  890 | #error "MBEDTLS_SSL_TLS_C defined, but no protocols are active"
      |  ^~~~~
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:182: /mnt/ssdp/k/build/openwrt66/build_dir/target-mipsel_24kc_musl/mbedtls-3.6.0/.built] Error 1
make[3]: Leaving directory '/mnt/ssdp/k/build/openwrt66/package/libs/mbedtls'
time: package/libs/mbedtls/compile#1.54#0.63#2.11
    ERROR: package/libs/mbedtls failed to build.
make[2]: *** [package/Makefile:173: package/libs/mbedtls/compile] Error 1
make[2]: Leaving directory '/mnt/ssdp/k/build/openwrt66'
make[1]: *** [package/Makefile:167: /mnt/ssdp/k/build/openwrt66/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/mnt/ssdp/k/build/openwrt66'
make: *** [/mnt/ssdp/k/build/openwrt66/include/toplevel.mk:248: world] Error 2

OpenWrt version

commit 2bae9d04af2f4722fc0156632169fe2ab75fccf0

OpenWrt release

SNAPSHOT

OpenWrt target/subtarget

ramips

Device

-

Image kind

Self-built image

Steps to reproduce

make -j1 V=s defconfig download clean world

Actual behaviour

No response

Expected behaviour

No response

Additional info

No response

Diffconfig

CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_ramips_mt7621_DEVICE_mediatek_mt7621-rfb-ax-nand=y
# CONFIG_KERNEL_WERROR is not set
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y
CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y
CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-udptunnel4=y
CONFIG_PACKAGE_kmod-udptunnel6=y
CONFIG_PACKAGE_kmod-vxlan=y
CONFIG_PACKAGE_kmod-wireguard=y
# CONFIG_PACKAGE_knot-resolver_dnstap is not set
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_liblucihttp-ucode=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-lib-base=y
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-lib-uqr=y
CONFIG_PACKAGE_luci-light=y
CONFIG_PACKAGE_luci-lua-runtime=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-proto-vxlan=y
CONFIG_PACKAGE_luci-proto-wireguard=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_luci-theme-material=y
CONFIG_PACKAGE_luci-theme-openwrt=y
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=y
CONFIG_PACKAGE_ucode-mod-html=y
CONFIG_PACKAGE_ucode-mod-lua=y
CONFIG_PACKAGE_ucode-mod-math=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_vxlan=y
CONFIG_PACKAGE_wireguard-tools=y
# CONFIG_PACKAGE_kmod-crypto-kpp is not set

Terms

github-actions[bot] commented 4 months ago

Invalid Version reported. `` Is this from a clean repository?

github-actions[bot] commented 4 months ago

Invalid Release reported. `` Is this from a clean repository?

github-actions[bot] commented 4 months ago

Invalid Target/Subtarget reported. `` Is this from a supported device?

romanrm commented 4 months ago

Yes.

romanrm commented 2 months ago

Retried on a clean OS with an up-to-date current snapshot, the problem no longer occurs.