[llvm-bugs] [Bug 49199] New: error: invalid instruction mnemonic 'local'

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 15 14:00:14 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49199

            Bug ID: 49199
           Summary: error: invalid instruction mnemonic 'local'
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pmenzel+bugs.llvm.org at molgen.mpg.de
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 24533
  --> https://bugs.llvm.org/attachment.cgi?id=24533&action=edit
Kconfig configuration for ASRock E350M1

[Hopefully I chose the correct product and component.]

Building a coreboot image for the ASRock E350M1, Debian clang version 11.0.1-2
fails with the error below.

```
$ make V=1
[…]
    CC         bootblock/drivers/amd/agesa/cache_as_ram.o
clang -MMD -Isrc -Isrc/include -Isrc/commonlib/include
-Isrc/commonlib/bsd/include -Ibuild -I3rdparty/vboot/firmware/include -include
src/include/kconfig.h -include src/include/rules.h -include
src/commonlib/bsd/include/commonlib/bsd/compiler.h -I3rdparty
-D__BUILD_DIR__=\"build\" -Isrc/soc/amd/common/block/include/
-Isrc/arch/x86/include -Isrc/vendorcode/amd/include
-Isrc/vendorcode/amd/agesa/f14 -Isrc/vendorcode/amd/agesa/f14/../common
-Isrc/vendorcode/amd/agesa/f14/Include -Isrc/mainboard/asrock/e350m1  
-Isrc/southbridge/amd/cimx/sb800 -Isrc/vendorcode/amd/cimx/sb800
-D__ARCH_x86_32__ -pipe -g -nostdinc -std=gnu11 -nostdlib -Wall -Wundef
-Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls
-Wno-trigraphs -Wimplicit-fallthrough -Wshadow -Wdate-time -Wtype-limits -Wvla
-Wdangling-else -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
-fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie -Werror -Os
-target i386-elf -m32 -Wl,-b,elf32-i386 -Wl,-melf_i386 -ccc-gcc-name
x86_64-linux-gnu-gcc -Qunused-arguments -m32 -Wno-unused-variable
-Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow
-Wno-address-of-packed-member -Wno-initializer-overrides -march=i686 -mno-mmx
-march=k8-sse3 -mtune=k8-sse3 -fno-strict-aliasing -MT
build/bootblock/drivers/amd/agesa/cache_as_ram.o -I. -D__BOOTBLOCK__ -c -o
build/bootblock/drivers/amd/agesa/cache_as_ram.o
src/drivers/amd/agesa/cache_as_ram.S
<instantiation>:3:5: error: invalid instruction mnemonic 'local'
    LOCAL SetupStack
    ^~~~~
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:4:5: error: invalid instruction mnemonic 'local'
    LOCAL Real16bMode
    ^~~~~
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:5:5: error: invalid instruction mnemonic 'local'
    LOCAL Protected32Mode
    ^~~~~
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:6:5: error: invalid instruction mnemonic 'local'
    LOCAL ClearTheStack
    ^~~~~
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:1:1: error: invalid instruction mnemonic 'local'
LOCAL node_core_exit
^~~~~
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:2:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f10_exit
    ^~~~~
<instantiation>:4:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F10
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:3:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f10_AP
    ^~~~~
<instantiation>:4:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F10
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:2:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f12_exit
    ^~~~~
<instantiation>:5:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F12
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:2:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f14_exit
    ^~~~~
<instantiation>:6:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F14
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:2:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f15_exit
    ^~~~~
<instantiation>:7:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F15
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:3:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f15_AP
    ^~~~~
<instantiation>:7:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F15
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:4:5: error: invalid instruction mnemonic 'local'
    LOCAL node_core_f15_shared
    ^~~~~
<instantiation>:7:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID_F15
    ^
<instantiation>:13:5: note: while in macro instantiation
    GET_NODE_ID_CORE_ID # Sets ESI[23:16]=Shared core## SI[15,8]= Node##
SI[7,0]= core# (relative to node)
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:1:1: error: invalid instruction mnemonic 'local'
LOCAL fam10_enable_stack_hook_exit
^~~~~
<instantiation>:2:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK_F10
    ^
<instantiation>:50:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:1:1: error: invalid instruction mnemonic 'local'
LOCAL fam12_enable_stack_hook_exit
^~~~~
<instantiation>:3:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK_F12
    ^
<instantiation>:50:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:1:1: error: invalid instruction mnemonic 'local'
LOCAL fam14_enable_stack_hook_exit
^~~~~
<instantiation>:4:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK_F14
    ^
<instantiation>:50:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
<instantiation>:1:1: error: invalid instruction mnemonic 'local'
LOCAL fam15_enable_stack_hook_exit
^~~~~
<instantiation>:5:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK_F15
    ^
<instantiation>:50:5: note: while in macro instantiation
    AMD_ENABLE_STACK_FAMILY_HOOK
    ^
src/drivers/amd/agesa/cache_as_ram.S:35:2: note: while in macro instantiation
 AMD_ENABLE_STACK
 ^
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210215/7aa4c01b/attachment-0001.html>


More information about the llvm-bugs mailing list