[PATCH] D138179: MIPS: fix build from IR files, nan2008 and FpAbi

YunQiang Su via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 18 06:17:16 PST 2022


wzssyqa added a comment.

In D138179#4002068 <https://reviews.llvm.org/D138179#4002068>, @nathanchance wrote:

> For what it's worth, this breaks building the Linux kernel's `ARCH=mips 32r1_defconfig` with clang and GNU as, with thousands of messages along the line of:
>
>   /tmp/mmc_ops-d329c3.s: Assembler messages:
>   /tmp/mmc_ops-d329c3.s:310: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:473: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:594: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:687: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:781: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:946: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:1023: Error: .module is not permitted after generating code
>   ...
>
> A simplified reproducer:
>
>   void rcu_normal_store() {}
>   void __attribute__ksysfs_init() {}

Thanks for your test. I will work it just now.

>   $ clang --version | head -1
>   ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 9739bb81aed490bfcbcbbac6970da8fb7232fd34)
>   
>   $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i
>   /tmp/ksysfs-9b0c50.s: Assembler messages:
>   /tmp/ksysfs-9b0c50.s:44: Error: .module is not permitted after generating code
>   clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
>
>
>
>   $ clang --version | head -1
>   ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 92619956eb27ef08dd24045307593fc3d7f78db0)
>   
>   $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i



In D138179#4002068 <https://reviews.llvm.org/D138179#4002068>, @nathanchance wrote:

> For what it's worth, this breaks building the Linux kernel's `ARCH=mips 32r1_defconfig` with clang and GNU as, with thousands of messages along the line of:
>
>   /tmp/mmc_ops-d329c3.s: Assembler messages:
>   /tmp/mmc_ops-d329c3.s:310: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:473: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:594: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:687: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:781: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:946: Error: .module is not permitted after generating code
>   /tmp/mmc_ops-d329c3.s:1023: Error: .module is not permitted after generating code
>   ...
>
> A simplified reproducer:
>
>   void rcu_normal_store() {}
>   void __attribute__ksysfs_init() {}
>
>
>
>   $ clang --version | head -1
>   ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 9739bb81aed490bfcbcbbac6970da8fb7232fd34)
>   
>   $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i
>   /tmp/ksysfs-9b0c50.s: Assembler messages:
>   /tmp/ksysfs-9b0c50.s:44: Error: .module is not permitted after generating code
>   clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
>
>
>
>   $ clang --version | head -1
>   ClangBuiltLinux clang version 16.0.0 (https://github.com/llvm/llvm-project 92619956eb27ef08dd24045307593fc3d7f78db0)
>   
>   $ clang --target=mips-linux-gnu -fno-integrated-as -c -o /dev/null ksysfs.i




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138179/new/

https://reviews.llvm.org/D138179



More information about the cfe-commits mailing list