Hallo Community! Versuche gerade Linux mit einem selbst gebauten GCC zu kompilieren. Klappt allerdings nicht, da immer bei manchen Assembler Quellen Fehler ausgegeben werden (Beispiel):
1 | $ make CROSS_COMPILE=x86_64-none-elf- |
2 | SYNC include/config/auto.conf.cmd |
3 | HOSTCC scripts/kconfig/conf.o |
4 | HOSTLD scripts/kconfig/conf |
5 | SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h |
6 | SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h |
7 | SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h |
8 | SYSTBL arch/x86/include/generated/asm/syscalls_32.h |
9 | SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h |
10 | SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h |
11 | SYSTBL arch/x86/include/generated/asm/syscalls_64.h |
12 | SYSTBL arch/x86/include/generated/asm/syscalls_x32.h |
13 | HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h |
14 | [...] |
15 | CC arch/x86/entry/vdso/vdso-image-32.o |
16 | AR arch/x86/entry/vdso/built-in.a |
17 | CC arch/x86/entry/vsyscall/vsyscall_64.o |
18 | AS arch/x86/entry/vsyscall/vsyscall_emu_64.o |
19 | AR arch/x86/entry/vsyscall/built-in.a |
20 | AS arch/x86/entry/entry.o |
21 | AS arch/x86/entry/entry_64.o |
22 | arch/x86/entry/entry_64.S: Assembler messages: |
23 | arch/x86/entry/entry_64.S:380: Error: unbalanced parenthesis in operand 1. |
24 | arch/x86/entry/entry_64.S:163: Info: macro invoked from here |
25 | arch/x86/entry/entry_64.S:265: Info: macro invoked from here |
26 | arch/x86/entry/entry_64.S:382: Error: unbalanced parenthesis in operand 1. |
27 | arch/x86/entry/entry_64.S:163: Info: macro invoked from here |
28 | arch/x86/entry/entry_64.S:265: Info: macro invoked from here |
29 | make[3]: *** [scripts/Makefile.build:387: arch/x86/entry/entry_64.o] Error 1 |
30 | make[2]: *** [scripts/Makefile.build:505: arch/x86/entry] Error 2 |
31 | make[1]: *** [scripts/Makefile.build:505: arch/x86] Error 2 |
32 | make: *** [Makefile:2039: .] Error 2 |
33 | $ |
Hat jemand eine Idee, an was es liegen könnte? Falsch gebaute GNU Toolchains? Mit dem System eigenen GCC von Debian 12, klappt alles problemlos. GCC Version:
1 | $ x86_64-none-elf-gcc --version |
2 | x86_64-none-elf-gcc (GCC) 13.2.0 |
3 | Copyright (C) 2023 Free Software Foundation, Inc. |
4 | This is free software; see the source for copying conditions. There is NO |
5 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
6 | $ |
binutils (GAS) Version:
1 | $ x86_64-none-elf-as --version |
2 | GNU assembler (GNU Binutils) 2.41 |
3 | Copyright (C) 2023 Free Software Foundation, Inc. |
4 | This program is free software; you may redistribute it under the terms of |
5 | the GNU General Public License version 3 or later. |
6 | This program has absolutely no warranty. |
7 | This assembler was configured for a target of `x86_64-none-elf'. |
8 | $ |
Vielen Dank im voraus!