Bug#779493: libdispatch failed to build with clang on mips64el: error in backend: Cannot select: 0x12a679ef0: i64, i64 = umul_lohi 0x12a6773b0, 0x12a679bc0 [ORD=15] [ID=55]

YunQiang Su wzssyqa at gmail.com
Sun Mar 1 13:32:38 UTC 2015


Package: llvm-toolchain-3.6
Version: 0~svn197-3.3

clang 3.5 and 3.7 have the same problem

libtool: compile:  clang-3.6 -DHAVE_CONFIG_H -I. -I../config -I.. -I..
-Wall -I/usr/include/kqueue -fPIC -march=mips64 -v -c benchmark.c
Debian clang version 3.6.0-+rc2-2 (tags/RELEASE_360/rc2) (based on LLVM 3.6.0)
Target: mips64el-unknown-linux-gnuabi64
Thread model: posix
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.7
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.7.3
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.8
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.8.3
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.9
Found candidate GCC installation:
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.9.2
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.7
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.7.3
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.8
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.8.3
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.9
Found candidate GCC installation: /usr/lib/gcc/mips64el-linux-gnuabi64/4.9.2
Selected GCC installation: /usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.9
Candidate multilib: .;
Selected multilib: .;
 "/usr/lib/llvm-3.6/bin/clang" -cc1 -triple
mips64el-unknown-linux-gnuabi64 -S -disable-free
-disable-llvm-verifier -main-file-name benchmark.c -mrelocation-model
pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno
-no-integrated-as -mconstructor-aliases -fuse-init-array -target-cpu
mips64 -target-feature -o32 -target-feature +n64 -target-abi n64
-mfloat-abi hard -target-linker-version 2.25 -v -dwarf-column-info
-coverage-file /home/syq/libdispatch/libdispatch-0~svn197/src/benchmark.c
-resource-dir /usr/lib/llvm-3.6/bin/../lib/clang/3.6.0 -D
HAVE_CONFIG_H -I . -I ../config -I .. -I .. -I /usr/include/kqueue
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/llvm-3.6/bin/../lib/clang/3.6.0/include
-internal-externc-isystem
/usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.9/include
-internal-externc-isystem /usr/include/mips64el-linux-gnuabi64
-internal-externc-isystem /include -internal-externc-isystem
/usr/include -Wall -fno-dwarf-directory-asm -fdebug-compilation-dir
/home/syq/libdispatch/libdispatch-0~svn197/src -ferror-limit 19
-fmessage-length 204 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/benchmark-c8267c.s -x c benchmark.c
clang -cc1 version 3.6.0 based upon LLVM 3.6.0 default target
mips64el-unknown-linux-gnuabi64
ignoring nonexistent directory "/include"
ignoring duplicate directory ".."
#include "..." search starts here:
#include <...> search starts here:
 .
 ../config
 ..
 /usr/include/kqueue
 /usr/local/include
 /usr/lib/llvm-3.6/bin/../lib/clang/3.6.0/include
 /usr/bin/../lib/gcc/mips64el-linux-gnuabi64/4.9/include
 /usr/include/mips64el-linux-gnuabi64
 /usr/include
End of search list.
fatal error: error in backend: Cannot select: 0x121ec5ef0: i64,i64 =
umul_lohi 0x121ec33b0, 0x121ec5bc0 [ORD=15] [ID=55]
  0x121ec33b0: i64,ch = load 0x121ec2e60, 0x121ec0290,
0x121ec0b10<LD8[%delta]> [ORD=10] [ID=50]
    0x121ec0290: i64 = FrameIndex<6> [ID=9]
    0x121ec0b10: i64 = undef [ID=4]
  0x121ec5bc0: i64,ch = load 0x121ec5a90, 0x121ec3080,
0x121ec0b10<LD8[%2]> [ORD=13] [ID=54]
    0x121ec3080: i64 = FrameIndex<1> [ID=12]
    0x121ec0b10: i64 = undef [ID=4]
In function: dispatch_benchmark_f
clang: error: clang frontend command failed with exit code 70 (use -v
to see invocation)
Debian clang version 3.6.0-+rc2-2 (tags/RELEASE_360/rc2) (based on LLVM 3.6.0)
Target: mips64el-unknown-linux-gnuabi64
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://bugs.debian.org/ and include the crash backtrace, preprocessed
source, and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/benchmark-9dce08.c
clang: note: diagnostic msg: /tmp/benchmark-9dce08.sh
clang: note: diagnostic msg:




-- 
YunQiang Su
-------------- next part --------------
A non-text attachment was scrubbed...
Name: benchmark-9dce08.c.xz
Type: application/octet-stream
Size: 162656 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150301/db76abc1/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: benchmark-9dce08.sh.xz
Type: application/octet-stream
Size: 496 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150301/db76abc1/attachment-0003.obj>


More information about the Pkg-llvm-team mailing list