[cfe-dev] Clang build (with profiling enabled) fails on FreeBSD
Jay Sullivan
notfed at gmail.com
Thu Apr 15 13:25:34 PDT 2010
I attempted to build clang with profiling enabled, and it won't
compile. I was able to compile the Debug and Release versions without
problems, but problems arise whenever I try to add profiling.
Here's what I attempted to do:
$ svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
$ cd llvm/tools
$ svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
$ cd ..
$ ./configure --enable-optimized --enable-profiling
$ gmake
It was building for a while, but eventually saw the following output:
llvm[2]: Linking Release+Profile executable not
llvm[2]: ======= Finished Linking Release+Profile Executable not
gmake[2]: Leaving directory `/usr/home/jay/progs/llvm/utils/not'
gmake[2]: Entering directory `/usr/home/jay/progs/llvm/utils/unittest'
gmake[3]: Entering directory
`/usr/home/jay/progs/llvm/utils/unittest/googletest'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory
`/usr/home/jay/progs/llvm/utils/unittest/googletest'
gmake[3]: Entering directory
`/usr/home/jay/progs/llvm/utils/unittest/UnitTestMain'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory
`/usr/home/jay/progs/llvm/utils/unittest/UnitTestMain'
gmake[2]: Leaving directory `/usr/home/jay/progs/llvm/utils/unittest'
gmake[1]: Leaving directory `/usr/home/jay/progs/llvm/utils'
gmake[1]: Entering directory `/usr/home/jay/progs/llvm/lib/VMCore'
llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td
gmake[1]: ***
[/usr/home/jay/progs/llvm/lib/VMCore/Release+Profile/Intrinsics.gen.tmp]
Segmentation fault: 11 (core dumped)
gmake[1]: Leaving directory `/usr/home/jay/progs/llvm/lib/VMCore'
gmake: *** [all] Error 1
I'm running FreeBSD 7.0 on a PC with 128 Mb of RAM. More details:
$ uname -a
FreeBSD dell.petio.org 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Tue Dec
23 01:38:59 EST 2008 root at dell.petio.org:/usr/obj/usr/src/sys/DELL
i386
$ cc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
--
Jay Sullivan
More information about the cfe-dev
mailing list