[llvm-bugs] [Bug 38128] New: Unsupported inline asm tying incompatible types
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 11 01:08:56 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38128
Bug ID: 38128
Summary: Unsupported inline asm tying incompatible types
Product: clang
Version: trunk
Hardware: SGI
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: lesliezhai at llvm.org.cn
CC: llvm-bugs at lists.llvm.org
Hi LLVM developers,
I am building Linux Kernel[1] with LLVM toolchain[2] for mips64el.
But it failed:
In file included from init/do_mounts.c:32:
In file included from ./include/linux/nfs_fs.h:30:
In file included from ./include/linux/sunrpc/clnt.h:27:
In file included from ./include/net/ipv6.h:16:
In file included from ./include/linux/ipv6.h:76:
In file included from ./include/linux/icmpv6.h:4:
In file included from ./include/linux/skbuff.h:31:
In file included from ./include/net/checksum.h:26:
./arch/mips/include/asm/checksum.h:195:9: error: unsupported inline asm: input
with type 'unsigned long'
matching output with type '__wsum' (aka 'unsigned int')
: "0" ((__force unsigned long)daddr),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
scripts/Makefile.build:296: recipe for target 'init/do_mounts.o' failed
make[1]: *** [init/do_mounts.o] Error 1
I am debugging `Sema::ActOnGCCAsmStmt` to find the
err_asm_tying_incompatible_types's root cause, please give me some hints,
thanks a lot!
1. Linux Kernel 4.9 branch https://github.com/loongson-community/linux-stable
2. Loongson clang version 7.0.0 (git at github.com:llvm-mirror/clang.git
ef356db5c03a0f052c09ebd0a964b9eda3852847) (git at github.com:llvm-mirror/llvm.git
ab9920d16bc0acaa2a458b49a43b3aaa9bcda8e6) (based on LLVM 7.0.0svn)
Target: mips64el-redhat-linux
Thread model: posix
InstalledDir: /opt/llvm-git/bin
Found candidate GCC installation: /usr/lib/gcc/mips64el-redhat-linux/4.9.3
Selected GCC installation: /usr/lib/gcc/mips64el-redhat-linux/4.9.3
Candidate multilib: .;
Selected multilib: .;
Regards,
Leslie Zhai
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180711/238a38d7/attachment.html>
More information about the llvm-bugs
mailing list