[llvm-bugs] [Bug 33586] New: clang fails to compile linux head_32 (integrated-as)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 25 13:28:04 PDT 2017


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

            Bug ID: 33586
           Summary: clang fails to compile linux head_32 (integrated-as)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dima at golovin.in
                CC: llvm-bugs at lists.llvm.org

Created attachment 18708
  --> https://bugs.llvm.org/attachment.cgi?id=18708&action=edit
original .S

Clang does not compile the linux head_32 on x86 when integrated-as (on by
default)  is used.

Latest LLVM source and Linux source were used.

Example error:
clang -Wp,-MD,arch/x86/kernel/.head_32.o.d  -nostdinc -isystem
/opt/build/ngtc-master/x86_64-pc-linux-musl/lib/clang/5.0.0/include
-I./arch/x86/include -I./arch/x86/include/generated/uapi
-I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi
-I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h
-D__KERNEL__ -Qunused-arguments -D__ASSEMBLY__ -fno-PIE -m32 -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1
-DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1
-DCONFIG_AS_SHA256_NI=1   -c -o arch/x86/kernel/head_32.o
arch/x86/kernel/head_32.S
<instantiation>:7:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:14:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:21:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:28:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:35:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:42:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:49:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:56:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:63:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:70:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:77:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:84:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:91:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:98:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:105:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:112:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:119:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:126:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:133:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:140:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:147:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:154:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:161:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:168:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:175:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:182:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:189:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:196:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:203:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:210:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:217:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^
<instantiation>:224:8: error: expected absolute expression
 .fill early_idt_handler_array + i*9 - ., 1, 0xcc
       ^

The head_32.S and preprocessed .i is attached. 

This blocks the meta-bug 4068.

I copied the report formatting from bug 24487 because of similar nature of the
bug. I hope it is okay.

-- 
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/20170625/8e1b41dd/attachment.html>


More information about the llvm-bugs mailing list