On Tue, Sep 2, 2008 at 12:08 PM, John Regehr <regehr at cs.utah.edu> wrote:> I get the error below (and have for a couple weeks now) when trying to > build llvm-gcc on Ubuntu Feisty. In the meantime, on Ubuntu Gutsy, > everything has been building fine. Both are release builds for x86.I've seen this error too with gcc version 4.1.2 20070626 (Red Hat 4.1.2-14). I do not see it with gcc version 3.4.6 20060404 (Red Hat 3.4.6-9). Also, if you use the Debug build (--enable-checking does not currently select the LLVM debug build to link into llvm-gcc, so you have to set this manually), I do not see the error, only the Release build. valgrind seems clean on the Release build. Andrew> > John > > > cc1: StringMap.cpp:177: void > llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V => V2 && "Didn't find key?"' failed. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
> I've seen this error too with gcc version 4.1.2 20070626 (Red Hat 4.1.2-14). > I do not see it with gcc version 3.4.6 20060404 (Red Hat 3.4.6-9).Right-- Ubuntu Feisty also uses 4.1.2, and fails to build LLVM. The newer Ubuntu uses 4.2.something and compiles LLVM cleanly. John
Just to confirm that gcc-4.1.2 is the problem (as opposed to libc or whatever) I can build a release version of llvm-gcc just fine on Ubuntu Feisty using gcc-4.3.2. So either some undefined behavior snuck into llvm that only manifests on this compiler, or else 4.1.2 is miscompiling something. John>> I've seen this error too with gcc version 4.1.2 20070626 (Red Hat 4.1.2-14). >> I do not see it with gcc version 3.4.6 20060404 (Red Hat 3.4.6-9). > > Right-- Ubuntu Feisty also uses 4.1.2, and fails to build LLVM. > > The newer Ubuntu uses 4.2.something and compiles LLVM cleanly. > > John > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >