[PATCH] D64527: driver: Don't warn about assembler flags being unused when not assembling

Nathan Chancellor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 01:43:28 PDT 2019


nathanchance added a comment.

This change breaks building the Linux kernel for arm32 (at least):

  ...
    YACC    scripts/dtc/dtc-parser.tab.c
    HOSTCC  scripts/dtc/yamltree.o
    HOSTCC  scripts/dtc/dtc-parser.tab.o
    HOSTCC  scripts/dtc/dtc-lexer.lex.o
    HOSTLD  scripts/dtc/dtc
    UPD     include/config/kernel.release
    UPD     include/generated/utsrelease.h
    HOSTCC  scripts/asn1_compiler
    HOSTCC  scripts/extract-cert
    HOSTCC  scripts/sortextable
    HOSTCC  scripts/kallsyms
    HOSTCC  scripts/conmakehash
    SYSNR   arch/arm/include/generated/asm/unistd-nr.h
    SYSTBL  arch/arm/include/generated/calls-oabi.S
    GEN     arch/arm/include/generated/asm/mach-types.h
    SYSTBL  arch/arm/include/generated/calls-eabi.S
    HOSTCC  scripts/mod/mk_elfconfig
    CC      scripts/mod/devicetable-offsets.s
    CC      scripts/mod/empty.o
  clang-9: error: unsupported argument '-mno-warn-deprecated' to option 'Wa,'
  make[2]: *** [scripts/Makefile.build:112: scripts/mod/devicetable-offsets.s] Error 1
  make[2]: *** Waiting for unfinished jobs....
  clang-9: error: unsupported argument '-mno-warn-deprecated' to option 'Wa,'
  make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
  make[1]: *** [Makefile:1118: prepare0] Error 2
  make: *** [Makefile:325: __build_one_by_one] Error 2

The full command line that causes the issue is:

  /home/nathan/cbl/tc-build/build/llvm/stage1/bin/clang -Wp,-MD,scripts/mod/.empty.o.d  -nostdinc -isystem /home/nathan/cbl/tc-build/build/llvm/stage1/lib/clang/9.0.0/include -I./arch/arm/include -I./arch/arm/include/generated  -I./include -I./arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -Qunused-arguments -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 --target=arm-linux-gnueabi --prefix=/home/nathan/cbl/usr/bin/ --gcc-toolchain=/home/nathan/cbl/usr -no-integrated-as -Werror=unknown-warning-option -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -O2 -fstack-protector-strong -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -mno-global-merge -fomit-frame-pointer -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-initializer-overrides -Wno-unused-value -Wno-format -Wno-sign-compare -Wno-format-zero-length    -DKBUILD_BASENAME='"empty"' -DKBUILD_MODNAME='"empty"' -c -o scripts/mod/empty.o scripts/mod/empty.c

I'm not in the right state of mind (exhausted) to debug this but I wanted to let you know in case you have any immediate ideas.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D64527





More information about the cfe-commits mailing list