From 334f6d6479096b20e80fd39e35f404319bc251b5 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sat, 23 Sep 2023 11:38:26 +1200 Subject: moxiebox: Use newlib 4.2 moxie-unknown-moxiebox has problems building with newlib 4.3 ld: /lib/libc.a(libc_a-closer.o): in function `_close_r': newlib/libc/reent/closer.c:47: undefined reference to `_close' There are some Makefile changes in newlib 4.3 and it's likely previously this config was picking up `_close` from libsim.a. For now just pin the newlib version back to 4.2 in the moxie-unknown-moxiebox config. Resolves #2036 Signed-off-by: Chris Packham --- samples/moxie-unknown-moxiebox/crosstool.config | 1 + 1 file changed, 1 insertion(+) (limited to 'samples') diff --git a/samples/moxie-unknown-moxiebox/crosstool.config b/samples/moxie-unknown-moxiebox/crosstool.config index fe08882d..755e4d83 100644 --- a/samples/moxie-unknown-moxiebox/crosstool.config +++ b/samples/moxie-unknown-moxiebox/crosstool.config @@ -2,6 +2,7 @@ CT_CONFIG_VERSION="4" CT_EXPERIMENTAL=y CT_ARCH_MOXIE=y CT_ARCH_LE=y +CT_NEWLIB_V_4_2=y CT_DEBUG_GDB=y CT_GDB_CROSS_SIM=y # CT_GDB_CROSS_PYTHON is not set -- cgit v1.2.3