public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] scripts: add support for building manuals
@ 2011-11-15 21:08 Michael Hope
  2011-11-15 23:52 ` Yann E. MORIN
  2011-11-16 23:05 ` Yann E. MORIN
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Hope @ 2011-11-15 21:08 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc, patches

# HG changeset patch
# User Michael Hope <michael.hope@linaro.org>
# Date 1321391181 -46800
# Branch add-manuals
# Node ID ae6b7b791db59c66639a4eb0aa6dc172c9d399c6
# Parent  7f305778ab05e60e58722d21e03e5140588a1438
scripts: add support for building manuals

Add support for building the HTML and PDF manuals for the major
components.  Implement for binutils, GCC, GDB, and GLIBC.

Always build all manuals and install a subset.  Be explicit about the
subset to reduce the clutter and to avoid getting copies of common
manuals like bfd from all of the sourceware based components.  Downside of
being explicit is that you need to update it when a new component
comes along.

Build the manuals as part of the last GCC build, namely 'cc' for glibc
based ones and cc_core_pass_2 for baremetal.

Dodgy: always try install the non-existant GOLD manual.  Should really
check .config to see if GOLD is enabled.

An example of the output is at:
 http://people.linaro.org/~michaelh/incoming/crosstool-NG/

Signed-off-by: Michael Hope <michael.hope@linaro.org>

diff -r 7f305778ab05 -r ae6b7b791db5 .hgignore
--- a/.hgignore	Mon Nov 14 18:12:55 2011 +0100
+++ b/.hgignore	Wed Nov 16 10:06:21 2011 +1300
@@ -27,3 +27,4 @@
 .build/
 # .. and the legacy location
 targets/
+builds/
\ No newline at end of file
diff -r 7f305778ab05 -r ae6b7b791db5 config/global/paths.in
--- a/config/global/paths.in	Mon Nov 14 18:12:55 2011 +0100
+++ b/config/global/paths.in	Wed Nov 16 10:06:21 2011 +1300
@@ -90,6 +90,14 @@
       Remove the installed documentation (man and info pages).
       Gains around 8MiB for a uClibc-based, C and C++ compiler.
 
+config BUILD_MANUALS
+    bool
+    prompt "Build the manuals"
+    default n
+    help
+      Build the PDF and HTML manuals for the main components such as
+      binutils, GCC, GDB, and the C library.
+
 config INSTALL_DIR_RO
     bool
     prompt "Render the toolchain read-only"
diff -r 7f305778ab05 -r ae6b7b791db5 scripts/build/binutils/binutils.sh
--- a/scripts/build/binutils/binutils.sh	Mon Nov 14 18:12:55 2011 +0100
+++ b/scripts/build/binutils/binutils.sh	Wed Nov 16 10:06:21 2011 +1300
@@ -90,6 +90,12 @@
     CT_DoLog EXTRA "Installing binutils"
     CT_DoExecLog ALL make install
 
+    if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+        CT_DoLog EXTRA "Building and installing the binutils manuals"
+        CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
+        CT_DoExecLog ALL make install-{pdf,html}-{gas,binutils,ld,gold,gprof}
+    fi
+
     # Install the wrapper if needed
     if [ "${CT_BINUTILS_LD_WRAPPER}" = "y" ]; then
         CT_DoLog EXTRA "Installing ld wrapper"
diff -r 7f305778ab05 -r ae6b7b791db5 scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh	Mon Nov 14 18:12:55 2011 +0100
+++ b/scripts/build/cc/gcc.sh	Wed Nov 16 10:06:21 2011 +1300
@@ -79,9 +79,9 @@
     case "${CT_BARE_METAL},${CT_CANADIAN},${CT_THREADS}" in
         y,*,*)
             if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
-                do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_staticlinked=yes
+                do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_staticlinked=yes build_manuals=yes
             else
-                do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes
+                do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_manuals=yes
             fi
             ;;
         ,y,*)   ;;
@@ -114,6 +114,7 @@
     local build_libgcc=no
     local build_libstdcxx=no
     local build_staticlinked=no
+    local build_manuals=no
     local core_prefix_dir
     local lang_opt
     local tmp
@@ -381,6 +382,12 @@
     CT_DoLog EXTRA "Installing ${mode} core C compiler"
     CT_DoExecLog ALL make ${JOBSFLAGS} "${core_targets[@]/#/install-}"
 
+    if [ "${CT_BUILD_MANUALS}" = "y" -a "${build_manuals}" = "yes" ]; then
+        CT_DoLog EXTRA "Building and installing the GCC manuals"
+        CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
+        CT_DoExecLog ALL make install-{pdf,html}-gcc
+    fi
+
     # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
     # to call the C compiler with the same, somewhat canonical name.
     # check whether compiler has an extension
