+ target=armv7l-unknown-linux-gnueabihf + getopts t:o: o + case "$o" in + target=arm-linux-gnueabihf + getopts t:o: o + case "$o" in + output_file=/tmp/pthread/program.bc + getopts t:o: o + shift 4 + '[' x/tmp/pthread/program.bc = x ']' + target_dir=arm-linux-gnueabihf + case $target in + target_dir=arm + target=armv7 + case $target in + CLANG_FLAGS='-mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC' + CLANG_FLAGS='-mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC -fasm -fsigned-char -target armv7' + preprocessed_file=/tmp/pthread/program.bc.i + /usr/bin/clang -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC -fasm -fsigned-char -target armv7 -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -E -I/home/sumit/code/bzr-pocl/sumit -include /home/sumit/code/bzr-pocl/sumit/include/arm/types.h -include /home/sumit/code/bzr-pocl/sumit/include/_kernel.h -o /tmp/pthread/program.bc.i -x cl /tmp//program.cl + false + /usr/bin/clang -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC -fasm -fsigned-char -target armv7 -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -c -emit-llvm -o /tmp/pthread/program.bc -x cl /tmp/pthread/program.bc.i + getopts k:o:t: o + case "$o" in + kernel=test_as_type + getopts k:o:t: o + case "$o" in + target=arm-linux-gnueabihf + getopts k:o:t: o + case "$o" in + output_file=/tmp/pthread/test_as_type/descriptor.so + getopts k:o:t: o + shift 6 + '[' xtest_as_type = x ']' + '[' x/tmp/pthread/test_as_type/descriptor.so = x ']' ++ dirname /tmp/pthread/test_as_type/kernel.bc ++ basename /tmp/pthread/test_as_type/kernel.bc .bc + header=/tmp/pthread/test_as_type/kernel_header.h + rm -f /tmp/pthread/test_as_type/kernel_header.h + /usr/lib/llvm-3.2/bin/opt -load=/home/sumit/code/bzr-pocl/sumit/lib/llvmopencl/.libs/llvmopencl.so -break-constgeps -generate-header -kernel=test_as_type -header=/tmp/pthread/test_as_type/kernel_header.h -disable-output /tmp/pthread/test_as_type/kernel.bc + false + case $target in + target_flags='-target arm-linux-gnueabihf' + /usr/bin/clang -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC -target arm-linux-gnueabihf -c -o /tmp/pthread/test_as_type/descriptor.so.o -x c - + ld /tmp/pthread/test_as_type/descriptor.so.o -shared -march=armv7-a -mtune=cortex-a9 -o /tmp/pthread/test_as_type/descriptor.so ld: unrecognised emulation mode: tune=cortex-a9 Supported emulations: armelf_linux_eabi armelfb_linux_eabi + cat /tmp/pthread/test_as_type/kernel_header.h + cat Running test #0 test_as_type... [pocl] executing [/usr/lib/llvm-3.2/bin/llc -relocation-model=pic -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.s /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.bc] [pocl] executing [/usr/bin/clang -target arm-linux-gnueabihf -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -target arm-linux-gnueabihf -mfloat-abi=hard -fPIC -c -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.s -v] Ubuntu clang version 3.2-1~exp9ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: arm--linux-gnueabihf Thread model: posix clang: warning: argument unused during compilation: '-fPIC' "/usr/bin/as" -mfloat-abi=hard -mcpu=cortex-a9 -mfpu=neon -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.s [pocl] executing [/usr/bin/clang++ -target arm-linux-gnueabihf -shared -march=armv7-a -mtune=cortex-a9 -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o -v] Ubuntu clang version 3.2-1~exp9ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) Target: arm--linux-gnueabihf Thread model: posix "/usr/bin/ld" -z relro -X --hash-style=gnu --build-id --eh-frame-hdr -m armelf_linux_eabi -shared -dynamic-linker /lib/ld-linux-armhf.so.3 -o /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so /usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/../../../arm-linux-gnueabihf/crti.o /usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/crtbeginS.o -L/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7 -L/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/../../../arm-linux-gnueabihf -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -L/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/../../.. -L/lib -L/usr/lib /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/crtendS.o /usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7/../../../arm-linux-gnueabihf/crtn.o /usr/bin/ld: error: /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so uses VFP register arguments, /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o does not /usr/bin/ld: failed to merge target specific data of file /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.so.o clang: error: linker command failed with exit code 1 (use -v to see invocation) lt-kernel: common.c:116: llvm_codegen: Assertion `error == 0' failed.