Problem with clang support in waf

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 13 07:55:29 UTC 2019


Hello,

I made some preparations to support also clang in the new build system. 
You can configure the compiler per BSP variant, e.g.

[riscv/rv32imac]
COMPILER = clang
# Flags passed to the library archiver
ARFLAGS = crD
# Warning flags passed to the C compiler
CC_WARNING_FLAGS = -Wmissing-prototypes -Wimplicit-function-declaration 
-Wstrict-prototypes -Wnested-externs

I have now the following problem:

./waf configure --rtems-tools=/build/rtems/5,/usr 
--rtems-options=rv32imac.ini
Setting top to                           : /home/EB/sebastian_h/git-rtems-5
Setting out to                           : 
/home/EB/sebastian_h/git-rtems-5/build
Configure board support package (BSP)    : riscv/rv32imac
Checking for program 'clang'             : /usr/bin/clang
Checking for program 'riscv-rtems5-ar'   : 
/build/rtems/5/bin/riscv-rtems5-ar
Checking for program 'ar'                : 
/build/rtems/5/bin/riscv-rtems5-ar
Checking for program 'clang'             : /usr/bin/clang
Checking for program 'llvm-ar, ar'       : 
/build/rtems/5/bin/riscv-rtems5-ar
Checking for program 'ar'                : 
/build/rtems/5/bin/riscv-rtems5-ar
Checking for c flags '-MMD'              : yes
'configure' finished successfully (0.988s)
~/git-rtems-5 (build) > ./waf
Waf: Entering directory `/home/EB/sebastian_h/git-rtems-5/build'
Waf: Leaving directory `/home/EB/sebastian_h/git-rtems-5/build'
'build' finished successfully (0.322s)
Waf: Entering directory 
`/home/EB/sebastian_h/git-rtems-5/build/riscv/rv32imac'
Waf: Leaving directory 
`/home/EB/sebastian_h/git-rtems-5/build/riscv/rv32imac'
File 
/home/EB/sebastian_h/git-rtems-5/cpukit/score/cpu/riscv/riscv-exception-handler.S 
has no mapping in ['.c', '.obj', '.o', '.pc.in'] (load a waf tool?)

Waf doesn't know how *.S files are turned into *.o files. What is the 
clang assembler command? Is it missing in

https://gitlab.com/ita1024/waf/tree/master/waflib/Tools

?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list