AtomOS icon indicating copy to clipboard operation
AtomOS copied to clipboard

sbrk is deprecated on MacOS

Open Pandawan opened this issue 7 years ago • 2 comments

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.

Pandawan avatar Mar 07 '17 19:03 Pandawan

Hi sorry for delayed response.

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

amaneureka avatar Mar 08 '17 22:03 amaneureka

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?

Pandawan avatar Mar 20 '17 18:03 Pandawan