[LLVMdev] successfully bootstraped on a i686-linux-gnu
xianai at gmail.com
Sun Apr 30 20:20:34 PDT 2006
I recently bootstrapped gcc4 frontend on a i686-linux-gnu too.
As I notice, if the llvm "tools-only " was build with srcdir != objdir ,
the building of llvm-gcc4-1.7.source encountered mistakes of unable to find some header files.
So I just edited llvm-gcc4-1.7.source/gcc/Makefile.in and a line like this:
INCLUDES += -I$(LLVMOBJDIR)/include
With this change, the building errors were gone.
Is this the right hack? Thanks.
On Friday 28 April 2006 08:05, Chris Lattner wrote:
> On Fri, 21 Apr 2006, [UTF-8] Rafael Esp?ndola wrote:
> > To work aroud the problem I edited gcc/objc/config-lang.in and removed
> > the comment from the line
> > #target_libs=target-libobjc
> > With this change it is again possible to build without objc. The
> > complete configure line was
> > ../llvm-gcc4-1.7.source/configure --prefix=$CFEINSTALL
> > --enable-languages=c,c++ --program-prefix=llvm-
> > --enable-llvm=/home/rafael/dev/obj/ --enable-checking
> This is the right fix, thanks! I've applied it to the main llvmgcc tree.
More information about the llvm-dev