GayPizzaSpecifications / mac-linux-kdk

Build ARM Linux Kernels natively on macOS hosts
GNU Lesser General Public License v3.0
60 stars 8 forks source link

Compile errors #6

Open uudiin opened 1 month ago

uudiin commented 1 month ago

Some warnings and errors occurs, like this:

  CC      arch/arm64/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
<stdin>:247:2: warning: syscall restart_syscall not implemented [-W#warnings]
  247 | #warning syscall restart_syscall not implemented
      |  ^
<stdin>:250:2: warning: syscall exit not implemented [-W#warnings]
  250 | #warning syscall exit not implemented
      |  ^
<stdin>:256:2: warning: syscall read not implemented [-W#warnings]
  256 | #warning syscall read not implemented
      |  ^

and

  LDS     arch/arm64/kernel/vdso/vdso.lds
  CC      arch/arm64/kernel/vdso/vgettimeofday.o
In file included from <built-in>:4:
In file included from /Volumes/source/opensrc/linux/lib/vdso/gettimeofday.c:5:
In file included from ./include/vdso/datapage.h:164:
./arch/arm64/include/asm/vdso/gettimeofday.h:24:31: error: use of undeclared identifier '__NR_gettimeofday'
   24 |         register long nr asm("x8") = __NR_gettimeofday;
      |                                      ^
./arch/arm64/include/asm/vdso/gettimeofday.h:41:31: error: use of undeclared identifier '__NR_clock_gettime'
   41 |         register long nr asm("x8") = __NR_clock_gettime;
      |                                      ^
./arch/arm64/include/asm/vdso/gettimeofday.h:58:31: error: use of undeclared identifier '__NR_clock_getres'
   58 |         register long nr asm("x8") = __NR_clock_getres;
      |                                      ^
3 errors generated.
make[2]: *** [scripts/Makefile.build:244: arch/arm64/kernel/vdso/vgettimeofday.o] Error 1

Built on Apple M3 Pro chip for Mac Book Pro 2023.