This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/69762] New: Locales are not fully supported on x86_64-apple-darwin13.4.0
- From: "physiker at toast2 dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Feb 2016 00:18:36 +0000
- Subject: [Bug libstdc++/69762] New: Locales are not fully supported on x86_64-apple-darwin13.4.0
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69762
Bug ID: 69762
Summary: Locales are not fully supported on
x86_64-apple-darwin13.4.0
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: physiker at toast2 dot net
Target Milestone: ---
Created attachment 37661
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37661&action=edit
Preprocessed source file
Locales are not fully supported on x86_64-apple-darwin13.4.0. Imbueing
the German locale, de_DE, on cout causes an exception (io
trap). Imbueing locales does work on linux or when the code is
compiled with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM
3.5svn), the system compiler.
t.cpp
--------------------------------------------------------------------------------
#include <iostream>
#include <locale>
using namespace std;
int main()
{
cin.imbue(locale::classic());
cout.imbue(locale("de_DE"));
}
--------------------------------------------------------------------------------
g++-6 -v -o t t.cpp -W -Wall -save-temps
Using built-in specs.
COLLECT_GCC=g++-6
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto-wrapper
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-6
Thread model: posix
gcc version 6.0.0 20160206 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps'
'-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1plus -E -quiet -v
-D__DYNAMIC__ t.cpp -fPIC -mmacosx-version-min=10.9.4 -mtune=core2 -Wextra
-Wall -fpch-preprocess -o t.ii
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../x86_64-apple-darwin13.4.0/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0/x86_64-apple-darwin13.4.0
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../include/c++/6.0.0/backward
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include
/usr/local/include
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include-fixed
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps'
'-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1plus -fpreprocessed
t.ii -fPIC -quiet -dumpbase t.cpp -mmacosx-version-min=10.9.4 -mtune=core2
-auxbase t -Wextra -Wall -version -o t.s
GNU C++ (GCC) version 6.0.0 20160206 (experimental) (x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160206 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++14 (GCC) version 6.0.0 20160206 (experimental)
(x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160206 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 9f635aba77583826cdf82547a307ad49
COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps'
'-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
as -arch x86_64 -force_cpusubtype_ALL -o t.o t.s
COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../
COLLECT_GCC_OPTIONS='-v' '-o' 't' '-Wextra' '-Wall' '-save-temps'
'-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/collect2 -dynamic -arch
x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches non-weak -o t
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. t.o -lstdc++
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 6.0.0 20160206 (experimental)
/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.9.4
-weak_reference_mismatches non-weak -o t
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. t.o -lstdc++
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7m armv7em
Library search paths:
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
/usr/local/lib
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/usr/bin/nm -n t.o
--------------------------------------------------------------------------------
bash-3.2$ ./t
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Abort trap: 6