[LLVMbugs] [Bug 72] New: gccas/ld silent link failure leads to crash

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Wed Oct 29 20:43:18 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=72

           Summary: gccas/ld silent link failure leads to crash
           Product: tools
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gccas
        AssignedTo: gaeke+bugs at uiuc.edu
        ReportedBy: gaeke+bugs at uiuc.edu


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.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list