From: Jonathan Wakely Date: Mon, 18 Sep 2023 11:14:15 +0000 (+0100) Subject: libstdc++: Minor update to installation docs X-Git-Tag: basepoints/gcc-15~6047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12755fe40b2474554a01815b18c6b9956a513137;p=thirdparty%2Fgcc.git libstdc++: Minor update to installation docs libstdc++-v3/ChangeLog: * doc/xml/manual/intro.xml: Clarify that building libstdc++ separately from GCC is not supported. * doc/xml/manual/prerequisites.xml: Note msgfmt prerequisite for testing. * doc/html/manual/setup.html: Regenerate. --- diff --git a/libstdc++-v3/doc/html/manual/setup.html b/libstdc++-v3/doc/html/manual/setup.html index f27b8d806df7..1963cdf695a9 100644 --- a/libstdc++-v3/doc/html/manual/setup.html +++ b/libstdc++-v3/doc/html/manual/setup.html @@ -2,11 +2,11 @@ Chapter 2. Setup

Chapter 2. Setup

To transform libstdc++ sources into installed include files + Next


Chapter 2. Setup

Transforming libstdc++ sources into installed include files and properly built binaries useful for linking to other software is - a multi-step process. Steps include getting the sources, - configuring and building the sources, testing, and installation. -

The general outline of commands is something like: + done as part of building GCC. Building libstdc++ separately from the + rest of GCC is not supported. +

The general outline of commands to build GCC is something like:

    get gcc sources
    extract into gccsrcdir
@@ -77,8 +77,10 @@ ln -s libiconv-1.16 libiconv
 	    

If GCC 3.1.0 or later on is being used on GNU/Linux, an attempt will be made to use "C" library functionality necessary for - C++ named locale support. For GCC 4.6.0 and later, this - means that glibc 2.3 or later is required. + C++ named locale support, e.g. the newlocale + and uselocale functions. + For GCC 4.6.0 and later, + this means that glibc 2.3 or later is required.

If the 'gnu' locale model is being used, the following locales are used and tested in the libstdc++ testsuites. @@ -116,7 +118,17 @@ zh_TW BIG5 libstdc++ after "C" locales are installed is not necessary.

To install support for locales, do only one of the following: -

\ No newline at end of file +

+ Some tests for the std::messages facet require a + message catalog created by the msgfmt utility. + That is usually installed as part of the GNU gettext library. + If msgfmt is not available, some tests under + the 22_locale/messages + directory will fail. + \ No newline at end of file diff --git a/libstdc++-v3/doc/xml/manual/intro.xml b/libstdc++-v3/doc/xml/manual/intro.xml index 03d538546b77..f5037acdb5cc 100644 --- a/libstdc++-v3/doc/xml/manual/intro.xml +++ b/libstdc++-v3/doc/xml/manual/intro.xml @@ -1327,13 +1327,13 @@ requirements of the license of GCC. - To transform libstdc++ sources into installed include files + Transforming libstdc++ sources into installed include files and properly built binaries useful for linking to other software is - a multi-step process. Steps include getting the sources, - configuring and building the sources, testing, and installation. + done as part of building GCC. Building libstdc++ separately from the + rest of GCC is not supported. - The general outline of commands is something like: + The general outline of commands to build GCC is something like: diff --git a/libstdc++-v3/doc/xml/manual/prerequisites.xml b/libstdc++-v3/doc/xml/manual/prerequisites.xml index f00979a1afad..a02d3795830c 100644 --- a/libstdc++-v3/doc/xml/manual/prerequisites.xml +++ b/libstdc++-v3/doc/xml/manual/prerequisites.xml @@ -103,8 +103,10 @@ ln -s libiconv-1.16 libiconv If GCC 3.1.0 or later on is being used on GNU/Linux, an attempt will be made to use "C" library functionality necessary for - C++ named locale support. For GCC 4.6.0 and later, this - means that glibc 2.3 or later is required. + C++ named locale support, e.g. the newlocale + and uselocale functions. + For GCC 4.6.0 and later, + this means that glibc 2.3 or later is required. @@ -153,7 +155,10 @@ zh_TW BIG5 - install all locales + install all locales, e.g., run + dnf install glibc-all-langpacks + for Fedora and related distributions. + install just the necessary locales @@ -178,6 +183,16 @@ zh_TW BIG5 + + + Some tests for the std::messages facet require a + message catalog created by the msgfmt utility. + That is usually installed as part of the GNU gettext library. + If msgfmt is not available, some tests under + the 22_locale/messages + directory will fail. + +