On Fri, Jun 12, 2020 at 4:54 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote: > > Hi Sedat, > > > On Fri, Jun 12, 2020 at 10:47 PM Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote: > > > > Hi Masahiro, > > > > I am trying to build with clang-10, ld.lld-10 and LLVM_IAS=1. > > > > I fell over some problems in x86/crypto area where I have found fixes. > > > > But how on hell can I set -no-integrated-as for specific object-file? > > > > [ arch/x86/crypto/Makefile ] > > > > ifdef LLVM_IAS > > KBUILD_CPPFLAGS += -no-integrated-as > > endif > > > > ...at the top sets -no-integrated-as for all object-files. > > > > I have two broken object-files (or more exact the corresponding *.S > > file is broken): > > #1: aes_ctrby8_avx-x86_64.o <--- FIXED > > <https://github.com/ClangBuiltLinux/linux/issues/1008> > > #2: crc32c-pcl-intel-asm_64.o <--- PATCH exist - does not work for me > > > > I tried... > > > > CFLAGS_aes_ctrby8_avx-x86_64.o += -no-integrated-as > > CLAGS_crc32c-pcl-intel-asm_64.o += -no-integrated-as > > > > The source file is .S (assembly file), > so > > AFLAGS_aes_ctrby8_avx-x86_64.o += -no-integrated-as > > > Or, > > asflags-y += -no-integrated-as > > , which is effective for all .S files in the directory. > Hi Masahiro, thanks for the feedback. I could solve all breakage in arch/x86/crypto - for one issue I needed OBJDUMP=llvm-objdump in my make-options. So, I keep this in mind. Can we document this in llvm.rst kernel-doc as "troubleshooting"? Hope you are well. Regards, - Sedat - > > > > > > > > or > > > > CPPFLAGS_aes_ctrby8_avx-x86_64.o += -no-integrated-as > > CPPFLAGS_crc32c-pcl-intel-asm_64.o += -no-integrated-as > > > > or > > > > cflags-$(CONFIG_CRYPTO_AES_NI_INTEL) += -no-integrated-as > > cflags-$(CONFIG_CRYPTO_CRC32C_INTEL) += -no-integrated-as > > > > or > > > > cppflags-$(CONFIG_CRYPTO_AES_NI_INTEL) += -no-integrated-as > > cppflags-$(CONFIG_CRYPTO_CRC32C_INTEL) += -no-integrated-as > > > > All above also with "-fno-integrated-as" at the top and at the bottom > > of the Makefile. > > > > Can you give a hint? > > > > Thanks. > > > > Regards, > > - Sedat - > > > > [1] https://github.com/ClangBuiltLinux/linux/issues/1049 > > [1] https://github.com/ClangBuiltLinux/linux/issues/1050 > > > > -- > Best Regards > Masahiro Yamada