<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">If this is not the proper place to report this problem, I apologize<br>and would like to know the proper avenue. Information on compiler-rt<br>

is very scarce, and I have been unable to get block support on Linux<br>any other way.<br><br>I'm running X86_64 Ubuntu Linux, and I checked out the trunk of<br>compiler-rt and built it according to the instructions on it's page,<br>

and ran the test suite. Three tests failed:<br><br>The following tests FAILED:<br>        24 - enable_execute_stack_test (SEGFAULT)<br>        38 - fixunssfti_test (Failed)<br>        74 - fixunsdfti_test (Failed)<br><br>

The code built without any errors. Some warnings were output, all of<br>which are identical to this one, save the file in which it occurs<br>[ 90%] Building C object test/CMakeFiles/powitf2_test.dir/Unit/powitf2_test.c.o<br>

/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c: In function ‘main’:<br>/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c:229: warning:<br>implicit declaration of function ‘printf’<br>/home/taylorh/prog/compiler-rt/test/Unit/powitf2_test.c:229: warning:<br>

incompatible implicit declaration of built-in function ‘printf’<br><br>I am building with gcc 4.4.3-4ubuntu5, though I doubt that matters. I<br>have tried building with a release build of clang 2.9 (trunk 115910)<br>and the errors are identical.<br>

<br>The following lines of output seem relevant. They all come from the<br>following pastebin <a href="http://pastebin.com/YJDEr4bY" target="_blank" style="color: rgb(0, 0, 204); ">http://pastebin.com/YJDEr4bY</a><br><br>

~~~~~headers not found during cmake~~~~~<br>~~~~~Note: Missing headers are of course a red flag, but I have been<br>unable to discover any way to get them. Google searches yield Apple<br>developer documentation, which isn't terribly helpful when I appear to<br>

need the libraries to build something that allows blocks to function<br>on non-OS X systems~~~~~<br><br>taylorh@taylorh-laptop:~/prog/c$ cmake ../compiler-rt/<br>-- The C compiler identification is GNU<br>-- Check for working C compiler: /usr/bin/gcc<br>

-- Check for working C compiler: /usr/bin/gcc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Looking for sys/byteorder.h<br>-- Looking for sys/byteorder.h - not found<br>-- Looking for AvailabilityMacros.h<br>

-- Looking for AvailabilityMacros.h - not found<br>-- Looking for TargetConditionals.h<br>-- Looking for TargetConditionals.h - not found<br>-- Looking for libkern/OSAtomic.h<br>-- Looking for libkern/OSAtomic.h - not found<br>

-- Looking for sysconf<br>-- Looking for sysconf - found<br>-- Looking for OSAtomicCompareAndSwapInt<br>-- Looking for OSAtomicCompareAndSwapInt - not found.<br>-- Looking for OSAtomicCompareAndSwapLong<br>-- Looking for OSAtomicCompareAndSwapLong - not found.<br>

-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT<br>-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT - Success<br>-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG<br>-- Performing Test HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG - Success<br>

-- Configuring done<br>-- Generating done<br><br>~~~~~Build Warnings During Make~~~~~<br>[  4%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/ashldi3.c.o<br>/home/taylorh/prog/compiler-rt/lib/ashldi3.c:22: warning: ISO C does<br>

not allow extra ‘;’ outside of a function<br>~~~~~Note: Identical warnings in the following files~~~~~<br>[  5%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/ashrdi3.c.o<br>[ 12%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixdfdi.c.o<br>

[ 13%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixsfdi.c.o<br>[ 14%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixunsdfdi.c.o<br>[ 14%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixunsdfsi.c.o<br>

[ 15%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixunssfdi.c.o<br>[ 16%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/fixunssfsi.c.o<br>[ 17%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatdidf.c.o<br>

[ 17%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatdisf.c.o<br>[ 18%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatundidf.c.o<br>[ 19%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/floatundisf.c.o<br>

[ 20%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/lshrdi3.c.o<br>[ 22%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/muldi3.c.o<br>[ 34%] Building C object lib/CMakeFiles/CompilerRT-Generic.dir/udivmoddi4.c.o<br>

<br>[ 51%] Building C object test/CMakeFiles/divtc3_test.dir/Unit/divtc3_test.c.o<br>/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c: In function ‘main’:<br>/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c:379: warning:<br>

implicit declaration of function ‘printf’<br>/home/taylorh/prog/compiler-rt/test/Unit/divtc3_test.c:379: warning:<br>incompatible implicit declaration of built-in function ‘printf’<br>~~~~~Note: Identical warnings in the following files~~~~~<br>

[ 61%] Building C object<br>test/CMakeFiles/fixunstfdi_test.dir/Unit/fixunstfdi_test.c.o<br>[ 78%] Building C object test/CMakeFiles/multc3_test.dir/Unit/multc3_test.c.o<br>[ 90%] Building C object test/CMakeFiles/powitf2_test.dir/Unit/powitf2_test.c.o<br>

<br>If anybody can point me in the direction of getting compiler-rt to<br>build, I would be very grateful.</span>