I’m trying to build haiku in macOS but when I try to compile buildtools for x86 architecture it fails. Below I’ve attached last part of what is shown on my terminal. Can anyone help?
config.status: executing default commands
if [ x"-fPIC" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"-fPIC" != x ]; then \
gcc -c -DHAVE_CONFIG_H -O2 -fcommon -I. -I/Volumes/Haiku/buildtools/legacy/binutils/libiberty/../include -W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes -Wc++-compat -fPIC /Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c -o pic/regex.o; \
else true; fi
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:130:14:** **warning:** **this function declaration is not a prototype [-Wstrict-prototypes]**
char *malloc ();
**^**
void
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:130:7:** **warning:** **incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration]**
char *malloc ();
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:130:7: note:** 'malloc' is a builtin with type 'void *(unsigned long)'
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:131:15:** **warning:** **this function declaration is not a prototype [-Wstrict-prototypes]**
char *realloc ();
**^**
void
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:131:7:** **warning:** **incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration]**
char *realloc ();
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:131:7: note:** 'realloc' is a builtin with type 'void *(void *, unsigned long)'
In file included from /Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:638:
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:2439:33:** **error:** **implicitly declaring library function 'free' with type 'void (void *)' [-Werror,-Wimplicit-function-declaration]**
if (!COMPILED_BUFFER_VAR) FREE_STACK_RETURN (REG_ESPACE);
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:2278:11: note:** expanded from macro 'FREE_STACK_RETURN'
return (free (compile_stack.stack), value)
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:2439:33: note:** include the header <stdlib.h> or explicitly provide a declaration for 'free'
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:2278:11: note:** expanded from macro 'FREE_STACK_RETURN'
return (free (compile_stack.stack), value)
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:4835:11:** **error:** **implicitly declaring library function 'abort' with type 'void (void) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]**
abort (); /* We have listed all the cases. */
**^**
**/Volumes/Haiku/buildtools/legacy/binutils/libiberty/regex.c:4835:11: note:** include the header <stdlib.h> or explicitly provide a declaration for 'abort'
4 warnings and 2 errors generated.
make[2]: *** [regex.o] Error 1
make[1]: *** [all-libiberty] Error 2
make: *** [all] Error 2