[LLVMbugs] [Bug 12522] New: Compilation of compiler-rt fails: weakref declaration must have internal linkage

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 10 13:14:28 PDT 2012


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

             Bug #: 12522
           Summary: Compilation of compiler-rt fails: weakref declaration
                    must have internal linkage
           Product: compiler-rt
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: antoine.deblois at aero.bombardier.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Dear all,

I am trying to compile the llvm suite but the compilation fails at the
compiler-rt step. It fails trying to compile the source
compiler-rt/lib/asan/asan_posix.cc.

I am using Redhat el5 and the gcc version is 4.1.2.
Thank you for your time,
Antoine

The error message is:

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:100:1:
error: weakref declaration must have internal
      linkage
__gthrw(pthread_once)
^
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:81:23:
note: expanded from macro '__gthrw'
#define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)
                      ^
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/x86_64-redhat-linux/bits/gthr-default.h:72:46:
note: expanded from macro '__gthrw2'
  extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \

-- 
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