Chris Lattner
2006-Mar-15 02:27 UTC
[LLVMdev] Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
>> Sorry for the delay, please try this tarball: >> http://nondot.org/sabre/2006-03-02-llvm-gcc-4.tar.gz > > There's some confusion with --enable-llvm configure parameter. I've built > LLVM to a separate build dir. The source is ~ghost/Work/llvm-cvs and build > dir is /space/p2/ghost/build/llvm-cvs...> So, it seems like, at the same time: > > 1. buildir != srcdir is not supported when building frontend > 2. building the frontend against installed LLVM does not work either.Correct. I currently only build the front-end against a built, but not installed, LLVM tree with srcdir = objdir. If you would like to tackle this problem and propose a patch, I would be happy to apply it, but I have other projects to work on now :)> Then, I'm faced with yet another problem, sorry! The problem is: > > incompatible pointer type > Invalid operand found in inline asm: 'call .LPR0...> This time, I don't even understand what I'm told. Note that cc1plus is > already built by the time this error is emitted. > Can you suggest something?Here's a new snapshot of the front-end: http://nondot.org/sabre/2006-03-14-llvm-gcc-4.tar.gz This: 1. Fixes the inline asm problem you have above. 2. Includes patches to make it better on Alpha's (thanks to patches by Andrew Lenharth). 3. Sync's it up with debug info changes in LLVM CVS (by Jim Laskey). 4. Has initial support for target-specific intrinsics, through Intrinsics.td. Please give it a try and let me know if it works any better for you! -Chris -- http://nondot.org/sabre/ http://llvm.org/
Vladimir Prus
2006-Mar-15 07:54 UTC
[LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Chris Lattner wrote:> Here's a new snapshot of the front-end: > http://nondot.org/sabre/2006-03-14-llvm-gcc-4.tar.gz > > This: > > 1. Fixes the inline asm problem you have above. > 2. Includes patches to make it better on Alpha's (thanks to patches by > Andrew Lenharth). > 3. Sync's it up with debug info changes in LLVM CVS (by Jim Laskey). > 4. Has initial support for target-specific intrinsics, through > Intrinsics.td. > > Please give it a try and let me know if it works any better for you!Here we go: /space/p2/ghost/build/llvm-frontend/gcc/xgcc -B/space/p2/ghost/build/llvm-frontend/gcc/ -B/space/p2/ghost/build/llvm-frontend/install/i686-pc-linux-gnu/bin/ -B/space/p2/ghost/build/llvm-frontend/install/i686-pc-linux-gnu/lib/ -isystem /space/p2/ghost/build/llvm-frontend/install/i686-pc-linux-gnu/include -isystem /space/p2/ghost/build/llvm-frontend/install/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../2006-03-14-llvm-gcc-4/gcc -I../../2006-03-14-llvm-gcc-4/gcc/. -I../../2006-03-14-llvm-gcc-4/gcc/../include -I../../2006-03-14-llvm-gcc-4/gcc/../libcpp/include -I/space/p2/ghost/build/llvm-cvs/include -DL_fixunsxfdi -fvisibility=hidden -DHIDE_EXPORTS -c ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c -o libgcc/./_fixunsxfdi.o cc1: /space/p2/ghost/build/llvm-cvs/include/llvm/Instructions.h:72: void llvm::AllocationInst::setAlignment(unsigned int): Assertion `(Align & (Align-1)) == 0 && "Alignment is not a power of 2!"' failed. ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c: In function '__fixunsxfdi': ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c:1205: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. The preprocessed source will be send by private email. - Volodya
Chris Lattner
2006-Mar-15 18:01 UTC
[LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
On Wed, 15 Mar 2006, Vladimir Prus wrote:>> Please give it a try and let me know if it works any better for you! > > Here we go:Wow, you are good at finding problems! Thanks!> -fvisibility=hidden -DHIDE_EXPORTS > -c ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c -o libgcc/./_fixunsxfdi.o > cc1: /space/p2/ghost/build/llvm-cvs/include/llvm/Instructions.h:72: void > llvm::AllocationInst::setAlignment(unsigned int): Assertion `(Align & > (Align-1)) == 0 && "Alignment is not a power of 2!"' failed. > ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c: In function '__fixunsxfdi': > ../../2006-03-14-llvm-gcc-4/gcc/libgcc2.c:1205: internal compiler error: > Aborted > Please submit a full bug report, > with preprocessed source if appropriate.I can't reproduce this on darwin-ppc or darwin-x86, so this is a stab in the dark. Can you try this patch: ==================================================================--- i386.h (revision 112156) +++ i386.h (working copy) @@ -764,7 +764,13 @@ extern int x86_prefetch_sse; /* target machine storage layout */ +/* APPLE LOCAL begin LLVM */ +#ifdef ENABLE_LLVM +#define LONG_DOUBLE_TYPE_SIZE 64 +#else #define LONG_DOUBLE_TYPE_SIZE 80 +#endif +/* APPLE LOCAL end LLVM */ /* Set the value of FLT_EVAL_METHOD in float.h. When using only the FPU, assume that the fpcw is set to extended precision; when using Applied to gcc/gcc/config/i386/i386.h If that doesn't help, please send me a stack trace of the crash. To do this, pass -v to the failing GCC command line, then debug the cc1 invocation. In addition, please go up to the first stack frame with a GCC tree, and 'call debug_tree(exp)' on it from within GDB. That will help me understand what is going on. Thanks, sorry this is taking so many iterations. :( -Chris -- http://nondot.org/sabre/ http://llvm.org/
Possibly Parallel Threads
- [LLVMdev] Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
- [LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
- [LLVMdev] Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
- [LLVMdev] problem building gcc4 front end on fedora core 5
- [LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM