Problem with building Haiku on Ubuntu Linux

I followed the instructions on
When I tried to “make” the Haiku Jam, I met the following problems:

yzhua3@ubuntu:~/develop/haiku/buildtools/jam$ make
cc -o ./jam0 -O3 builtins.c command.c compile.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c timestamp.c variable.c
execunix.c: In function ‘execcmd’:
execunix.c:235: warning: incompatible implicit declaration of built-in function ‘_exit’
pathunix.c: In function ‘normalize_path’:
pathunix.c:261: warning: assignment makes pointer from integer without a cast
LINKLIBS= ./jam0
Segmentation fault
make: *** [all] Error 139

Probably same as this ticket:

It seems to be a bug in the gcc-version you are using.

You are right.

When I used gcc version 4.2.4, I came across the above issue.
However when I switched to gcc version 4.4.3, I was able to build
the Haiku image. Thanks for your help. :slight_smile: