[LLVMdev] [compiler-rt] trunk fails ctest on X86_64 Linux

Taylor Heffernan taylor.heffernan at gmail.com
Sun Jul 17 23:55:22 PDT 2011


If this is not the proper place to report this problem, I apologize
and would like to know the proper avenue. Information on compiler-rt
is very scarce, and I have been unable to get block support on Linux
any other way.

I'm running X86_64 Ubuntu Linux, and I checked out the trunk of
compiler-rt and built it according to the instructions on it's page,
and ran the test suite. Three tests failed:

The following tests FAILED:
        24 - enable_execute_stack_test (SEGFAULT)
        38 - fixunssfti_test (Failed)
        74 - fixunsdfti_test (Failed)

The code built without any errors. Some warnings were output, all of
which are identical to this one, save the file in which it occurs
[ 90%] Building C object
test/CMakeFiles/powitf2_test.dir/Unit/powitf2_test.c.o
/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c: In function ‘main’:
/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c:229: warning:
implicit declaration of function ‘printf’
/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c:229: warning:
incompatible implicit declaration of built-in function ‘printf’

I am building with gcc 4.4.3-4ubuntu5, though I doubt that matters. I
have tried building with a release build of clang 2.9 (trunk 115910)
and the errors are identical.

The following lines of output seem relevant. They all come from the
following pastebin http://pastebin.com/YJDEr4bY

~~~~~headers not found during cmake~~~~~
~~~~~Note: Missing headers are of course a red flag, but I have been
unable to discover any way to get them. Google searches yield Apple
developer documentation, which isn't terribly helpful when I appear to
need the libraries to build something that allows blocks to function
on non-OS X systems~~~~~

taylorh at taylorh-laptop:~/prog/c$ cmake ../compiler-rt/
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for sys/byteorder.h
-- Looking for sys/byteorder.h - not found
-- Looking for AvailabilityMacros.h
-- Looking for AvailabilityMacros.h - not found
-- Looking for TargetConditionals.h
-- Looking for TargetConditionals.h - not found
-- Looking for libkern/OSAtomic.h
-- Looking for libkern/OSAtomic.h - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for OSAtomicCompareAndSwapInt
-- Looking for OSAtomicCompareAndSwapInt - not found.
-- Looking for OSAtomicCompareAndSwapLong
-- Looking for OSAtomicCompareAndSwapLong - not found.
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT - Success
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG
-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG - Success
-- Configuring done
-- Generating done

~~~~~Build Warnings During Make~~~~~
[  4%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/ashldi3.c.o
/home/taylorh/prog/compiler-rt/lib/ashldi3.c:22: warning: ISO C does
not allow extra ‘;’ outside of a function
~~~~~Note: Identical warnings in the following files~~~~~
[  5%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/ashrdi3.c.o
[ 12%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixdfdi.c.o
[ 13%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixsfdi.c.o
[ 14%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/fixunsdfdi.c.o
[ 14%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/fixunsdfsi.c.o
[ 15%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/fixunssfdi.c.o
[ 16%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/fixunssfsi.c.o
[ 17%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatdidf.c.o
[ 17%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatdisf.c.o
[ 18%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/floatundidf.c.o
[ 19%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/floatundisf.c.o
[ 20%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/lshrdi3.c.o
[ 22%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/muldi3.c.o
[ 34%] Building C object
lib/CMakeFiles/CompilerRT-Generic.dir/udivmoddi4.c.o

[ 51%] Building C object
test/CMakeFiles/divtc3_test.dir/Unit/divtc3_test.c.o
/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c: In function ‘main’:
/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c:379: warning:
implicit declaration of function ‘printf’
/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c:379: warning:
incompatible implicit declaration of built-in function ‘printf’
~~~~~Note: Identical warnings in the following files~~~~~
[ 61%] Building C object
test/CMakeFiles/fixunstfdi_test.dir/Unit/fixunstfdi_test.c.o
[ 78%] Building C object
test/CMakeFiles/multc3_test.dir/Unit/multc3_test.c.o
[ 90%] Building C object
test/CMakeFiles/powitf2_test.dir/Unit/powitf2_test.c.o

If anybody can point me in the direction of getting compiler-rt to
build, I would be very grateful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110718/8f5793aa/attachment.html>


More information about the llvm-dev mailing list