Bug#655432: clang unusable on armel and armhf, link failures
peter green
plugwash at p10link.net
Wed Jan 11 02:57:06 UTC 2012
package: clang
severity: grave
x-debbugs-cc: debian-arm at lists.debian.org
When trying to build libblocksruntime both locally and on the buildds it
fails with the following warnings and errors.
make[1]: Entering directory `/build/buildd-libblocksruntime_0.1-1-armhf-kukYFg/libblocksruntime-0.1'
clang -c -o runtime.o -DBlocksRuntime_EXPORTS -fPIC -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter runtime.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
clang -c -o data.o -DBlocksRuntime_EXPORTS -fPIC -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter data.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
clang -shared -Wl,-export-dynamic -Wl,-soname,libBlocksRuntime.so.0 -o libBlocksRuntime.so.0.0 runtime.o data.o
/usr/bin/ld: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libBlocksRuntime.so] Error 1
So I tried building a trivial test program (just an empty main function
nothing else) with clang on armhf and got the following error
root at debian:/# clang test.c
clang: warning: unknown platform, assuming -mfloat-abi=soft
/usr/bin/ld.bfd.real: cannot find crt1.o: No such file or directory
/usr/bin/ld.bfd.real: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
root at debian:/#
I then tried the same trivial test program on armel and that failed too
root at debian:~# clang test.c
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
root at debian:~#
Both the armel and armhf environments were running clang 3.0-5
P.S. can someone fix the "failing reason" for libblocksruntime to point
to this bug
rather than the closed bug it points to at the moment.
More information about the Pkg-llvm-team
mailing list