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: unassignedclangb...@nondot.org
          Reporter: lesliez...@llvm.org.cn
                CC: llvm-bugs@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 (g...@github.com:llvm-mirror/clang.git
ef356db5c03a0f052c09ebd0a964b9eda3852847) (g...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to