Replies: 1 comment 3 replies
-
I ended up building the GCC 13.x toolchain from source with just support for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've using the prebuilt gcc 12.1.0 (from here - rv64imc-3.0.0 w/multilib).
In my makefile, I have this (before including the
common.mk
file):I have the neorv32 core built with the
m
andc
options (and bitmanip). All my C code compiles/links fine -- no issues.Now, I want to build with riscv bitmanip:
The C compiler runs fine but I get an error during linking. Gcc is trying to link with the 64-bit version of
libc.a
instead of the 32-bitimc
version.I'm I missing something (a gcc switch or environment variable setting) or is the prebuilt gcc 12.1.0 toolchain not built to support this?
Note: I can do a workaround by copying the 32-bit
imc
versions oflibc.a
,libm.a
andlibgcc.a
to my locallib
directory and force gcc to link against them. (So, I know its possible to build with the bitmanip features enabled.) But, this "solution" is not ideal -- i.e., having toolchain libs in my local area.Thanks,
Brian
Beta Was this translation helpful? Give feedback.
All reactions