[LLVMbugs] [Bug 14433] New: Firefox doesn't build with -stdlib=libc++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 26 04:04:48 PST 2012


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

             Bug #: 14433
           Summary: Firefox doesn't build with -stdlib=libc++
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: markus at trippelsdorf.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


With CXXFLAGS="-w -stdlib=libc++ -march=native" I get:
...
In file included from /var/tmp/mozilla-central/xpcom/base/nsDebugImpl.cpp:7:
In file included from
/var/tmp/mozilla-central/ipc/chromium/src/base/process_util.h:25:
In file included from ../../dist/stl_wrappers/string:49:
In file included from ../../dist/system_wrappers/string:2:
In file included from /usr/include/c++/v1/string:432:
In file included from ../../dist/stl_wrappers/cstdio:49:
In file included from ../../dist/system_wrappers/cstdio:2:
/usr/include/c++/v1/cstdio:108:8: error: visibility does not match previous
declaration
inline _LIBCPP_INLINE_VISIBILITY int getc(FILE* __stream) {return
__libcpp_getc(__stream);}
       ^
/usr/include/c++/v1/__config:134:51: note: expanded from macro
'_LIBCPP_INLINE_VISIBILITY'
#define _LIBCPP_INLINE_VISIBILITY __attribute__ ((__visibility__("hidden"),
__always_inline__))
                                                  ^
../../dist/system_wrappers/stdio.h:1:13: note: previous attribute is here
#pragma GCC visibility push(default)
            ^

When I add -flto to the CXXFLAGS everything builds just fine 
(,but then it takes ~20 minutes to build libxul on my machine).

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