[LLVMbugs] [Bug 4617] New: MSIL backend build failure under gcc 4.4

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jul 24 15:15:23 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4617

           Summary: MSIL backend build failure under gcc 4.4
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: nicholas at mxc.ca
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu


lib/Target/MSIL/MSILWriter.h contains an anonymous namespace. This header is
included by both MSILWriter.cpp and TargetInfo/MSILTargetInfo.cpp.

With GCC 4.4, TargetInfo/MSILTargetInfo.cpp generates a .o file that includes
undefined symbols for all of the class methods. Since those are never defined
in MSILTargetInfo.cpp, they can never be resolved and we get an undefined
symbol error at link time. (For reference, GCC 4.2 never generates bothers to
emit undef symbols because they're never mentioned outside the declaration.)

The minimal fix is to remove the anonymous namespace in the header, putting the
class declarations into the global space, but we can almost certainly do
something smarter.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list