RIOT
RIOT copied to clipboard
x86: doesn't build on OS X with clang
Current version of the x86 port doesn't build for OS X with clang.
% BOARD=qemu-i386 make clean all -j
$RIOT/boards/x86-multiboot-common/Makefile.include:8: "Precompiled newlib is missing in $RIOT/toolchain/x86/i586-none-elf"
$RIOT/boards/x86-multiboot-common/Makefile.include:9: "Downloading from http://download.riot-os.org/i586-newlib_2.1.0_tlsf.txz"
rm -rf $RIOT/examples/hello-world/bin/qemu-i386/tlsf-src/
rm -rf $RIOT/examples/hello-world/bin/qemu-i386/
make: Nothing to be done for `clean'.
"/usr/bin/make" -C $RIOT/pkg/tlsf
2014-05-26 12:34:41 URL:http://tlsf.baisoku.org/tlsf-3.0.zip [11758/11758] -> "$RIOT/pkg/tlsf/tlsf-3.0.zip" [1]
Archive: $RIOT/pkg/tlsf/tlsf-3.0.zip
inflating: tlsf.h
inflating: tlsfbits.h
inflating: Readme.txt
inflating: tlsf.c
patching file tlsf.c
patching file tlsf.h
(Stripping trailing CRs from patch.)
patching file Makefile
(Stripping trailing CRs from patch.)
patching file tlsf-malloc.c
(Stripping trailing CRs from patch.)
patching file tlsf-malloc.h
In file included from tlsf.c:2:
$RIOT/toolchain/x86/i586-none-elf/include/limits.h:131:16: fatal error:
'limits.h' file not found
# include_next <limits.h>
^
In file included from tlsf-malloc.c:1:
$RIOT/core/include/irq.h:24:10: fatal error:
'stdbool.h' file not found
1 error generated.
#include <stdbool.h>
^
make[2]: *** [$RIOT/examples/hello-world/bin/qemu-i386/tlsf/tlsf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [$RIOT/examples/hello-world/bin/qemu-i386/tlsf/tlsf-malloc.o] Error 1
make[1]: *** [$RIOT/examples/hello-world/bin/qemu-i386/tlsf.a] Error 2
make: *** [$RIOT/examples/hello-world/bin/qemu-i386/tlsf.a] Error 2
Hints:
clangs include path is in
$PLATFORMPATH/usr/include/
where $PLATFORMPATH can be retrieved by
% PLATFORM=`xcodebuild -version -sdk | grep Path | cut -f2 -d ' ' | grep MacOSX10 | head -1`
Not even one hour in master... ;)
was merged while I wrote the comment :)
Bloody concurrency!
sorry!
Just fixing the include path is not enough. The header files in clang are highly OSX specific (at least on OSX ...). I don't think that we can use them.
Wontfix?
Apparently no one is interested.