Skip to content

Build docs: require GCC 13 and show the ccache CC/CXX configure flags - #239

Open
Darshan-upadhyay1110 wants to merge 1 commit into
masterfrom
private/darshan/build-docs-gcc13
Open

Build docs: require GCC 13 and show the ccache CC/CXX configure flags#239
Darshan-upadhyay1110 wants to merge 1 commit into
masterfrom
private/darshan/build-docs-gcc13

Conversation

@Darshan-upadhyay1110

Copy link
Copy Markdown
Contributor

The online code uses std::format (common/RecentFiles.cpp), and libstdc++ only provides the format header from GCC 13, while configure has no compiler version check, so a build with GCC 12 or older passes configure and then fails at compile time. State the GCC 13 or newer requirement on the build pages so nobody hits that wall.

Per distribution: openSUSE gets a gcc13/gcc13-c++ install step and a configure line with CC="ccache gcc-13" CXX="ccache g++-13"; Ubuntu notes 24.04 or later ships GCC 13 by default and shows the same explicit flags as the fallback for older releases; Fedora notes 38 or later; Debian notes 13 or later, since Debian 12 has no gcc-13 package; Arch already satisfies the requirement. The shared build-online shortcode takes optional cc and cxx parameters so every distro section renders a configure line with the ccache prefix, and ccache was added to each package install list.

Fixes #235. Fixes #125.

The online code uses std::format (common/RecentFiles.cpp), and
libstdc++ only provides the format header from GCC 13, while configure
has no compiler version check, so a build with GCC 12 or older passes
configure and then fails at compile time. State the GCC 13 or newer
requirement on the build pages so nobody hits that wall.

Per distribution: openSUSE gets a gcc13/gcc13-c++ install step and a
configure line with CC="ccache gcc-13" CXX="ccache g++-13"; Ubuntu
notes 24.04 or later ships GCC 13 by default and shows the same
explicit flags as the fallback for older releases; Fedora notes 38 or
later; Debian notes 13 or later, since Debian 12 has no gcc-13
package; Arch already satisfies the requirement. The shared
build-online shortcode takes optional cc and cxx parameters so every
distro section renders a configure line with the ccache prefix, and
ccache was added to each package install list.

Fixes #235. Fixes #125.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build instructions need GCC 13+ (std::format requires it) Build instructions: update configure to use specific gcc versions

1 participant