← Back to team overview

kernel-packages team mailing list archive

[Bug 1414002] Re: Assembler messages: Error: .err encountered


Ok.  So this is actually a bad piece of assembly triggering, a piece
deliberatly placed in the code to catch the compiler not placing things
in the registers we expected.  Basically we are assuming the ABI
placement.  When mcount (-pg) is enabled, the compiler adds additional
code "inside" the function and all bets are off.  The approved mechanism
is to inform the compiler of your constraints on the variables using the
below form:

int foo (int _arg)
    register int arg asm("r0") = _arg;

** Changed in: linux (Ubuntu)
       Status: Incomplete => In Progress

** Changed in: linux (Ubuntu)
   Importance: Undecided => High

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Andy Whitcroft (apw)

** Changed in: linux (Ubuntu)
    Milestone: None => ubuntu-15.01

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  Assembler messages: Error: .err encountered

Status in linux package in Ubuntu:
  In Progress

Bug description:
  $ gcc -Wp,-MD,arch/arm64/kernel/.psci.o.d  -nostdinc -isystem /usr/lib/gcc/aarch64-linux-gnu/4.9/include -I/usr/src/linux-headers-lbm- -I/home/apw/ubuntu-vivid2/arch/arm64/include -Iarch/arm64/include/generated  -I/home/apw/ubuntu-vivid2/include -Iinclude -I/home/apw/ubuntu-vivid2/arch/arm64/include/uapi -Iarch/arm64/include/generated/uapi -I/home/apw/ubuntu-vivid2/include/uapi -Iinclude/generated/uapi -include /home/apw/ubuntu-vivid2/include/linux/kconfig.h -Iubuntu/include -I/home/apw/ubuntu-vivid2/ubuntu/include  -I/home/apw/ubuntu-vivid2/arch/arm64/kernel -Iarch/arm64/kernel -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mgeneral-regs-only -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -gdwarf-4 -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(psci)"  -D"KBUILD_MODNAME=KBUILD_STR(psci)" -c -o arch/arm64/kernel/.tmp_psci.o /home/apw/ubuntu-vivid2/arch/arm64/kernel/psci.c
  /tmp/ccEayz7S.s: Assembler messages:
  /tmp/ccEayz7S.s:41: Error: .err encountered
  /tmp/ccEayz7S.s:42: Error: .err encountered
  /tmp/ccEayz7S.s:43: Error: .err encountered
  /tmp/ccEayz7S.s:101: Error: .err encountered
  /tmp/ccEayz7S.s:102: Error: .err encountered
  /tmp/ccEayz7S.s:103: Error: .err encountered

To manage notifications about this bug go to: