<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - libXaw6 fails to build with -march=atom"
href="http://llvm.org/bugs/show_bug.cgi?id=16785">16785</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libXaw6 fails to build with -march=atom
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>aymeric@kuri.mu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>x11-toolkits/libXaw builds fine on an atom (330) machine running FreeBSD
10.0-CURRENT r253884.
However when using the flag -march=atom, it fails with the following error:
gmake[4]: Entering directory
`/usr/ports/x11-toolkits/libXaw/work/libXaw-1.0.11/src'
CC libXaw6_la-Box.lo
Unexpected register
UNREACHABLE executed at
/usr/src/lib/clang/libllvmx86codegen/../../../contrib/llvm/lib/Target/X86/X86RegisterInfo.cpp:655!
Stack dump:
0. Program arguments: /usr/bin/cc -cc1 -triple x86_64-unknown-freebsd10.0
-emit-obj -disable-free -main-file-name Box.c -mrelocation-model pic -pic-level
2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu atom -coverage-file
/usr/ports/x11-toolkits/libXaw/work/libXaw-1.0.11/src/.libs/libXaw6_la-Box.o
-resource-dir /usr/bin/../lib/clang/3.3 -dependency-file
.deps/libXaw6_la-Box.Tpo -sys-header-deps -MP -MT libXaw6_la-Box.lo -D
HAVE_CONFIG_H -D PROJECT_ROOT="/usr/local" -D OLDXAW -D _THREAD_SAFE -D PIC -I
. -I .. -I ../include -I /usr/local/include -O2 -Wall -Wpointer-arith
-Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes
-Wnested-externs -Wbad-function-cast -Wold-style-definition
-Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual
-Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls
-Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main
-Werror=missing-braces -Werror=sequence-point -Werror=return-type
-Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fdebug-compilation-dir
/usr/ports/x11-toolkits/libXaw/work/libXaw-1.0.11/src -ferror-limit 19
-fmessage-length 116 -mstackrealign -fobjc-runtime=gnustep
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o .libs/libXaw6_la-Box.o
-x c Box.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'Box.c'.
4. Running pass 'X86 Assembly / Object Emitter' on function '@DoLayout'
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to <a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a>
and include the crash backtrace, preprocessed source, and associated run
script.
cc: note: diagnostic msg:
//////
Box-xdQTxQ.sh:
/usr/bin/cc -cc1 -triple x86_64-unknown-freebsd10.0 -emit-obj -disable-free
-main-file-name Box.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu atom -sys-header-deps -D "HAVE_CONFIG_H" -D
""PROJECT_ROOT=\"/usr/local\""" -D "OLDXAW" -D "_THREAD_SAFE" -D "PIC" -O2
-Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wbad-function-cast
-Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized
-Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute
-Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self
-Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type
-Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -ferror-limit 19
-fmessage-length 116 -mstackrealign -fobjc-runtime=gnustep
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -x c Box-xdQTxQ.c
//////
Box-xdQTxQ.c attached</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>