[LLVMdev] Linking Errors?

Kevin Gibbs ktgibbs at uiuc.edu
Thu Dec 11 00:32:01 PST 2003


> -----Original Message-----
> From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu] On
> Behalf Of Brian R. Gaeke
> Sent: Tuesday, December 09, 2003 10:19 PM
> To: Kevin Gibbs
> Cc: 'Reid Spencer'; llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] Linking Errors?
> 
> > Ok that works but why on earth would I get a runtime error of:
> >
> > Type.cpp:132: const llvm::Type* llvm::Type::getForwardedTypeInternal()
> > const: Assertion `ForwardType && "This type is not being forwarded to
> > another type!"' failed.
> > Aborted
> >
> > For the line of code:
> >
> > MyModule = new Module( std::string("IDontWork"));
> 
> I was getting these recently when we made the switch from -fshort-enums
> to -fno-short-enums in the toplevel Makefile.  The solution is to
> blow *everything* away with a "gmake clean" and rebuild -- basically,
> -fshort-enums and -fno-short-enums code do not mix.

Thanks that was the problem... I guess I should heed the warnings about
updating from CVS. Could not understand what had changed on me.

Kevin




More information about the llvm-dev mailing list