@@ -625,6 +632,12 @@
     CT_DoLog EXTRA "Installing final compiler"
     CT_DoExecLog ALL make ${JOBSFLAGS} install
 
+    if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+        CT_DoLog EXTRA "Building and installing the GCC manuals"
+        CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
+        CT_DoExecLog ALL make install-{pdf,html}-gcc
+    fi
+
     # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
     # to call the C compiler with the same, somewhat canonical name.
     # check whether compiler has an extension
diff -r 7f305778ab05 -r ae6b7b791db5 scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh	Mon Nov 14 18:12:55 2011 +0100
+++ b/scripts/build/debug/300-gdb.sh	Wed Nov 16 10:06:21 2011 +1300
@@ -155,6 +155,12 @@
         CT_DoLog EXTRA "Installing cross-gdb"
         CT_DoExecLog ALL make install
 
+        if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+            CT_DoLog EXTRA "Building and installing the cross-GDB manuals"
+            CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
+            CT_DoExecLog ALL make install-{pdf,html}-gdb
+        fi
+
         if [ "${CT_GDB_INSTALL_GDBINIT}" = "y" ]; then
             CT_DoLog EXTRA "Install '.gdbinit' template"
             # See in scripts/build/internals.sh for why we do this
diff -r 7f305778ab05 -r ae6b7b791db5 scripts/build/libc/glibc-eglibc.sh-common
--- a/scripts/build/libc/glibc-eglibc.sh-common	Mon Nov 14 18:12:55 2011 +0100
+++ b/scripts/build/libc/glibc-eglibc.sh-common	Wed Nov 16 10:06:21 2011 +1300
@@ -303,6 +303,18 @@
                               install_root="${CT_SYSROOT_DIR}"  \
                               install
 
