First Last Prev Next    No search results available
Details
: [build problem] Callgraph.cpp not pulled in from libipa.a
Bug#: 72
: tools
: gccas
Status: RESOLVED
Resolution: FIXED
: Macintosh
: MacOS X
: 1.0
: P2
: normal
: 1.1

:
: build-problem
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Brian R. Gaeke <gaeke+bugs@uiuc.edu>
Assigned To: Brian R. Gaeke <gaeke+bugs@uiuc.edu>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2003-10-29 22:43
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.
------- Comment #1 From Chris Lattner 2003-10-29 23:20:07 -------
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
------- Comment #2 From Brian R. Gaeke 2003-10-29 23:56:43 -------
wow, I thought for sure I had something weird to show you tomorrow morning. :-P

It looks like that fixed it though. Thanks!!
------- Comment #3 From Chris Lattner 2003-10-30 10:18:10 -------
Just changing the subject line to be more "citable" in release notes.

First Last Prev Next    No search results available