New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build Cantera 2.3.0 with fmt 4.0.0 #470
Comments
Thanks for the report! @speth noted that there have been changes to fmt since the 3.0.1 release that we bundle (https://groups.google.com/d/msg/cantera-users/vIE7kqPYQEY/SMuogmHBBAAJ). At the moment, the only solution is to use that version of fmt (3.0.1), either installed on your system, or the one bundled as submodule in Cantera. As @speth noted in that Google Group post, updating to handle both versions of the fmt library is going to take some doing. |
Thanks @bryanwweber! I tried 3.0.2 and that seems to work. I imagine anything from the 3.0.X build cycle is API-compatible. I've updated the Spack Cantera package with the latest release. Everything should be good to go now. |
Awesome, good to know @adamjstewart. I'm going to re-open this issue as a reminder that we have to update for fmt 4.x at some point. |
I have run into the same error on my Mac(Sierra) I have uninstalled fmt 4.0.0 but I could use some help installing fmt 3.0.2. |
@JPR984 You can wait until spack/spack#4936 is merged and run
You may want to change the installation prefix, but that's up to you. |
@adamjstewart perfect thank you It installed fmt 3.0.2 and have Cantera installing as I type and it so far seems to be working. I appreciate the help! |
Running into this problem on a Mac using Homebrew to install Cantera. No formulas exist for fmt versions < 4.0. Any suggestions that use Homebrew and not spack or from source?
|
The following method is a complete and utter hack, but it works (Mac OS X Sierra 10.12.5)... Modify the contents of the fmt Formula to use 3.0.2 instead of 4.0.0:
Now unlink the old fmt, and install the new fmt:
Now Cantera should build successfully:
Voila! It works:
In the meantime I will wait for Cantera to be updated to use fmt 4.0.0 (and cross my fingers and hope that nothing else in Homebrew used fmt 4.0.0). |
This should be fixed in ea69a01. I have also cherry-picked this onto the For Homebrew, you should now be able to install by adding the |
Thanks Ray! After restoring the fmt formula, adding
|
To compile Cantera 2.3 with fmt-4, you just need to modify the file include/cantera/base/fmt.h by adding the line: |
I tried to compile cantera 2.3.0 with system fmt 4.1.0 in Gentoo linux and got the same error.
to file <cantera_source_dir>/include/cantera/base/global.h or to file <cantera_source_dir>/include/cantera/base/fmt.h add But it breaks building if <=fmt-3.0.2 is used. update: Also the FMT documentation saying: update2: |
I tried installing cantera 2.6.0 with just: For the longest time it gave me the error for fmt.os. All the suggestions mentioned here were either for older versions of fmt and cantera or did not work. So finally according to me the error and solution. Hope it helps :) |
Cantera version
2.3.0
Operating System
CentOS 7, GCC 7.1.0
Python/MATLAB version
Python 2.7.13, no MATLAB
Expected Behavior
I'm trying to build the latest version of Cantera, but it crashes with some
fmt
-related error messagesActual Behavior
Steps to reproduce
I'm attempting to add this version of Cantera to the Spack package manager in spack/spack#4936. You can use Spack to build everything, or build it by hand.
The text was updated successfully, but these errors were encountered: