Problem with test/Driver/linux-ld.c tests


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/”
[11516s] ^
[11516s] :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/” “-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”

Notice that the problem is the linker line is /lib64/ instead of /lib/ . I configure clang with


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