AtomOS
AtomOS copied to clipboard
sbrk is deprecated on MacOS
When I tried the first building step using sudo ./Setup.sh --setup
on MacOS on Sierra. (Btw, I had to install the packages using homebrew instead of apt-get and build-install isn't available so I did it without it...)
/Users/USER/Desktop/AtomOS/AtomOS/src/Build/Temp/binutils-2.26/gas/as.c:1013:24: error:
'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
char *lim = (char *) sbrk (0);
^
/usr/include/unistd.h:587:7: note: 'sbrk' has been explicitly marked
deprecated here
void *sbrk(int);
^
/Users/USER/Desktop/AtomOS/AtomOS/src/Build/Temp/binutils-2.26/gas/as.c:1156:25: error:
'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
start_sbrk = (char *) sbrk (0);
^
/usr/include/unistd.h:587:7: note: 'sbrk' has been explicitly marked
deprecated here
void *sbrk(int);
^
2 errors generated.
make[4]: *** [as.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-gas] Error 2
make: *** [all] Error 2
Build failed. Please check the logs above to see what went wrong.
Hi sorry for delayed response.
Seems like something is wrong with standard libraries. Can you please follow this to setup standard libraries.
It seems my libiconv is installed at /usr/local/Cellar/libiconv and I can't seem to install it somewhere else with homebrew... Do you know if libiconv is the problem?