xlocale patch

David Chisnall theraven at theravensnest.org
Tue Sep 20 19:17:43 UTC 2011


Ooops, I forgot I uninstalled the subversion-freebsd package and installed subversion to work on libc++ (it would be really nice if these two could coexist, by the way...).

The updated version of the diff now passes all of the libc++ locale tests (309 files, multiple tests in each), with my copy of libc++.  I've just pushed the exception handling bits required to support std::exception_ptr to libcxxrt, so we can now build a mostly-working BSD licensed C++ stack.

For anyone that's interested, the full results of the libc++ test suite are here:

http://pastebin.com/UCskvjCv

For those two lazy to click on a link, here's the summary:

****************************************************
Results for /root/libcxx/test:
using FreeBSD clang version 3.0 (trunk 135360) 20110717
Target: x86_64-unknown-freebsd9.0
Thread model: posix
with -std=c++0x -stdlib=libc++ -I/root/libcxx/include -L/root/libcxx/build/lib
----------------------------------------------------
sections without tests   : 1
sections with failures   : 48
sections without failures: 1015
                       +   ----
total number of sections : 1064
----------------------------------------------------
number of tests failed   : 145
number of tests passed   : 4179
                       +   ----
total number of tests    : 4324
****************************************************

The <atomic> tests all fail because the version of clang in the base system doesn't support the cxx_atomic builtins.  Not sure when these were added, but a lot of those failures should go away with a newer clang.  

Quite a few of the remaining failures are due to system headers not being C++11-aware (i.e. most of the c99 stuff should be exposed in c++11 mode).

A few tests fail when creating locales because FreeBSD doesn't have locales like en_US or fr_FR (with no encoding specified), while Darwin does (and also has locales like fr and en).  I've fixed all of the tests in the localization part of the test suite to fully specify the locale.  

David

On 19 Sep 2011, at 18:22, Ed Schouten wrote:

> Hi David,
> 
> Can you please regenerate the patch using `diff -I '$FreeBSD'` or
> something? There are a lot of changes to $FreeBSD$ lines that will
> likely make it hard to apply the patch to most checkouts.
> 
> Thanks,
> -- 
> Ed Schouten <ed at 80386.nl>
> WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xlocale.diff
Type: application/octet-stream
Size: 321759 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110920/e666632c/xlocale-0001.obj


More information about the freebsd-hackers mailing list