Skip to content

Instantly share code, notes, and snippets.

@LeviMarvin
Created August 10, 2022 14:03
Show Gist options
  • Save LeviMarvin/eb9b4c6ef43c086af48173b48c0bdc39 to your computer and use it in GitHub Desktop.
Save LeviMarvin/eb9b4c6ef43c086af48173b48c0bdc39 to your computer and use it in GitHub Desktop.
make[3]: Entering directory '/Volumes/OpenWrt/openwrt/package/libs/mbedtls'
rm -f /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/.built
touch /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/.built_check
MAKEFLAGS="" /Volumes/OpenWrt/openwrt/staging_dir/host/bin/ninja -v -j1 -C /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0
ninja: Entering directory `/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0'
[1/159] /Volumes/OpenWrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc -I/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/../../include -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0=mbedtls-2.28.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -O2 -MD -MT programs/test/CMakeFiles/dlopen.dir/dlopen.c.o -MF programs/test/CMakeFiles/dlopen.dir/dlopen.c.o.d -o programs/test/CMakeFiles/dlopen.dir/dlopen.c.o -c /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c
FAILED: programs/test/CMakeFiles/dlopen.dir/dlopen.c.o
/Volumes/OpenWrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc -I/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/../../include -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0=mbedtls-2.28.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -Wall -Wextra -Wwrite-strings -Wformat=2 -Wno-format-nonliteral -Wvla -Wlogical-op -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Werror -O2 -MD -MT programs/test/CMakeFiles/dlopen.dir/dlopen.c.o -MF programs/test/CMakeFiles/dlopen.dir/dlopen.c.o.d -o programs/test/CMakeFiles/dlopen.dir/dlopen.c.o -c /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c
/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c:33: error: "MBEDTLS_EXIT_SUCCESS" redefined [-Werror]
33 | #define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS
|
In file included from /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c:26:
/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/../../include/mbedtls/platform.h:313: note: this is the location of the previous definition
313 | #define MBEDTLS_EXIT_SUCCESS MBEDTLS_PLATFORM_STD_EXIT_SUCCESS
|
/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c:34: error: "MBEDTLS_EXIT_FAILURE" redefined [-Werror]
34 | #define MBEDTLS_EXIT_FAILURE EXIT_FAILURE
|
In file included from /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/dlopen.c:26:
/Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/programs/test/../../include/mbedtls/platform.h:318: note: this is the location of the previous definition
318 | #define MBEDTLS_EXIT_FAILURE MBEDTLS_PLATFORM_STD_EXIT_FAILURE
|
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile:141: /Volumes/OpenWrt/openwrt/build_dir/target-mipsel_24kc_musl/mbedtls-2.28.0/.built] Error 1
make[3]: Leaving directory '/Volumes/OpenWrt/openwrt/package/libs/mbedtls'
time: package/libs/mbedtls/compile#0.33#0.24#0.64
ERROR: package/libs/mbedtls failed to build.
make[2]: *** [package/Makefile:116: package/libs/mbedtls/compile] Error 1
make[2]: Leaving directory '/Volumes/OpenWrt/openwrt'
make[1]: *** [package/Makefile:110: /Volumes/OpenWrt/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/Volumes/OpenWrt/openwrt'
make: *** [/Volumes/OpenWrt/openwrt/include/toplevel.mk:230: world] Error 2
@LeviMarvin
Copy link
Author

Version: 22.03 branch.
System: MacOS 13 beta 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment