#21 Don't build libstdc++ documentation on Fedora ELN/RHEL 10+
Opened a year ago by sgallagh. Modified a year ago
rpms/ sgallagh/gcc libstdcxx_docs  into  rawhide

file modified
+8 -1
@@ -4,7 +4,7 @@ 

  %global gcc_major 11

  # Note, gcc_release must be integer, if you want to add suffixes to

  # %%{release}, append them after %%{gcc_release} on Release: line.

- %global gcc_release 6

+ %global gcc_release 7

  %global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e

  %global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0

  %global _unpackaged_files_terminate_build 0
@@ -91,7 +91,11 @@ 

  %else

  %global build_isl 1

  %endif

+ %if 0%{?rhel} >= 10

+ %global build_libstdcxx_docs 0

+ %else

  %global build_libstdcxx_docs 1

+ %endif

  %ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}

  %global attr_ifunc 1

  %else
@@ -3148,6 +3152,9 @@ 

  %endif

  

  %changelog

+ * Tue Nov 16 2021 Stephen Gallagher <sgallagh@redhat.com> - 11.2.1-7

+ - Don't build libstdc++ documentation on Fedora ELN/RHEL 10+

+ 

  * Tue Oct 19 2021 Jakub Jelinek <jakub@redhat.com> 11.2.1-6

  - update from releases/gcc-11-branch

    - PRs target/100208, target/100316, target/102761

The reason GCC can't build the libstdc++ docs in ELN is that doxygen is borked:

<mock-chroot> sh-5.1# make doc-html-doxygen
mkdir -p /builddir/build/BUILD/gcc-11.2.1-20211019/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/doc/doxygen/html
srcdir=`cd ../../../../libstdc++-v3; ${PWDCMD-pwd}`; \
  builddir=`cd ..; ${PWDCMD-pwd}`; \
  /bin/sh ../../../../libstdc++-v3/scripts/run_doxygen \
  --host_alias=x86_64-redhat-linux --mode=html \
  "${srcdir}" "${builddir}" YES
run_doxygen --host_alias=x86_64-redhat-linux --mode=html /builddir/build/BUILD/gcc-11.2.1-20211019/libstdc++-v3 /builddir/build/BUILD/gcc-11.2.1-20211019/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3 YES
/usr/bin/doxygen: symbol lookup error: /lib64/libclang-cpp.so.13: undefined symbol: LLVMInitializeMSP430Target, version LLVM_13
/bin/doxygen: symbol lookup error: /lib64/libclang-cpp.so.13: undefined symbol: LLVMInitializeMSP430Target, version LLVM_13
/bin/doxygen: symbol lookup error: /lib64/libclang-cpp.so.13: undefined symbol: LLVMInitializeMSP430Target, version LLVM_13
/usr/bin/doxygen: symbol lookup error: /lib64/libclang-cpp.so.13: undefined symbol: LLVMInitializeMSP430Target, version LLVM_13
../../../../libstdc++-v3/scripts/run_doxygen: error: Could not find Doxygen 1.7.0 in path.

Usage:  run_doxygen --mode=MODE --host_alias=HOST_ALIAS [<options>]
                    <v3-src-dir> <v3-build-dir> <shortnamesp>
      MODE is one of:
          html           Generate user-level HTML library documentation.
          man            Generate user-level man pages.
          xml            Generate user-level XML pages.
          latex          Generate user-level LaTeX pages.

      HOST_ALIAS is the GCC host alias triplet set at configure time.

      shortnamesp is one of YES or NO and is used as the SHORT_NAMES value
      in the Doxygen config file.

      Supported options:

      --help | -h      Print this message and exit.
      --latex_cmd=CMD  Set LATEX_CMD_NAME=CMD in the Doxygen config file.

Note:  Requires Doxygen 1.7.0 or later; get it at
       ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.7.0.src.tar.gz

make: [Makefile:934: stamp-html-doxygen] Error 1 (ignored)
echo timestamp > stamp-html-doxygen
<mock-chroot> sh-5.1# doxygen
doxygen: symbol lookup error: /lib64/libclang-cpp.so.13: undefined symbol: LLVMInitializeMSP430Target, version LLVM_13

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Metadata