Trouble porting newlib to my kernel (Syscalls are not being implemented?)
Posted: Thu Nov 13, 2025 10:39 pm
Hi. I'm able to build newlib including my syscalls, but when I go to compile a test program, the syscalls seem to be missing and not implemented. This is perplexing, since the syscalls.c file seems to be linked but the syscalls are considered missing.
The port of newlib is on this github: https://github.com/atomtables/newlib_astatine
This is the simple test program
And this is the output
similar like that for _write, _read, _lseek, _isatty.
if someone could please it help it would be greatly appreciated
The port of newlib is on this github: https://github.com/atomtables/newlib_astatine
This is the simple test program
Code: Select all
#include <stdio.h>
void main() {
printf("Hello, World!\n");
while(1);
}
Code: Select all
i686-astatine-gcc main.c -lc -lg -lm -lnosys
...i686-astatine/bin/ld: ...astatine/sysroot/usr/lib/libc.a(libc_a-closer.o): in function `_close_r':
...newlib-cygwin/build/i686-astatine/newlib/../../../newlib/libc/reent/closer.c:47:(.text+0x14): warning: _close is not implemented and will always fail
...i686-astatine/bin/ld: ...astatine/sysroot/usr/lib/libc.a(libc_a-fstatr.o): in function `_fstat_r':
...newlib-cygwin/build/i686-astatine/newlib/../../../newlib/libc/reent/fstatr.c:55:(.text+0x17): warning: _fstat is not implemented and will always fail
...
if someone could please it help it would be greatly appreciated