Skip to content

Commit

Permalink
moxiebox: Use newlib 4.2
Browse files Browse the repository at this point in the history
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 <judge.packham@gmail.com>
  • Loading branch information
cpackham committed Sep 24, 2023
1 parent c175b21 commit 334f6d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/moxie-unknown-moxiebox/crosstool.config
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 334f6d6

Please sign in to comment.