[cfe-dev] Can't build CLang with CLang on FreeBSD
Jay Sullivan
notfed at gmail.com
Mon Apr 19 12:38:35 PDT 2010
> When I try to build clang with clang, I get an error when building
> Alarm.cpp. When I compile with profiling, I'm seeing the error "clang:
> warning: the clang compiler does not support '-pg' ". The build then
> fails in the same place (Alarm.cpp) whether I use Debug and/or
> Release, with or without profiling. My operating system is FreeBSD
> 7.0-RELEASE. The clang I'm using was built with gcc4.2.1.
Okay! Get this: it took about a day and a half to complete, but I was
able to compile Clang [Release] using Clang [Debug]. Thus, I've had
to use GCC to build Clang [Debug], and then use Clang [Debug] to build
Clang [Release]. (When I try to build Clang [Release] with GCC, it
creates a b0rken executable.) Trying to build Clang [Release] with
Clang [Release], however, left me with:
[jay at dell ~/progs/llvm]$ gmake
gmake[1]: Entering directory `/usr/home/jay/progs/llvm/lib/System'
llvm[1]: Compiling Alarm.cpp for Release build
Stack dump:
0. Program arguments:
/usr/home/jay/progs/clang/Release_clang/bin/clang -cc1 -triple
i386-unknown-freebsd7.0 -S -disable-free -main-file-name Alarm.cpp
-pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir
/usr/home/jay/progs/clang/Release_clang/lib/clang/1.5 -dependency-file
/usr/home/jay/progs/llvm/lib/System/Release/Alarm.d.tmp -MP -MT
/usr/home/jay/progs/llvm/lib/System/Release/Alarm.o -MT
/usr/home/jay/progs/llvm/lib/System/Release/Alarm.d -D_DEBUG
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/usr/home/jay/progs/llvm/include
-I/usr/home/jay/progs/llvm/lib/System -O3 -Woverloaded-virtual
-Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings
-ferror-limit 19 -fmessage-length 80 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-HxV9zW.s -x
c++ Alarm.cpp
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'Alarm.cpp'.
4. Running pass 'Dead Store Elimination' on function
'@_ZN4llvm3sys10SetupAlarmEj'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
gmake[1]: *** [/usr/home/jay/progs/llvm/lib/System/Release/Alarm.o] Error 1
gmake[1]: Leaving directory `/usr/home/jay/progs/llvm/lib/System'
gmake: *** [all] Error 1
--
Jay Sullivan
More information about the cfe-dev
mailing list