On Fri, Apr 9, 2010 at 10:50 PM, Paul Davey <plmdvy@xxxxxxxxx> wrote: > On Fri, Apr 9, 2010 at 9:07 PM, Paul Davey <plmdvy@xxxxxxxxx> wrote: >> I have to make a number of changes to clang, so i shall reproduce the >> archive and have it replace this one once they are done, hopefully >> they will allow for clang to be used to build stuff on haiku. >> > > I have updated clang and it builds most (I have tried very few...) of > the things that gcc does without errors now. > Some of them however die on startup with an illegal opcode exception :( > Does anyone have any idea why it would do that? > All shall rejoice for I have found the issue and corrected it. The new zip file when it gets uploaded will have the issue fixed. In order to get clang to work however you must add this to your size_t.h file in /boot/develop/headers/posix """ #ifdef __clang__ typedef long signed int ssize_t; #endif """ also ensure gcc4 is the one set to be used if on a hybrid. There is probably more to do but i suspect this allows clang to be used to compile most user programs and i shall attempt a few from the haiku trunk once i get the hang of jam...