<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - error: invalid instruction mnemonic 'local'"
href="https://bugs.llvm.org/show_bug.cgi?id=49199">49199</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error: invalid instruction mnemonic 'local'
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pmenzel+bugs.llvm.org@molgen.mpg.de
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24533" name="attach_24533" title="Kconfig configuration for ASRock E350M1">attachment 24533</a> <a href="attachment.cgi?id=24533&action=edit" title="Kconfig configuration for ASRock E350M1">[details]</a></span>
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
^
```</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>