<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 - clang fails to compile linux head_32 (integrated-as)"
href="https://bugs.llvm.org/show_bug.cgi?id=33586">33586</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang fails to compile linux head_32 (integrated-as)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dima@golovin.in
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18708" name="attach_18708" title="original .S">attachment 18708</a> <a href="attachment.cgi?id=18708&action=edit" title="original .S">[details]</a></span>
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-<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - [Meta] Compiling the Linux kernel with clang"
href="show_bug.cgi?id=4068">bug 4068</a>.
I copied the report formatting from <a class="bz_bug_link
bz_status_NEW "
title="NEW - clang fails to compile linux "ALTERNATIVE" (integrated-as)"
href="show_bug.cgi?id=24487">bug 24487</a> because of similar nature of the
bug. I hope it is okay.</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>