+        if [ "${CT_BUILD_MANUALS}" = "y" ]; then
+            CT_DoLog EXTRA "Building and installing the C library manual"
+            # Omit JOBSFLAGS as GLIBC has problems building the
+            # manuals in parallel
+            CT_DoExecLog ALL make pdf html
+            # EGLIBC doesn't have a install-{pdf.html} and leaves the manuals
+            # in the source directory
+            CT_DoExecLog ALL mkdir -p ${CT_PREFIX_DIR}/share/doc
+            CT_DoExecLog ALL cp -av ${src_dir}/manual/*.pdf ${src_dir}/manual/libc \
+                ${CT_PREFIX_DIR}/share/doc
+        fi
+
         if [ "${CT_LIBC_LOCALES}" = "y" ]; then
             do_libc_locales
         fi

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-15 21:08 [PATCH] scripts: add support for building manuals Michael Hope
@ 2011-11-15 23:52 ` Yann E. MORIN
  2011-11-16 23:05 ` Yann E. MORIN
  1 sibling, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2011-11-15 23:52 UTC (permalink / raw)
  To: Michael Hope; +Cc: crossgcc, patches

Michael, All,

On Tuesday 15 November 2011 22:07:39 Michael Hope wrote:
> # HG changeset patch
> # User Michael Hope <michael.hope@linaro.org>
> # Date 1321391181 -46800
> # Branch add-manuals
> # Node ID ae6b7b791db59c66639a4eb0aa6dc172c9d399c6
> # Parent  7f305778ab05e60e58722d21e03e5140588a1438
> scripts: add support for building manuals

Woohoo! :-)

> Build the manuals as part of the last GCC build, namely 'cc' for glibc
> based ones and cc_core_pass_2 for baremetal.

Yes, I never managed to build a bare-metal compiler out of the
final gcc build step, so I use the core gcc for this. Sigh...

> Dodgy: always try install the non-existant GOLD manual.  Should really
> check .config to see if GOLD is enabled.

Easy to fix, see below.

> diff -r 7f305778ab05 -r ae6b7b791db5 .hgignore
> --- a/.hgignore	Mon Nov 14 18:12:55 2011 +0100
> +++ b/.hgignore	Wed Nov 16 10:06:21 2011 +1300
> @@ -27,3 +27,4 @@
>  .build/
>  # .. and the legacy location
>  targets/
> +builds/
> \ No newline at end of file

Unrelated local change. Dropped.

> diff -r 7f305778ab05 -r ae6b7b791db5 config/global/paths.in
> --- a/config/global/paths.in	Mon Nov 14 18:12:55 2011 +0100
> +++ b/config/global/paths.in	Wed Nov 16 10:06:21 2011 +1300
> @@ -90,6 +90,14 @@
>        Remove the installed documentation (man and info pages).
>        Gains around 8MiB for a uClibc-based, C and C++ compiler.
>  
> +config BUILD_MANUALS
> +    bool
> +    prompt "Build the manuals"

depends on ! REMOVE_DOCS

> +    default n

"default n" is not needed. 'n' is the kconfig default anyway.

> +    help
> +      Build the PDF and HTML manuals for the main components such as
> +      binutils, GCC, GDB, and the C library.
> +
>  config INSTALL_DIR_RO
>      bool
>      prompt "Render the toolchain read-only"
> diff -r 7f305778ab05 -r ae6b7b791db5 scripts/build/binutils/binutils.sh
> --- a/scripts/build/binutils/binutils.sh	Mon Nov 14 18:12:55 2011 +0100
> +++ b/scripts/build/binutils/binutils.sh	Wed Nov 16 10:06:21 2011 +1300
> @@ -90,6 +90,12 @@
>      CT_DoLog EXTRA "Installing binutils"
>      CT_DoExecLog ALL make install
>  
> +    if [ "${CT_BUILD_MANUALS}" = "y" ]; then
> +        CT_DoLog EXTRA "Building and installing the binutils manuals"
> +        CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
> +        CT_DoExecLog ALL make install-{pdf,html}-{gas,binutils,ld,gold,gprof}
> +    fi

he gold case is realtively easy to fix:

    local -a manuals
    manuals=( gas binutils ld gprof )
    if [ "${CT_BINUTILS_LINKER_GOLD}" ]; then
        manuals+=( gold )
    fi
    manuals=( "${manuals[@]/#/install-pdf-}" "${manuals[@]/#/install-html-}" )
    make "${manuals[@]"

This is a bash script, so we can use the full power of bash expansions...

Prety good, I will apply with that change (but tomorrow, it's 1am here)

Thank you!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-15 21:08 [PATCH] scripts: add support for building manuals Michael Hope
  2011-11-15 23:52 ` Yann E. MORIN
@ 2011-11-16 23:05 ` Yann E. MORIN
  2011-11-16 23:30   ` Michael Hope
  1 sibling, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2011-11-16 23:05 UTC (permalink / raw)
  To: crossgcc; +Cc: Michael Hope, patches

[-- Attachment #1: Type: Text/Plain, Size: 1403 bytes --]

Michael, All,

On Tuesday 15 November 2011 22:07:39 Michael Hope wrote:
> # HG changeset patch
> # User Michael Hope <michael.hope@linaro.org>
> # Date 1321391181 -46800
> # Branch add-manuals
> # Node ID ae6b7b791db59c66639a4eb0aa6dc172c9d399c6
> # Parent  7f305778ab05e60e58722d21e03e5140588a1438
> scripts: add support for building manuals
> 
> Add support for building the HTML and PDF manuals for the major
> components.  Implement for binutils, GCC, GDB, and GLIBC.

On my machine (Debian squeeze, amd64), the build freezes after some errors:

    make[3]: *** [doc/gccint.pdf] Error 1
    make[3]: *** [doc/cppinternals.pdf] Error 1
    make[3]: *** [doc/gccinstall.pdf] Error 1
    make[3]: *** [doc/cpp.pdf] Error 1

And then it freezes when doing the PDF for gcc... Attached the .config I
used as a test (the only one I tested with, so far), and the build log
for the manuals.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

[-- Attachment #2: build.log-gcc-manuals.bz2 --]
[-- Type: application/x-bzip, Size: 6515 bytes --]

[-- Attachment #3: .config --]
[-- Type: text/plain, Size: 10809 bytes --]

#
# Automatically generated make config: don't edit
# crosstool-NG hg@default-8c74f018042a Configuration
# Wed Nov 16 23:21:13 2011
#
CT_CONFIGURE_has_xzutils=y
CT_CONFIGURE_has_cvs=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y

#
# Paths and misc options
#

#
# crosstool-NG behavior
#
# CT_OBSOLETE is not set
CT_EXPERIMENTAL=y
CT_DEBUG_CT=y
# CT_DEBUG_PAUSE_STEPS is not set
CT_DEBUG_CT_SAVE_STEPS=y
CT_DEBUG_CT_SAVE_STEPS_GZIP=y
# CT_NO_OVERIDE_LC_MESSAGES is not set

#
# Paths
#
CT_LOCAL_TARBALLS_DIR="${HOME}/src"
CT_SAVE_TARBALLS=y
CT_WORK_DIR="${CT_TOP_DIR}/.build"
CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
CT_INSTALL_DIR="${CT_PREFIX_DIR}"
CT_RM_RF_PREFIX_DIR=y
# CT_REMOVE_DOCS is not set
CT_BUILD_MANUALS=y
CT_INSTALL_DIR_RO=y
CT_STRIP_ALL_TOOLCHAIN_EXECUTABLES=y

#
# Downloading
#
# CT_FORBID_DOWNLOAD is not set
# CT_FORCE_DOWNLOAD is not set
CT_CONNECT_TIMEOUT=10
# CT_ONLY_DOWNLOAD is not set
# CT_USE_MIRROR is not set

#
# Extracting
#
# CT_FORCE_EXTRACT is not set
CT_OVERIDE_CONFIG_GUESS_SUB=y
# CT_ONLY_EXTRACT is not set
CT_PATCH_BUNDLED=y
# CT_PATCH_LOCAL is not set
# CT_PATCH_BUNDLED_LOCAL is not set
# CT_PATCH_LOCAL_BUNDLED is not set
# CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set
# CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set
# CT_PATCH_NONE is not set
CT_PATCH_ORDER="bundled"

#
# Build behavior
#
CT_PARALLEL_JOBS=0
CT_LOAD=0
CT_USE_PIPES=y
CT_EXTRA_FLAGS_FOR_HOST=""
# CT_CONFIG_SHELL_SH is not set
# CT_CONFIG_SHELL_ASH is not set
CT_CONFIG_SHELL_BASH=y
# CT_CONFIG_SHELL_CUSTOM is not set
CT_CONFIG_SHELL="${bash}"

#
# Logging
#
# CT_LOG_ERROR is not set
# CT_LOG_WARN is not set
# CT_LOG_INFO is not set
CT_LOG_EXTRA=y
# CT_LOG_ALL is not set
# CT_LOG_DEBUG is not set
CT_LOG_LEVEL_MAX="EXTRA"
# CT_LOG_SEE_TOOLS_WARN is not set
CT_LOG_PROGRESS_BAR=y
CT_LOG_TO_FILE=y
CT_LOG_FILE_COMPRESS=y

#
# Target options
#
CT_ARCH="arm"
CT_ARCH_SUPPORTS_BOTH_MMU=y
CT_ARCH_SUPPORTS_BOTH_ENDIAN=y
CT_ARCH_SUPPORTS_32=y
CT_ARCH_SUPPORT_ARCH=y
CT_ARCH_SUPPORT_CPU=y
CT_ARCH_SUPPORT_TUNE=y
CT_ARCH_SUPPORT_FPU=y
CT_ARCH_SUPPORT_SOFTFP=y
CT_ARCH_DEFAULT_HAS_MMU=y
CT_ARCH_DEFAULT_LE=y
CT_ARCH_DEFAULT_32=y
CT_ARCH_ARCH="armv5te"
CT_ARCH_CPU="xscale"
CT_ARCH_TUNE="xscale"
CT_ARCH_FPU=""
CT_ARCH_BE=y
# CT_ARCH_LE is not set
CT_ARCH_32=y
CT_ARCH_BITNESS=32
# CT_ARCH_FLOAT_HW is not set
CT_ARCH_FLOAT_SW=y
CT_TARGET_CFLAGS=""
CT_TARGET_LDFLAGS=""
# CT_ARCH_alpha is not set
CT_ARCH_arm=y
# CT_ARCH_avr32 is not set
# CT_ARCH_blackfin is not set
# CT_ARCH_m68k is not set
# CT_ARCH_mips is not set
# CT_ARCH_powerpc is not set
# CT_ARCH_s390 is not set
# CT_ARCH_sh is not set
# CT_ARCH_sparc is not set
# CT_ARCH_x86 is not set
CT_ARCH_alpha_AVAILABLE=y
CT_ARCH_arm_AVAILABLE=y
CT_ARCH_avr32_AVAILABLE=y
CT_ARCH_blackfin_AVAILABLE=y
CT_ARCH_m68k_AVAILABLE=y
CT_ARCH_mips_AVAILABLE=y
CT_ARCH_powerpc_AVAILABLE=y
CT_ARCH_s390_AVAILABLE=y
CT_ARCH_sh_AVAILABLE=y
CT_ARCH_sparc_AVAILABLE=y
CT_ARCH_x86_AVAILABLE=y

#
# Generic target options
#
CT_ARCH_USE_MMU=y

#
# Target optimisations
#
# CT_ARCH_FLOAT_SOFTFP is not set
CT_ARCH_FLOAT="soft"

#
# arm other options
#
CT_ARCH_ARM_MODE="arm"
CT_ARCH_ARM_MODE_ARM=y
# CT_ARCH_ARM_MODE_THUMB is not set
# CT_ARCH_ARM_INTERWORKING is not set
CT_ARCH_ARM_EABI=y

#
# Toolchain options
#

#
# General toolchain options
#
CT_FORCE_SYSROOT=y
CT_USE_SYSROOT=y
CT_SYSROOT_NAME="sysroot"
CT_SYSROOT_DIR_PREFIX=""
CT_WANTS_STATIC_LINK=y
# CT_STATIC_TOOLCHAIN is not set
CT_TOOLCHAIN_PKGVERSION=""
CT_TOOLCHAIN_BUGURL=""

#
# Tuple completion and aliasing
#
CT_TARGET_VENDOR="unknown"
CT_TARGET_ALIAS_SED_EXPR=""
CT_TARGET_ALIAS=""

#
# Toolchain type
#
# CT_NATIVE is not set
CT_CROSS=y
# CT_CROSS_NATIVE is not set
# CT_CANADIAN is not set
CT_TOOLCHAIN_TYPE="cross"

#
# Build system
#
CT_BUILD=""
CT_BUILD_PREFIX=""
CT_BUILD_SUFFIX=""

#
# Operating System
#
CT_KERNEL_SUPPORTS_SHARED_LIBS=y
CT_KERNEL="linux"
CT_KERNEL_VERSION="3.1.1"
# CT_KERNEL_bare_metal is not set
CT_KERNEL_linux=y
CT_KERNEL_bare_metal_AVAILABLE=y
CT_KERNEL_linux_AVAILABLE=y
CT_KERNEL_V_3_1_1=y
# CT_KERNEL_V_3_1 is not set
# CT_KERNEL_V_3_0_9 is not set
# CT_KERNEL_V_2_6_39_4 is not set
# CT_KERNEL_V_2_6_38_8 is not set
# CT_KERNEL_V_2_6_37_6 is not set
# CT_KERNEL_V_2_6_36_4 is not set
# CT_KERNEL_V_2_6_33_20 is not set
# CT_KERNEL_V_2_6_32_48 is not set
# CT_KERNEL_V_2_6_31_14 is not set
# CT_KERNEL_V_2_6_27_57 is not set
# CT_KERNEL_LINUX_CUSTOM is not set
CT_KERNEL_mingw32_AVAILABLE=y

#
# Common kernel options
#
CT_SHARED_LIBS=y

#
# linux other options
#
CT_KERNEL_LINUX_VERBOSITY_0=y
# CT_KERNEL_LINUX_VERBOSITY_1 is not set
# CT_KERNEL_LINUX_VERBOSITY_2 is not set
CT_KERNEL_LINUX_VERBOSE_LEVEL=0
CT_KERNEL_LINUX_INSTALL_CHECK=y

#
# Binary utilities
#
CT_ARCH_BINFMT_ELF=y

#
# GNU binutils
#
# CT_BINUTILS_V_2_21_53 is not set
# CT_BINUTILS_V_2_21_1a is not set
CT_BINUTILS_V_2_20_1a=y
# CT_BINUTILS_V_2_19_1a is not set
# CT_BINUTILS_V_2_18a is not set
CT_BINUTILS_VERSION="2.20.1a"
CT_BINUTILS_2_20_or_later=y
CT_BINUTILS_2_19_or_later=y
CT_BINUTILS_2_18_or_later=y
CT_BINUTILS_GOLD_SUPPORTS_ARCH=y
CT_BINUTILS_HAS_PKGVERSION_BUGURL=y
CT_BINUTILS_FORCE_LD_BFD=y
CT_BINUTILS_LINKER_LD=y
CT_BINUTILS_LINKERS_LIST="ld"
CT_BINUTILS_LINKER_DEFAULT="bfd"
CT_BINUTILS_EXTRA_CONFIG_ARRAY=""
CT_BINUTILS_FOR_TARGET=y
CT_BINUTILS_FOR_TARGET_IBERTY=y
CT_BINUTILS_FOR_TARGET_BFD=y

#
# C compiler
#
CT_CC="gcc"
CT_CC_VERSION="4.4.3"
CT_CC_gcc=y
# CT_CC_GCC_SHOW_LINARO is not set
# CT_CC_V_4_6_2 is not set
# CT_CC_V_4_6_1 is not set
# CT_CC_V_4_6_0 is not set
# CT_CC_V_4_5_3 is not set
# CT_CC_V_4_5_2 is not set
# CT_CC_V_4_5_1 is not set
# CT_CC_V_4_5_0 is not set
# CT_CC_V_4_4_6 is not set
# CT_CC_V_4_4_5 is not set
# CT_CC_V_4_4_4 is not set
CT_CC_V_4_4_3=y
# CT_CC_V_4_4_2 is not set
# CT_CC_V_4_4_1 is not set
# CT_CC_V_4_4_0 is not set
# CT_CC_V_4_3_6 is not set
# CT_CC_V_4_3_5 is not set
# CT_CC_V_4_3_4 is not set
# CT_CC_V_4_3_3 is not set
# CT_CC_V_4_3_2 is not set
# CT_CC_V_4_3_1 is not set
# CT_CC_V_4_2_4 is not set
# CT_CC_V_4_2_2 is not set
CT_CC_GCC_4_2_or_later=y
CT_CC_GCC_4_3_or_later=y
CT_CC_GCC_4_4=y
CT_CC_GCC_4_4_or_later=y
CT_CC_GCC_HAS_GRAPHITE=y
CT_CC_GCC_HAS_PKGVERSION_BUGURL=y
CT_CC_GCC_USE_GMP_MPFR=y
CT_CC_GCC_USE_PPL_CLOOG=y
# CT_CC_LANG_FORTRAN is not set
CT_CC_SUPPORT_CXX=y
CT_CC_SUPPORT_FORTRAN=y
CT_CC_SUPPORT_JAVA=y
CT_CC_SUPPORT_ADA=y
CT_CC_SUPPORT_OBJC=y
CT_CC_SUPPORT_OBJCXX=y

#
# Additional supported languages:
#
CT_CC_LANG_CXX=y
# CT_CC_LANG_JAVA is not set
# CT_CC_LANG_ADA is not set
# CT_CC_LANG_OBJC is not set
# CT_CC_LANG_OBJCXX is not set
CT_CC_LANG_OTHERS=""

#
# gcc other options
#
CT_CC_ENABLE_CXX_FLAGS=""
CT_CC_CORE_EXTRA_CONFIG_ARRAY=""
CT_CC_EXTRA_CONFIG_ARRAY=""
CT_CC_STATIC_LIBSTDCXX=y

#
# Optimisation features
#
CT_CC_GCC_USE_GRAPHITE=y

#
# Settings for libraries running on target
#
CT_CC_GCC_ENABLE_TARGET_OPTSPACE=y
# CT_CC_GCC_LIBMUDFLAP is not set
# CT_CC_GCC_LIBGOMP is not set
# CT_CC_GCC_LIBSSP is not set

#
# Misc. obscure options.
#
CT_CC_CXA_ATEXIT=y
# CT_CC_GCC_DISABLE_PCH is not set
# CT_CC_GCC_SJLJ_EXCEPTIONS is not set
CT_CC_GCC_LDBL_128=m

#
# C-library
#
CT_LIBC="glibc"
CT_LIBC_VERSION="2.10.1"
# CT_LIBC_eglibc is not set
CT_LIBC_glibc=y
# CT_LIBC_uClibc is not set
CT_LIBC_eglibc_AVAILABLE=y
CT_LIBC_glibc_AVAILABLE=y
CT_LIBC_GLIBC_TARBALL=y
# CT_LIBC_GLIBC_V_2_14_1 is not set
# CT_LIBC_GLIBC_V_2_14 is not set
# CT_LIBC_GLIBC_V_2_13 is not set
# CT_LIBC_GLIBC_V_2_12_2 is not set
# CT_LIBC_GLIBC_V_2_12_1 is not set
# CT_LIBC_GLIBC_V_2_11_1 is not set
# CT_LIBC_GLIBC_V_2_11 is not set
CT_LIBC_GLIBC_V_2_10_1=y
# CT_LIBC_GLIBC_V_2_9 is not set
# CT_LIBC_GLIBC_V_2_8 is not set
CT_LIBC_mingw_AVAILABLE=y
CT_LIBC_newlib_AVAILABLE=y
CT_LIBC_none_AVAILABLE=y
CT_LIBC_uClibc_AVAILABLE=y
CT_LIBC_SUPPORT_THREADS_ANY=y
CT_LIBC_SUPPORT_NPTL=y
CT_THREADS="nptl"

#
# Common C library options
#
CT_THREADS_NPTL=y
CT_LIBC_XLDD=y
CT_LIBC_GLIBC_MAY_FORCE_PORTS=y
CT_LIBC_glibc_familly=y
CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY=""
CT_LIBC_GLIBC_CONFIGPARMS=""
CT_LIBC_GLIBC_EXTRA_CFLAGS=""
CT_LIBC_EXTRA_CC_ARGS=""
# CT_LIBC_ENABLE_FORTIFIED_BUILD is not set
# CT_LIBC_DISABLE_VERSIONING is not set
CT_LIBC_OLDEST_ABI=""
# CT_LIBC_GLIBC_FORCE_UNWIND is not set
CT_LIBC_GLIBC_USE_PORTS=y
CT_LIBC_ADDONS_LIST=""
# CT_LIBC_LOCALES is not set
# CT_LIBC_GLIBC_KERNEL_VERSION_NONE is not set
CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS=y
# CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN is not set
CT_LIBC_GLIBC_MIN_KERNEL="3.1.1"

#
# glibc other options
#

#
# WARNING !!!                                            
#

#
#   For glibc >= 2.8, it can happen that the tarballs    
#

#
#   for the addons are not available for download.       
#

#
#   If that happens, bad luck... Try a previous version  
#

#
#   or try again later... :-(                            
#

#
# Debug facilities
#
CT_DEBUG_dmalloc=y
CT_DMALLOC_V_5_5_2=y
CT_DMALLOC_VERSION="5.5.2"
CT_DEBUG_duma=y
CT_DUMA_A=y
CT_DUMA_SO=y
CT_DUMA_V_2_5_15=y
CT_DUMA_VERSION="2_5_15"
CT_DEBUG_gdb=y
CT_GDB_CROSS=y
# CT_GDB_CROSS_STATIC is not set
CT_GDB_CROSS_PYTHON=y
CT_GDB_NATIVE=y
# CT_GDB_NATIVE_STATIC is not set
CT_GDB_GDBSERVER=y
CT_GDB_GDBSERVER_STATIC=y

#
# gdb version
#
# CT_DEBUG_GDB_SHOW_LINARO is not set
# CT_GDB_V_7_3a is not set
# CT_GDB_V_7_2a is not set
# CT_GDB_V_7_1a is not set
# CT_GDB_V_7_0_1a is not set
# CT_GDB_V_7_0a is not set
CT_GDB_V_6_8a=y
CT_GDB_VERSION="6.8a"
CT_DEBUG_ltrace=y
CT_LTRACE_V_0_5_3=y
# CT_LTRACE_V_0_5_2 is not set
CT_LTRACE_VERSION="0.5.3"
CT_LTRACE_0_5_3_or_later=y
CT_DEBUG_strace=y
# CT_STRACE_V_4_6 is not set
# CT_STRACE_V_4_5_20 is not set
CT_STRACE_V_4_5_19=y
# CT_STRACE_V_4_5_18 is not set
CT_STRACE_VERSION="4.5.19"

#
# Companion libraries
#
CT_COMPLIBS_NEEDED=y
CT_GMP_NEEDED=y
CT_MPFR_NEEDED=y
CT_PPL_NEEDED=y
CT_CLOOG_NEEDED=y
CT_COMPLIBS=y
CT_GMP=y
CT_MPFR=y
CT_PPL=y
CT_CLOOG=y
CT_LIBELF_TARGET=y
# CT_GMP_V_5_0_2 is not set
# CT_GMP_V_5_0_1 is not set
CT_GMP_V_4_3_2=y
# CT_GMP_V_4_3_1 is not set
# CT_GMP_V_4_3_0 is not set
CT_GMP_VERSION="4.3.2"
# CT_MPFR_V_3_0_1 is not set
# CT_MPFR_V_3_0_0 is not set
CT_MPFR_V_2_4_2=y
# CT_MPFR_V_2_4_1 is not set
# CT_MPFR_V_2_4_0 is not set
CT_MPFR_VERSION="2.4.2"
# CT_PPL_V_0_11_2 is not set
# CT_PPL_V_0_11_1 is not set
# CT_PPL_V_0_11 is not set
CT_PPL_V_0_10_2=y
CT_PPL_VERSION="0.10.2"
# CT_CLOOG_V_0_15_11 is not set
# CT_CLOOG_V_0_15_10 is not set
CT_CLOOG_V_0_15_9=y
# CT_CLOOG_V_0_15_8 is not set
# CT_CLOOG_V_0_15_7 is not set
# CT_CLOOG_V_0_15_6 is not set
CT_CLOOG_VERSION="0.15.9"

#
# libelf version needed to build for target
#
CT_LIBELF_V_0_8_13=y
# CT_LIBELF_V_0_8_12 is not set
CT_LIBELF_VERSION="0.8.13"

#
# Companion libraries common options
#
# CT_COMPLIBS_CHECK is not set

#
# Companion tools
#

#
# READ HELP before you say 'Y' below !!!
#
# CT_COMP_TOOLS is not set

#
# Test suite
#
# CT_TEST_SUITE_GCC is not set


[-- Attachment #4: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-16 23:05 ` Yann E. MORIN
@ 2011-11-16 23:30   ` Michael Hope
  2011-11-16 23:50     ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Hope @ 2011-11-16 23:30 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc, patches

On Thu, Nov 17, 2011 at 12:04 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Michael, All,
>
> On Tuesday 15 November 2011 22:07:39 Michael Hope wrote:
>> # HG changeset patch
>> # User Michael Hope <michael.hope@linaro.org>
>> # Date 1321391181 -46800
>> # Branch add-manuals
>> # Node ID ae6b7b791db59c66639a4eb0aa6dc172c9d399c6
>> # Parent  7f305778ab05e60e58722d21e03e5140588a1438
>> scripts: add support for building manuals
>>
>> Add support for building the HTML and PDF manuals for the major
>> components.  Implement for binutils, GCC, GDB, and GLIBC.
>
> On my machine (Debian squeeze, amd64), the build freezes after some errors:
>
>    make[3]: *** [doc/gccint.pdf] Error 1
>    make[3]: *** [doc/cppinternals.pdf] Error 1
>    make[3]: *** [doc/gccinstall.pdf] Error 1
>    make[3]: *** [doc/cpp.pdf] Error 1
>
> And then it freezes when doing the PDF for gcc... Attached the .config I
> used as a test (the only one I tested with, so far), and the build log
> for the manuals.

Out of interest, what is your pkgversion?  And does it have an @ in it?

@ is the texinfo command character and can wreck havoc if it's not escaped.

-- Michael

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-16 23:30   ` Michael Hope
@ 2011-11-16 23:50     ` Yann E. MORIN
  2011-11-17  0:03       ` Michael Hope
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2011-11-16 23:50 UTC (permalink / raw)
  To: crossgcc; +Cc: Michael Hope, patches

Michael, All,

On Thursday 17 November 2011 00:29:37 Michael Hope wrote:
> On Thu, Nov 17, 2011 at 12:04 PM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
> > On my machine (Debian squeeze, amd64), the build freezes after some errors:
[--SNIP--]
> Out of interest, what is your pkgversion?  And does it have an @ in it?

Yes, it does.

> @ is the texinfo command character and can wreck havoc if it's not escaped.

Ah, this explains it, then.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-16 23:50     ` Yann E. MORIN
@ 2011-11-17  0:03       ` Michael Hope
  2011-11-17  0:14         ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Hope @ 2011-11-17  0:03 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc, patches

On Thu, Nov 17, 2011 at 12:50 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Michael, All,
>
> On Thursday 17 November 2011 00:29:37 Michael Hope wrote:
>> On Thu, Nov 17, 2011 at 12:04 PM, Yann E. MORIN
>> <yann.morin.1998@anciens.enib.fr> wrote:
>> > On my machine (Debian squeeze, amd64), the build freezes after some errors:
> [--SNIP--]
>> Out of interest, what is your pkgversion?  And does it have an @ in it?
>
> Yes, it does.
>
>> @ is the texinfo command character and can wreck havoc if it's not escaped.
>
> Ah, this explains it, then.

It's a tricky one to fix.  I sent a fix to EGLIBC a month ago, but
then found the same problem exists in binutils, gcc, and gdb and
pretty much anything else sourceware based. See:
 http://www.eglibc.org/archives/patches/msg01014.html

A work-around is to change the development hg pkgversion format to
something without an @.  I quite like the Debian style:
1.1.13+hg12345.

-- Michael

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] scripts: add support for building manuals
  2011-11-17  0:03       ` Michael Hope
@ 2011-11-17  0:14         ` Yann E. MORIN
  0 siblings, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2011-11-17  0:14 UTC (permalink / raw)
  To: crossgcc; +Cc: Michael Hope, patches

Michael, All,

On Thursday 17 November 2011 01:02:47 Michael Hope wrote:
> A work-around is to change the development hg pkgversion format to
> something without an @.  I quite like the Debian style:
> 1.1.13+hg12345.

Indeed, I like it too.

But the gdb manuals still fail to build...
More work for tomorrow...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-17  0:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-15 21:08 [PATCH] scripts: add support for building manuals Michael Hope
2011-11-15 23:52 ` Yann E. MORIN
2011-11-16 23:05 ` Yann E. MORIN
2011-11-16 23:30   ` Michael Hope
2011-11-16 23:50     ` Yann E. MORIN
2011-11-17  0:03       ` Michael Hope
2011-11-17  0:14         ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).