Bugzilla – Bug 72
[build problem] Callgraph.cpp not pulled in from libipa.a
Last modified: 2003-10-30 10:19:36
You need to log in before you can comment on or make changes to this bug.
Something is seriously wrong with the way gccas and gccld are being linked on Mac OS X. For example, even though we link in libipa.a, the CallGraph analysis and corresponding RegisterAnalysis object is not being linked into the final gccas binary, so "gccas -o=foo < /dev/null" results in an assertion failure when PruneEH, a CallGraphSCCPass, tries to do an addRequired<CallGraph>(): /Users/brg/llvm/include/llvm/PassAnalysisSupport.h:47: failed assertion `Pass::getClassPassInfo<PassClass>() && "Pass class not registered!"' The workaround is to link in too much stuff on purpose. For example, with gccas add "ipa datastructure" instead of "ipa.a" to USEDLIBS in gccas/Makefile.
Try these patches: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008981.html http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008982.html If this fixes the problem, let me know and I'll close the bug. Thanks! -Chris
wow, I thought for sure I had something weird to show you tomorrow morning. :-P It looks like that fixed it though. Thanks!!
Just changing the subject line to be more "citable" in release notes.