On 02.08.23 13:53, Karel Gardas wrote:
A bit off-topic.

On 8/2/23 10:39, Sebastian Huber wrote:
Yes, but this would be another patch and it is a bit more work since you have to test the clang support.

Is building with clang already supported? I'm curious since this is something I'd like to test locally too but neither code nor tickets give me any hope on it. Hence asking directly.

There is some support to build with clang, but I guess this is not regularly tested/used. You can test it with:

[riscv/rv64imafdc]
COMPILER = clang

However, this quickly fails with:

[   1/1427] Compiling bsps/shared/dev/serial/mc68681_reg2.c
15:16:15 runner ['/usr/bin/clang', '-MMD', '-Wall', '-Wmissing-prototypes', '-Wimplicit-function-declaration', '-Wstrict-prototypes', '-Wnested-externs', '--target=riscv64-unknown-rtems6', '-march=rv64imafdc', '-mabi=lp64d', '-mcmodel=medany', '-O2', '-g', '-fdata-sections', '-ffunction-sections', '-Icpukit/include', '-I/home/EB/sebastian_h/src/rtems/cpukit/include', '-Icpukit/score/cpu/riscv/include', '-I/home/EB/sebastian_h/src/rtems/cpukit/score/cpu/riscv/include', '-Ibsps/include', '-I/home/EB/sebastian_h/src/rtems/bsps/include', '-Ibsps/riscv/include', '-I/home/EB/sebastian_h/src/rtems/bsps/riscv/include', '-Ibsps/riscv/riscv/include', '-I/home/EB/sebastian_h/src/rtems/bsps/riscv/riscv/include', '/home/EB/sebastian_h/src/rtems/bsps/shared/dev/serial/mc68681_reg2.c', '-c', '-o/tmp/sh/b-rtems/riscv/rv64imafdc/bsps/shared/dev/serial/mc68681_reg2.c.1.o', '-DHAVE_CONFIG_H=1'] In file included from /home/EB/sebastian_h/src/rtems/bsps/shared/dev/serial/mc68681_reg2.c:39: In file included from /home/EB/sebastian_h/src/rtems/bsps/shared/dev/serial/mc68681_reg.c:35: In file included from /home/EB/sebastian_h/src/rtems/cpukit/include/rtems.h:59: In file included from /home/EB/sebastian_h/src/rtems/cpukit/include/rtems/config.h:62: In file included from /home/EB/sebastian_h/src/rtems/cpukit/include/rtems/rtems/config.h:62: /home/EB/sebastian_h/src/rtems/cpukit/include/rtems/rtems/tasks.h:62:10: fatal error: 'sys/cpuset.h' file not found
#include <sys/cpuset.h>
         ^~~~~~~~~~~~~~
1 error generated.

You still need Newlib somehow and also the compiler-rt library for your target.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to