[cfe-dev] [libcxx]chrono:397:19: error: binding of reference to type 'long long' to a value of type 'const long long'

Howard Hinnant hhinnant at apple.com
Wed Jul 4 19:47:50 PDT 2012


On Jul 4, 2012, at 10:33 PM, soaliap wrote:

> I compiled libcxx on Linux( RHEL6, X86_64).
> 
> And another question:
>  Under the libcxx/tags directory, which is the newest release version of
> libcxx, libcpp-31 or RELEASE_30/final?

libcxx does not have a formal release mechanism.  These are tags Apple has used for internal tagging.  That being said, using the svn list -v command it appears that libcpp-31 is dated 2011-07-24 and RELEASE_30/final is dated 2011-11-28.

Churn on libcxx is very low for now, and I make a personal attempt to ensure that tip-of-trunk is always in a "shippable" state.  If other platforms have the need to tag at certain times, I have no objection to that.

I am not familiar with the Linux port of libc++.  However I'm aware that people have been working on it.  Jeffrey Yasskin and Richard Smith are two likely suspects on this list which might have more information for you. :-)

The latest commit I see related to Linux is by Richard Smith:

-----------

Author: rsmith
Date: Wed Apr 18 20:36:12 2012
New Revision: 155091

URL: http://llvm.org/viewvc/llvm-project?rev=155091&view=rev
Log:
libc++: only #include <cxxabi.h> if it exists. This allows libc++ to build
out of the box on Linux systems. If you're building against libc++abi, you
still need to make sure it can find <cxxabi.h> so it knows not to export
symbols which libc++abi provides.

Modified:
   libcxx/trunk/src/stdexcept.cpp

Modified: libcxx/trunk/src/stdexcept.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/stdexcept.cpp?rev=155091&r1=155090&r2=155091&view=diff
==============================================================================
--- libcxx/trunk/src/stdexcept.cpp (original)
+++ libcxx/trunk/src/stdexcept.cpp Wed Apr 18 20:36:12 2012
@@ -15,7 +15,11 @@
#include <cstdint>
#include <cstddef>
#include "system_error"
+
+// Use <cxxabi.h> to determine whether we're linking against libc++abi.
+#if __has_include(<cxxabi.h>)
#include <cxxabi.h>
+#endif

// Note:  optimize for size

-----------

Howard




More information about the cfe-dev mailing list