[LLVMbugs] [Bug 16785] New: libXaw6 fails to build with -march=atom

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 4 01:24:20 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16785

            Bug ID: 16785
           Summary: libXaw6 fails to build with -march=atom
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: aymeric at kuri.mu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 http://llvm.org/bugs/
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

-- 
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/20130804/5a21563e/attachment.html>


More information about the llvm-bugs mailing list