amaneureka / AtomOS

A multitasking monolithic Kernel based x86 targeting Operating System written in C# from scratch aiming for high-level implementation of drivers in managed environment.
http://www.atomixos.com
BSD 3-Clause "New" or "Revised" License
1.26k stars 85 forks source link

sbrk is deprecated on MacOS #47

Open Pandawan opened 7 years ago

Pandawan commented 7 years ago

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.
amaneureka commented 7 years ago

Hi sorry for delayed response.

Seems like something is wrong with standard libraries. Can you please follow this to setup standard libraries.

Pandawan commented 7 years ago

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?