I just tried it on an ubuntu box (apt-get install clang). It seems to build fine, but the final link fails with a ton of missing symbols.
export CC=clang CXX=clang ./configure make I probably misconfigured clang for C++ somehow. On Wed, May 16, 2012 at 10:19 PM, billywhizz <apjohn...@gmail.com> wrote: > can i compile node using clang/llvm on linux? > > > On Thursday, May 17, 2012 3:40:16 AM UTC+1, Ben Noordhuis wrote: >> >> On Thu, May 17, 2012 at 4:04 AM, billywhizz <apjohn...@gmail.com> wrote: >> > thanks guys. yes, it looks like that's the issue. it works for me if i >> > change the configure to enable strict aliasing on my gcc which is 4.4.4 >> but >> > i'm not sure if enabling strict aliasing is going to cause other issues >> as >> > there were tons of warnings during the build... i guess upgrading gcc >> is the >> > definitive way to solve the issue? >> >> Either that or compiling with -O0. :-) I haven't seen the issue with >> clang or gcc 4.6 / 4.7. >> >