Compiling sparc/leon3 with clang

Gedare Bloom gedare at rtems.org
Tue Jul 30 23:23:32 UTC 2019


Hello folks,

I'm trying to compile leon3 with clang, because I'm under the
impression it should be possible. I got as far as
mv -f base_sp/.deps/base_sp-apptask.Tpo base_sp/.deps/base_sp-apptask.Po
clang -target sparc-rtems5 -ccc-gcc-name sparc-rtems5-gcc
-mcpu=leon3 -O2 -g -ffunction-sections -fdata-sections -Wall
-Wmissing-prototypes -Wimplicit-function-declaration
-Wstrict-prototypes -Wnested-externs -B./../../lib/libbsp/sparc/leon3
-B/mnt/devel/rtems/rtems/bsps/sparc/leon3/start -qrtems
-L./../../cpukit -L/mnt/devel/rtems/rtems/bsps/sparc/shared/start
-Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar -Wl,--gc-sections
-o base_sp.exe base_sp/base_sp-init.o base_sp/base_sp-apptask.o
./../../lib/libbsp/sparc/leon3/librtemsbsp.a
./../../cpukit/librtemscpu.a ./../../cpukit/librtemstest.a
clang-10: error: unknown argument: '-qrtems'
Makefile:665: recipe for target 'base_sp.exe' failed
make[5]: *** [base_sp.exe] Error 1
make[5]: Leaving directory
'/mnt/devel/rtems/builds/b-erc32-clang/sparc-rtems5/c/leon3/testsuites/samples'

Any advice how to get past this qrtems error?

Gedare


More information about the devel mailing list