[Bug] GLIBCXX_3.4.26 not found for Madmax after upgrade to 1.5.1
See original GitHub issueWhat happened?
I’ve been plotting reliably with Madmax for a few months and yesterday upgraded to 1.5.1. Now when I run my same plotting command, I get the following error:
STDERR: /opt/chia/madmax/chia_plot: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /opt/chia/madmax/chia_plot)
The plotting command I’m using is (sensitive data has been anonymized):
chia plotters madmax -c xxxxxxxxxxxxxx -t /chia-plots/tmp1 -2 /chia-plots/tmp2 -d /chia-plots/final_plots -r 3 -n 1 -u 256 -k 32
I’m installing the chia-blockchain-cli
package via apt
using the instructions from here https://github.com/Chia-Network/chia-blockchain/wiki/INSTALL#install-using-the-repository.
Operating System:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Ubuntu is fully patched.
When I removed Madmax and tried reinstalling it with chia plotters install madmax
, I get a similar error:
Running install script.
cmake: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by cmake)
cmake: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by cmake)
cmake: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libjsoncpp.so.25)
cmake: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libjsoncpp.so.25)
./make_devel.sh: line 4: cd: build: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Exception while installing madmax plotter: Error while running install script Command '['./make_devel.sh']' returned non-zero exit status 2.
UPDATE: Madmax installation works if I install from source. Madmax installation does NOT work if I install from the apt repository.
Version
1.5.1
What platform are you using?
Linux
What ui mode are you using?
CLI
Relevant log output
STDERR: /opt/chia/madmax/chia_plot: /opt/chia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /opt/chia/madmax/chia_plot)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
install glibcxx_3.4.26 - You.com | The Search Engine You Control
GLIBCXX_3.4.26 comes with gcc-8 . Installing gcc-8 and upgrading libstdc++6 worked for me. Run the following as shown here: sudo apt update sudo...
Read more >version `GLIBCXX_3.4.26' not found even though libstdc++.so ...
This is an error that comes up when trying to load a dynamic library that i just compiled myself. apt-get upgrade and the...
Read more >How to fix MadMAx Plotter not installed error : r/chia - Reddit
Recently I Entered the world of Chia (I was about to Farm Chia plots after 1 weeks of wallet sync); I am using...
Read more >libstdc++.so.6: version `GLIBCXX_3.4.26' not found on Linux
It seems that the package is updated and the required version is there in the conda environment directory but for some reason rstudio...
Read more >The persistence (GLIBCXX_3.4.26 not found) - CFD Online
Hi all, When I tried to open paraview from the terminal after I run simulations from the tutorial package in OpenFoam I got...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems related to this issue https://github.com/pyinstaller/pyinstaller/issues/6993
On my test machine (arm64, ubuntu 20.04) removing the
/opt/chia/libstdc++.so.6
file and then trying again solved the problem, but its not clear at this point if we’ll run into issues with other supported platforms doing this.Broken for me on the following versions (testing more):
Seems like this used to work for some of these older versions (per discussion with Zach) so maybe this is an issue with updated libstdc++ on the systems this is being installed on, and not being in sync or something with the version in the build image?
This is resolved now for future builds. The current release (1.6.0) still has the issue, but new builds and future releases should be fixed.
If you’re using madmax and hitting this issue, you are likely ok to delete the library bundled with chia (
/opt/chia/libstdc++.so.6
) as long as your system has a copy installed that supports the required CXX version (but do so at your own risk). To check, you can do something like the following:x86_64
ARM64
As long as
GLIBCXX_3.4.26
shows up in the output of the command (vs it being an empty result) you should have a system version installed that meets the requirements. (if strings is not installed, that can be installed withapt-get install binutils
)