[LLVMdev] LLVM on OpenBSD
Edd Barrett
vext01 at gmail.com
Thu Jun 26 07:17:24 PDT 2008
Hi guys,
Edd Barrett wrote:
> Hi there,
>
> I am a student considering a compiler design based dissertation with
> llvm. I am having problems building llvm on OpenBSD-current. I hope to
> make a port of llvm for OpenBSD once I have figured out how to build
> it.
We still have not had any luck building llvm. Since last time, we have
rebuilt gcc with -O0 incase of gcc optimisation bugs to no avail.
I believe Andrew stress tested our gcc-3.3.5 by building itself many
times over. What wer the results Andrew? FWIW gcc-4.2 shows the same
error as 3.3.5 (see below).
Here is a backtrace (courtesy of Andrew) of the tblgen run, which aborts
about 50% of the time when it feels like it:
#1 0x04e521a3 in abort () at /usr/src/lib/libc/stdlib/abort.c:68
#2 0x04df29d7 in __assert2 (file=0x3c0018e1 "CodeGenDAGPatterns.cpp",
line=934, func=0x3c0020a6 "ApplyTypeConstraints",
failedexpr=0x3c002400
"getOperator()->isSubClassOf(\"SDNodeXForm\") && \"Unknown node
type!\"") at /usr/src/lib/libc/gen/assert.c:52
#3 0x1c0d0bcd in llvm::TreePatternNode::ApplyTypeConstraints
(this=0x7dfc0700, TP=@0x7c0fb6c0, NotRegisters=false) at
CodeGenDAGPatterns.cpp:934
#4 0x1c0cfb6b in llvm::TreePatternNode::ApplyTypeConstraints
(this=0x7dfc0740, TP=@0x7c0fb6c0, NotRegisters=false) at
CodeGenDAGPatterns.cpp:829
#5 0x1c0cfb6b in llvm::TreePatternNode::ApplyTypeConstraints
(this=0x7c0fb7c0, TP=@0x7c0fb6c0, NotRegisters=false) at
CodeGenDAGPatterns.cpp:829
#6 0x1c0d407c in llvm::TreePattern::InferAllTypes (this=0x7c0fb6c0)
at CodeGenDAGPatterns.cpp:1182
#7 0x1c0d66ac in llvm::CodeGenDAGPatterns::ParsePatternFragments
(this=0xcfbd1330) at CodeGenDAGPatterns.cpp:1368
#8 0x1c0d47b9 in CodeGenDAGPatterns (this=0xcfbd1330, R=@0x3c04465c)
at CodeGenDAGPatterns.cpp:1225
#9 0x1c174c65 in DAGISelEmitter (this=0xcfbd1328, R=@0x3c04465c) at
DAGISelEmitter.h:30
#10 0x1c173e40 in main (argc=11, argv=0xcfbd15a4) at TableGen.cpp:178
(I believe Andrew added a line to insert a breakpoint for gdb in the
above backtrace)
gmake[3]: Entering directory
`/usr/ports/devel/llvm/w-llvm-2.3/llvm-2.3/lib/Target/ARM'
llvm[3]: Building ARM.td register information header with tblgen
llvm[3]: Building ARM.td register names with tblgen
llvm[3]: Building ARM.td register info implementation with tblgen
llvm[3]: Building ARM.td instruction names with tblgen
llvm[3]: Building ARM.td instruction information with tblgen
assertion "getOperator()->isSubClassOf("SDNodeXForm") && "Unknown node
type!"" failed: file "CodeGenDAGPatterns.cpp", line 934, function
"ApplyTypeConstraints"
gmake[3]: ***
[/usr/ports/devel/llvm/w-llvm-2.3/llvm-2.3/lib/Target/ARM/Debug/ARMGenInstrInfo.inc.tmp]
Abort trap (core dumped)
Does this shed any light on the situation?
Thanks
More information about the llvm-dev
mailing list