From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 97BA23858C66; Mon, 18 Sep 2023 11:17:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97BA23858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695035866; bh=8cYTA3hmMpxSpep+8i+bHZiDZJZLQ8Mn63JPYmph1KA=; h=From:To:Subject:Date:From; b=xuoFcz/mpNGDE6Tgixt40DaWDw63ExDWPskoQw6XmlYYtDVmZt1sc4U9sZA6Y5NGs ezv3l7JP8LxopUm7ANMDyfKSl3gd/fBJtd38TTK0JezbWjLX19JDq2Krj2Se/VYCJQ NQYGfTvVKRchPVXnDkIzVTnRkw2BWeskcsdSkkqU= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-4092] libstdc++: Minor update to installation docs X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 8fbc0871da26fac1668ba939f4492876794734ac X-Git-Newrev: 12755fe40b2474554a01815b18c6b9956a513137 Message-Id: <20230918111746.97BA23858C66@sourceware.org> Date: Mon, 18 Sep 2023 11:17:46 +0000 (GMT) List-Id: https://gcc.gnu.org/g:12755fe40b2474554a01815b18c6b9956a513137 commit r14-4092-g12755fe40b2474554a01815b18c6b9956a513137 Author: Jonathan Wakely Date: Mon Sep 18 12:14:15 2023 +0100 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: --- libstdc++-v3/doc/html/manual/setup.html | 28 +++++++++++++++++++-------- libstdc++-v3/doc/xml/manual/intro.xml | 8 ++++---- libstdc++-v3/doc/xml/manual/prerequisites.xml | 21 +++++++++++++++++--- 3 files changed, 42 insertions(+), 15 deletions(-) diff --git a/libstdc++-v3/doc/html/manual/setup.html b/libstdc++-v3/doc/html/manual/setup.html index f27b8d806df..1963cdf695a 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: -

  • install all locales

  • install just the necessary locales

    • with Debian GNU/Linux:

      Add the above list, as shown, to the file +

      • install all locales, e.g., run + dnf install glibc-all-langpacks + for Fedora and related distributions. +

      • install just the necessary locales

        • with Debian GNU/Linux:

          Add the above list, as shown, to the file /etc/locale.gen

          run /usr/sbin/locale-gen

        • on most Unix-like operating systems:

          localedef -i de_DE -f ISO-8859-1 de_DE

          (repeat for each entry in the above list)

        • Instructions for other operating systems solicited. -

\ 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 03d538546b7..f5037acdb5c 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 f00979a1afa..a02d3795830 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. + +