[LLVMdev] llvm-test portability failures

Jeff Cohen jeffc at jolt-lang.org
Wed Nov 17 08:20:07 PST 2004


I updated my source tree and after putting malloc.h back things look a lot better.  Still getting a large number of JIT-only failures.  There is now only one assertion failure:

/home/cfe/x86/llvm-gcc/bin/g++ -I/usr/home/llvm/obj/projects/llvm-test/MultiSource/Benchmarks/Prolangs-C++/city -I/usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C++/city -I/usr/home/llvm/obj/include -I/usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/include -I../../../../include -I/usr/home/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2 -Wall -S /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C++/city/vehicle.cpp -o Output/vehicle.ll
/usr/home/llvm/obj/tools/Debug/gccas -disable-opt Output/vehicle.ll -o Output/vehicle.rbc
/usr/home/llvm/obj/tools/Debug/gccld -link-as-library -disable-opt Output/check_functions.rbc Output/direction.rbc Output/intersection.rbc Output/light.rbc Output/main.rbc Output/roadlet.rbc Output/vehicle.rbc -o Output/city.linked.rbc
/usr/home/llvm/obj/tools/Debug/llvm-dis Output/city.linked.rbc -o Output/city.linked.rll -f
/usr/home/llvm/obj/tools/Debug/gccas  Output/city.linked.rll -o Output/city.linked.bc
/usr/home/llvm/obj/tools/Debug/gccld -L/usr/home/cfe/x86/llvm-gcc/bin/../lib/gcc/i386-unknown-freebsd5.3/3.4-llvm/ -L/home/cfe/x86/llvm-gcc/lib  Output/city.linked.bc -lc -lm -lcrtend -o Output/city.llvm
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /usr/home/llvm/obj/../include/llvm/Support/Casting.h, line 197.
gmake[4]: *** [Output/city.llvm.bc] Abort trap (core dumped)

The only place trying to include alloca.h is:

/usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/SingleSource/Regression/C/2004-08-12-InlinerAndAllocas.c:4:20: alloca.h: No such file or directory

The errors below still occur (I removed the others).

On Tue, 16 Nov 2004 23:33:01 -0800
Jeff Cohen <jeffc at jolt-lang.org> wrote:

> Ignore the missing malloc.h errors.  I screwed up badly.  I was undoing my alloca.h hack and removed the wrong file.
> 
> On Tue, 16 Nov 2004 23:29:43 -0800
> Jeff Cohen <jeffc at jolt-lang.org> wrote:
> 
> > After going through 17000+ lines of output, I come up with the following...
> > 
> > ===========================================
> > 
> > In file included from /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp:26:
> > /usr/include/sys/timeb.h:43: error: `time_t' does not name a type
> > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp: In function `int getTime()':
> > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/hexxagon/hexxagonmove.cpp:89: error: 'struct timeb' has no member named 'time'
> > 
> > ===========================================
> > 
> > In file included from /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/obsequi/globals.h:5,
> >                  from /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/obsequi/display.c:3:
> > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Applications/obsequi/utils.h:10:22: features.h: No such file or directory
> > 
> > A huge number of errors follows this, but they appear to be consequences of this error.
> > 
> > /usr/home/llvm/obj/projects/llvm-test/../../../projects/llvm-test/MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c:116: error: conflicting types for 'setprogname'
> > /usr/home/cfe/x86/llvm-gcc/bin/../lib/gcc/i386-unknown-freebsd5.3/3.4-llvm/include/stdlib.h:283: error: previous declaration of 'setprogname'




More information about the llvm-dev mailing list