[LLVMdev] Just got bitten by accidentally using the wrong gcc
jo at durchholz.org
Fri Mar 21 05:34:55 PDT 2008
Am Freitag, den 21.03.2008, 13:03 +0100 schrieb Duncan Sands:
> Hi Joachim,
> > I have to report that the Ubuntu gcc-4.1 will fail. 'make' would run
> > without giving more than a few warnings, but 'make install' will
> > complain that it doesn't know how to build one of the intermediate
> > targets and error out (some VMCore/tablegen file IIRC, I don't have
> > the log anymore).
> I just did a successful "make" and "make install" using gcc-4.1 on
> gcc version 4.1.3 20080308 (prerelease) (Ubuntu 4.1.2-21ubuntu1)
> I built as follows (I note I'm using a seperate build directory):
> export CC=gcc-4.1
> export CXX=g++-4.1
> ../llvm/configure --prefix=/usr/local
> make && make install
Maybe we're using different architectures?
I'm on the amd64 version of Ubuntu, with multilibs installed.
Either way, it's probably best to just issue warnings. (Assuming there's
any difference between warnings and errors in ./configure.)
(Good thing Ubuntu comes with a 4.2 gcc...)
More information about the llvm-dev