mini-os
mini-os copied to clipboard
minios fails to compile with clang.
As per title:
#=== ERROR while installing minios-xen.0.9 ====================================#
# opam-version 1.2.2
# os linux
# command make debug=n CONFIG_VERBOSE_BOOT=n
# path /home/maker/.opam/system/build/minios-xen.0.9
# compiler system (4.02.3)
# exit-code 2
# env-file /home/maker/.opam/system/build/minios-xen.0.9/minios-xen-9868-fbcac7.env
# stdout-file /home/maker/.opam/system/build/minios-xen.0.9/minios-xen-9868-fbcac7.out
# stderr-file /home/maker/.opam/system/build/minios-xen.0.9/minios-xen-9868-fbcac7.err
### stdout ###
# [...]
# gcc -DCONFIG_START_NETWORK -DCONFIG_SPARSE_BSS -DCONFIG_BLKFRONT -DCONFIG_NETFRONT -DCONFIG_KBDFRONT -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -fno-builtin -Wall -Wredu
ndant-decls -Wno-format -Wno-redundant-decls -Wformat -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -O3 -fno-tree-loop-distribute-patterns -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reor
der-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -D__XEN_INTERFACE_VERS
ION__=0x00030205 -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include/x86_64 -c console/console.c -o /home/maker/.opam/system/build/minios-xen.0.9/
console/console.o
# gcc -DCONFIG_START_NETWORK -DCONFIG_SPARSE_BSS -DCONFIG_BLKFRONT -DCONFIG_NETFRONT -DCONFIG_KBDFRONT -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -fno-builtin -Wall -Wredu
ndant-decls -Wno-format -Wno-redundant-decls -Wformat -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -O3 -fno-tree-loop-distribute-patterns -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reor
der-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -D__XEN_INTERFACE_VERS
ION__=0x00030205 -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include/x86_64 -c console/xencons_ring.c -o /home/maker/.opam/system/build/minios-xen
.0.9/console/xencons_ring.o
# gcc -DCONFIG_START_NETWORK -DCONFIG_SPARSE_BSS -DCONFIG_BLKFRONT -DCONFIG_NETFRONT -DCONFIG_KBDFRONT -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -fno-builtin -Wall -Wredu
ndant-decls -Wno-format -Wno-redundant-decls -Wformat -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -O3 -fno-tree-loop-distribute-patterns -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reor
der-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -isystem /home/maker/.opam/system/build/minios-xen.0.9/include -D__MINIOS__ -D__XEN_INTERFACE_VERS
ION__=0x00030205 -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/include/x86_64 -c console/xenbus.c -o /home/maker/.opam/system/build/minios-xen.0.9/c
onsole/xenbus.o
# make --directory=arch/x86 OBJ_DIR=/home/maker/.opam/system/build/minios-xen.0.9/arch/x86 CONFIG_VERBOSE_BOOT=n || exit 1;
# make[1]: Entering directory '/home/maker/.opam/system/build/minios-xen.0.9/arch/x86'
# cc -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls -Wformat -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winlin
e -O3 -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reorder-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../include -D__MINIOS__ -D__XEN_INTERFACE_VERSION__=
0x00030205 -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../arch/x86/include -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../arch/x86/include/x86_64 -c events.c -o /home/maker/.opam/system/build/
minios-xen.0.9/arch/x86/events.o
# cc -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls -Wformat -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winlin
e -O3 -D__INSIDE_MINIOS__ -m64 -mno-red-zone -fno-reorder-blocks -fno-stack-protector -fno-asynchronous-unwind-tables -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../include -D__MINIOS__ -D__XEN_INTERFACE_VERSION__=
0x00030205 -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../arch/x86/include -isystem /home/maker/.opam/system/build/minios-xen.0.9/arch/x86/../../arch/x86/include/x86_64 -c ioremap.c -o /home/maker/.opam/system/build
/minios-xen.0.9/arch/x86/ioremap.o
# ../../minios.mk:78: recipe for target '/home/maker/.opam/system/build/minios-xen.0.9/arch/x86/ioremap.o' failed
# make[1]: Leaving directory '/home/maker/.opam/system/build/minios-xen.0.9/arch/x86'
# Makefile:173: recipe for target 'arch_lib' failed
### stderr ###
# typedef __UINT_FAST16_TYPE__ uint_fast16_t;
# [...]
# /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint-gcc.h:77:9: error: unknown type name '__UINT_FAST32_TYPE__'
# typedef __UINT_FAST32_TYPE__ uint_fast32_t;
# ^
# /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint-gcc.h:78:9: error: unknown type name '__UINT_FAST64_TYPE__'
# typedef __UINT_FAST64_TYPE__ uint_fast64_t;
# ^
#17 errors generated.
# make[1]: *** [/home/maker/.opam/system/build/minios-xen.0.9/arch/x86/ioremap.o] Error 1
# make: *** [arch_lib] Error 1
if instead I run sudo update-alternatives --set cc /usr/bin/gcc everything runs okay.
maybe @talex5 want to comment on?
Patches for other compilers are welcome, as long as they don't break it on gcc...