[LLVMdev] which g++ to compile LLVM CVS on Linux/AMD64?

Basile STARYNKEVITCH basile at starynkevitch.net
Thu May 3 09:41:52 PDT 2007


Le Thu, May 03, 2007 at 09:36:22AM -0700, Chris Lattner écrivait/wrote:
> On Thu, 3 May 2007, Basile STARYNKEVITCH wrote:
> >
> 
> > FWIW, the latest gcc snapshot from yesterday gcc version 4.3.0 20070501
> > (experimental) fail to compile latest LLVM (with compile errors!).
> 
> Please file an llvm bug report with these errors.  It may be that we are 
> doing something illegal in C++  that is only now getting caught.  If the 
> source is valid and G++ is incorrectly complaining, please file a bug 
> against GCC.
> 

I'm sorry to reply on the list (but I failed even waiting 15 minutes to get
a mailed password from the LLVM bugzilla system).


With the latest CVS and with ./configure CXX=g++-snap where 
g++-snap is yesterday's GCC trunk :
g++-snap -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --disable-multilib --program-suffix=-snap --enable-languages=c,c++
Thread model: posix
gcc version 4.3.0 20070501 (experimental)

I am getting the following errors

llvm[1]: Building Debug Archive Library libLLVMSystem.a
make[1]: Leaving directory `/usr/src/Lang/llvm/lib/System'
make[1]: Entering directory `/usr/src/Lang/llvm/lib/Support'
llvm[1]: Compiling APInt.cpp for Debug build
In file included from /usr/src/Lang/llvm/include/llvm/Type.h:14,
                 from /usr/src/Lang/llvm/include/llvm/DerivedTypes.h:21,
                 from APInt.cpp:17:
/usr/src/Lang/llvm/include/llvm/AbstractTypeUser.h:19:51: error: missing terminating ' character
In file included from APInt.cpp:16:
/usr/src/Lang/llvm/include/llvm/ADT/APInt.h:1041: warning: type qualifiers ignored on function return type
/usr/src/Lang/llvm/include/llvm/ADT/APInt.h:1047: warning: type qualifiers ignored on function return type
In file included from APInt.cpp:17:
/usr/src/Lang/llvm/include/llvm/DerivedTypes.h: In member function 'virtual void llvm::OpaqueType::refineAbstractType(const llvm::DerivedType*, const llvm::Type*)':
/usr/src/Lang/llvm/include/llvm/DerivedTypes.h:412: error: 'abort' was not declared in this scope
/usr/src/Lang/llvm/include/llvm/DerivedTypes.h: In member function 'virtual void llvm::OpaqueType::typeBecameConcrete(const llvm::DerivedType*)':
/usr/src/Lang/llvm/include/llvm/DerivedTypes.h:415: error: 'abort' was not declared in this scope


Hope that this could help someone. I really don't know if it is a bug in GCC
(tuesday's SVN snapshot) or in LLVM (today's CVS snapshot)

Regards.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***



More information about the llvm-dev mailing list