Skip to content

upgrading cpp/c mixed project from 3.2 to 3.4 fail to build. #66527

Closed Answered by eyalsol
eyalsol asked this question in Q&A
Discussion options

You must be logged in to vote

Issue resolved.

the toolchain in use is syntacore: sc-dt-2023.11, riscv-gcc, riscv64-unknown-elf.

I had to explicitly set this in CMakeLists.txt:

set(TOOLCHAIN_HAS_NEWLIB ON CACHE BOOL "True if toolchain supports newlib")
the prj.conf is set to:

CONFIG_CPP=y
CONFIG_REQUIRES_FULL_LIBCPP=y
CONFIG_NEWLIB_LIBC=y
CONFIG_STD_CPP20=y

closing discussion as resolved

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TorstenRobitzki
Comment options

@Git-qisen
Comment options

@TorstenRobitzki
Comment options

Answer selected by yashi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants