Giter VIP home page Giter VIP logo

Comments (5)

loganmc10 avatar loganmc10 commented on August 24, 2024

Fixed with this patch:

diff --git a/Source/Script/Build.sh b/Source/Script/Build.sh
index ddb7588..aa4325c 100755
--- a/Source/Script/Build.sh
+++ b/Source/Script/Build.sh
@@ -15,7 +15,7 @@ fi
 
 mkdir -p "$build_dir"
 
-cmake -S "$toplvl_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_config" -DPORTABLE_INSTALL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G "Ninja"
+cmake -S "$toplvl_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_config" -DPORTABLE_INSTALL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_LIBFMT=ON -G "Ninja"
 
 cmake --build "$build_dir" --parallel "$threads"

from rmg.

Rosalie241 avatar Rosalie241 commented on August 24, 2024

Is GCC 13 available in fedora yet? If it isn't then that error makes sense, std::format has only been added to GCC since 13.0, and yeah using the -DUSE_LIBFMT=ON option helps, I'll try seeing if I can automate that check in cmake instead.

from rmg.

loganmc10 avatar loganmc10 commented on August 24, 2024

gcc 13 is included with Fedora 38.

Distros don't typically update something like gcc to a new major version within the same OS release.

So for example, Ubuntu 22.04 is going to be stuck with GCC 11 until it is EOL (same for RHEL9).

You can possibly check in CMAKE with something like:

if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)

and then always set -DUSE_LIBFMT in those cases

from rmg.

Rosalie241 avatar Rosalie241 commented on August 24, 2024

Does this branch work for you? https://github.com/Rosalie241/RMG/tree/cmake-libfmt

from rmg.

Rosalie241 avatar Rosalie241 commented on August 24, 2024

I've tested it with the ubuntu CI, flatpak builder and my archlinux installation and it works fine, so I pushed 4b99d9d to master and it should be fixed for you aswell, thank you for the report!

from rmg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.