[cfe-dev] Problem with test/Driver/linux-ld.c tests

İsmail Dönmez ismail at namtrac.org
Thu Aug 2 05:00:36 PDT 2012


Hi;

On x86-64 Linux hosts test/Driver/linux-ld.c fails for MIPS & Android
tests. Here is an example:

[11516s]
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/linux-ld.c:228:15:
error: expected string not found in input
[11516s] // CHECK-ARM: "-dynamic-linker" "{{.*}}/lib/ld-linux.so.3"
[11516s]               ^
[11516s] <stdin>:6:149: note: scanning from here
[11516s]  "/usr/bin/ld" "-z" "relro" "-X" "--hash-style=gnu"
"--hash-style=both" "--build-id" "--enable-new-dtags" "--eh-frame-hdr" "-m"
"armelf_linux_eabi" "-dynamic-linker" "/lib64/ld-linux.so.3" "-o"
"/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/Output/linux-ld.c.tmp.o"
"/usr/lib/crt1.o" "/usr/lib/crti.o" "crtbegin.o" "-L/lib" "-L/usr/lib"
"/tmp/linux-ld-LiQYiR.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "crtend.o"
"/usr/lib/crtn.o"
[11516s]

Notice that the problem is the linker line is /lib64/ld-linux.so.3 instead
of /lib/ld-linux.so.3 . I configure clang with

     --with-clang-resource-dir="../lib64/clang/%{_release_version}"

for x86-64 hosts. I am not sure if this is the problem. Any help is
appreciated.

Regards,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120802/70f11e1b/attachment.html>


More information about the cfe-dev mailing list