I'm getting these errors while compiling on Manjaro, which is arch-based. What could be the issue?
$ LC_ALL=C ZELDA=/WIN_D/Laurin/Dev/C/ZeldaOS make app_install
[ACTION] start to install application packages.
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/cat'
[CC] cat:main.c
[LD] cat:cat
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: cat] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/cat'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/dummy'
[CC] dummy:main.c
[LD] dummy:dummy
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: dummy] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/dummy'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/kill'
[CC] kill:main.c
[LD] kill:kill
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: kill] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/kill'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/ls'
[CC] ls:main.c
[LD] ls:ls
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: ls] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/ls'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/ps'
[CC] ps:main.c
[LD] ps:ps
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: ps] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/ps'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/shell'
[CC] shelld:hyrule_castle.c
[LD] shelld:shelld
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: shelld] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/shell'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/tinyvm'
[CC] tinyvm:tvm_program.c
[CC] tinyvm:tvm_lexer.c
[CC] tinyvm:tvm.c
[CC] tinyvm:tvm_htab.c
[CC] tinyvm:tvm_memory.c
[CC] tinyvm:tvm_preprocessor.c
[CC] tinyvm:tvm_parser.c
[CC] tinyvm:tvm_file.c
[CC] tinyvm:tvmi.c
[LD] tinyvm:tinyvm
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: tinyvm] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/tinyvm'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/uname'
[CC] uname:main.c
[LD] uname:uname
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: uname] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/uname'
make[1]: Entering directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/userland_init'
[CC] userland_init:userland_init.c
[LD] userland_init:userland_init
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-signal.o): in function `signal':
signal.c:(.text+0x271): multiple definition of `signal'; /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.o:/WIN_D/Laurin/Dev/C/ZeldaOS/runtime/syscall_inventory0.c:25: first defined here
ld: /WIN_D/Laurin/Dev/C/ZeldaOS/runtime/libc/libc.a(lib_a-stack_protector.o): in function `__stack_chk_fail':
stack_protector.c:(.text+0xbd): undefined reference to `_exit'
make[1]: *** [/WIN_D/Laurin/Dev/C/ZeldaOS/mk/Makefile.application:26: userland_init] Error 1
make[1]: Leaving directory '/WIN_D/Laurin/Dev/C/ZeldaOS/application/userland_init'
make: *** [Makefile:13: app_install] Error 2
$ LC_ALL=C ZELDA=/WIN_D/Laurin/Dev/C/ZeldaOS make
[CC] x86/pit.c
[CC] x86/interrupt.c
In file included from ./x86/include/interrupt.h:6,
from x86/interrupt.c:5:
x86/interrupt.c: In function 'compound_interrupt_handler':
x86/interrupt.c:87:47: error: converting a packed 'struct list_elem' pointer (alignment 1) to a 'struct linked_handler' pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
87 | lhandler = CONTAINER_OF(_list, struct linked_handler, list);
| ^~~~~~~~~~~~~~
./lib/include/types.h:41:52: note: in definition of macro 'OFFSET_OF'
41 | #define OFFSET_OF(structure, field) ((int32_t)(&(((structure *)0)->field)))
| ^~~~~~~~~
x86/interrupt.c:87:20: note: in expansion of macro 'CONTAINER_OF'
87 | lhandler = CONTAINER_OF(_list, struct linked_handler, list);
| ^~~~~~~~~~~~
In file included from ./x86/include/interrupt.h:7,
from x86/interrupt.c:5:
./lib/include/list.h:11:8: note: defined here
11 | struct list_elem {
| ^~~~~~~~~
In file included from x86/interrupt.c:5:
./x86/include/interrupt.h:92:8: note: defined here
92 | struct linked_handler {
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [mk/Makefile.kernel:30: x86/interrupt.o] Error 1
I'm getting these errors while compiling on Manjaro, which is arch-based. What could be the issue?