<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unsupported inline asm tying incompatible types"
href="https://bugs.llvm.org/show_bug.cgi?id=38128">38128</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unsupported inline asm tying incompatible types
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>SGI
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lesliezhai@llvm.org.cn
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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 <a href="https://github.com/loongson-community/linux-stable">https://github.com/loongson-community/linux-stable</a>
2. Loongson clang version 7.0.0 (<a href="mailto:git@github.com">git@github.com</a>:llvm-mirror/clang.git
ef356db5c03a0f052c09ebd0a964b9eda3852847) (<a href="mailto:git@github.com">git@github.com</a>: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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>