[LLVMbugs] [Bug 3869] New: Assertion failed when compiling Ruby 1.9.1-p0 on FreeBSD
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Mar 24 04:02:58 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3869
Summary: Assertion failed when compiling Ruby 1.9.1-p0 on FreeBSD
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: major
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: roberto at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Using llvm from trunk at revision 67301.
clang version 1.0 based upon llvm 2.6svn hosted on amd64-portbld-freebsd7.1
Using clang-driver to compile Ruby 1.9.1-p0 from ports (lang/ruby19), I get
this while compiling vm.c:
clang-driver -O -pipe -O2 -g -Wall -Wno-parentheses -fPIC -I.
-I.ext/include/amd64-freebsd7 -I./include -I. -DRUBY_EXPORT -o vm.o -c vm.c
In file included from vm.c:16:
./vm_core.h:542:4: warning: 'fastcall' attribute only applies to function types
(FUNC_FASTCALL(*rb_insn_func_t))(rb_thread_t *, rb_control_frame_t *);
^
.ext/include/amd64-freebsd7/ruby/config.h:53:42: note: instantiated from:
#define FUNC_FASTCALL(x) __attribute__ ((fastcall)) x
^
Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal PtrToInt"),
function PtrToIntInst, file Instructions.cpp, line 2463.
Stack dump:
0. Program arguments: /local/local/bin/clang -S -disable-free
--relocation-model pic --disable-fp-elim --unwind-tables=1 --fmath-errno=1
-DRUBY_EXPORT -I. -I.ext/include/amd64-freebsd7 -I./include -I. -g -O1 -arch
x86_64 -o /tmp/cc-yeUTWQ.s -x c vm.c
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. ./vm_exec.c:39:1: LLVM IR generation of compound statement ('{}')
*** Error code 250
Stop in /data/work/obj/data/work/ports/lang/ruby19/work/ruby-1.9.1-p0.
sed: /data/work/obj/data/work/ports/lang/ruby19/work/ruby-1.9.1-p0/rbconfig.rb:
No such file or directory
*** Error code 1
Stop in /data/work/ports/lang/ruby19.
*** Error code 1
Stop in /data/work/ports/lang/ruby19.
I get the same error using the ruby 1.9/trunk
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list