Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

Hi, I'm trying to tget cadabra2 installed on my Mac on Monterey with homebrew, but it stops at 83% with no error messages. Here is the end of the output I get:

[ 83%] Linking CXX shared library cadabra2.cpython-310-darwin.so cd /tmp/cadabra2-20221105-78213-uterjo/cadabra2-2.3.8/core && /usr/local/Cellar/cmake/3.24.2/bin/cmake -E cmake_link_script CMakeFiles/cadabra2.dir/link.txt --verbose=1 /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -Xlinker -undefined -Xlinker dynamic_lookup -flto -o cadabra2.cpython-310-darwin.so -install_name @rpath/cadabra2.cpython-310-darwin.so CMakeFiles/cadabra2.dir/InstallPrefix.cc.o CMakeFiles/cadabra2.dir/DataCell.cc.o CMakeFiles/cadabra2.dir/CdbPython.cc.o CMakeFiles/cadabra2.dir/ExNode.cc.o CMakeFiles/cadabra2.dir/ProgressMonitor.cc.o CMakeFiles/cadabra2.dir/Bridge.cc.o CMakeFiles/cadabra2.dir/Adjform.cc.o CMakeFiles/cadabra2.dir/Algorithm.cc.o CMakeFiles/cadabra2.dir/Cleanup.cc.o CMakeFiles/cadabra2.dir/Combinatorics.cc.o CMakeFiles/cadabra2.dir/Compare.cc.o CMakeFiles/cadabra2.dir/DisplayBase.cc.o CMakeFiles/cadabra2.dir/DisplayMMA.cc.o CMakeFiles/cadabra2.dir/DisplayTeX.cc.o CMakeFiles/cadabra2.dir/DisplaySympy.cc.o CMakeFiles/cadabra2.dir/DisplayTerminal.cc.o CMakeFiles/cadabra2.dir/TerminalStream.cc.o CMakeFiles/cadabra2.dir/Exceptions.cc.o CMakeFiles/cadabra2.dir/Exchange.cc.o CMakeFiles/cadabra2.dir/Functional.cc.o CMakeFiles/cadabra2.dir/Hash.cc.o CMakeFiles/cadabra2.dir/IndexIterator.cc.o CMakeFiles/cadabra2.dir/IndexClassifier.cc.o CMakeFiles/cadabra2.dir/Kernel.cc.o CMakeFiles/cadabra2.dir/Linear.cc.o CMakeFiles/cadabra2.dir/Parser.cc.o CMakeFiles/cadabra2.dir/PreClean.cc.o CMakeFiles/cadabra2.dir/PreProcessor.cc.o CMakeFiles/cadabra2.dir/Props.cc.o CMakeFiles/cadabra2.dir/PythonException.cc.o CMakeFiles/cadabra2.dir/Stopwatch.cc.o CMakeFiles/cadabra2.dir/Storage.cc.o CMakeFiles/cadabra2.dir/Symbols.cc.o CMakeFiles/cadabra2.dir/SympyCdb.cc.o CMakeFiles/cadabra2.dir/YoungTab.cc.o CMakeFiles/cadabra2.dir/modules/xperm_new.cc.o CMakeFiles/cadabra2.dir//libs/whereami/whereami.c.o CMakeFiles/cadabra2.dir//libs/base64/base64.cc.o CMakeFiles/cadabra2.dir/algorithms/canonicalise.cc.o CMakeFiles/cadabra2.dir/algorithms/collect_components.cc.o CMakeFiles/cadabra2.dir/algorithms/collect_factors.cc.o CMakeFiles/cadabra2.dir/algorithms/collect_terms.cc.o CMakeFiles/cadabra2.dir/algorithms/combine.cc.o CMakeFiles/cadabra2.dir/algorithms/complete.cc.o CMakeFiles/cadabra2.dir/algorithms/decompose.cc.o CMakeFiles/cadabra2.dir/algorithms/decompose_product.cc.o CMakeFiles/cadabra2.dir/algorithms/distribute.cc.o CMakeFiles/cadabra2.dir/algorithms/drop_weight.cc.o CMakeFiles/cadabra2.dir/algorithms/einsteinify.cc.o CMakeFiles/cadabra2.dir/algorithms/eliminate_kronecker.cc.o CMakeFiles/cadabra2.dir/algorithms/eliminate_metric.cc.o CMakeFiles/cadabra2.dir/algorithms/eliminate_vielbein.cc.o CMakeFiles/cadabra2.dir/algorithms/epsilon_to_delta.cc.o CMakeFiles/cadabra2.dir/algorithms/evaluate.cc.o CMakeFiles/cadabra2.dir/algorithms/expand.cc.o CMakeFiles/cadabra2.dir/algorithms/expand_delta.cc.o CMakeFiles/cadabra2.dir/algorithms/expand_diracbar.cc.o CMakeFiles/cadabra2.dir/algorithms/expand_dummies.cc.o CMakeFiles/cadabra2.dir/algorithms/expand_power.cc.o CMakeFiles/cadabra2.dir/algorithms/explicit_indices.cc.o CMakeFiles/cadabra2.dir/algorithms/factor_in.cc.o CMakeFiles/cadabra2.dir/algorithms/factor_out.cc.o CMakeFiles/cadabra2.dir/algorithms/fierz.cc.o CMakeFiles/cadabra2.dir/algorithms/flatten_product.cc.o CMakeFiles/cadabra2.dir/algorithms/flatten_sum.cc.o CMakeFiles/cadabra2.dir/algorithms/indexsort.cc.o CMakeFiles/cadabra2.dir/algorithms/integrate_by_parts.cc.o CMakeFiles/cadabra2.dir/algorithms/join_gamma.cc.o CMakeFiles/cadabra2.dir/algorithms/keep_terms.cc.o CMakeFiles/cadabra2.dir/algorithms/lower_free_indices.cc.o CMakeFiles/cadabra2.dir/algorithms/lr_tensor.cc.o CMakeFiles/cadabra2.dir/algorithms/map_sympy.cc.o CMakeFiles/cadabra2.dir/algorithms/meld.cc.o CMakeFiles/cadabra2.dir/algorithms/order.cc.o CMakeFiles/cadabra2.dir/algorithms/product_rule.cc.o CMakeFiles/cadabra2.dir/algorithms/reduce_delta.cc.o CMakeFiles/cadabra2.dir/algorithms/rename_dummies.cc.o CMakeFiles/cadabra2.dir/algorithms/rewrite_indices.cc.o CMakeFiles/cadabra2.dir/algorithms/simplify.cc.o CMakeFiles/cadabra2.dir/algorithms/sort_product.cc.o CMakeFiles/cadabra2.dir/algorithms/sort_spinors.cc.o CMakeFiles/cadabra2.dir/algorithms/sort_sum.cc.o CMakeFiles/cadabra2.dir/algorithms/split_gamma.cc.o CMakeFiles/cadabra2.dir/algorithms/split_index.cc.o CMakeFiles/cadabra2.dir/algorithms/substitute.cc.o CMakeFiles/cadabra2.dir/algorithms/sym.cc.o CMakeFiles/cadabra2.dir/algorithms/tab_dimension.cc.o CMakeFiles/cadabra2.dir/algorithms/tab_basics.cc.o CMakeFiles/cadabra2.dir/algorithms/take_match.cc.o CMakeFiles/cadabra2.dir/algorithms/replace_match.cc.o CMakeFiles/cadabra2.dir/algorithms/unwrap.cc.o CMakeFiles/cadabra2.dir/algorithms/unzoom.cc.o CMakeFiles/cadabra2.dir/algorithms/untrace.cc.o CMakeFiles/cadabra2.dir/algorithms/vary.cc.o CMakeFiles/cadabra2.dir/algorithms/young_project.cc.o CMakeFiles/cadabra2.dir/algorithms/young_project_product.cc.o CMakeFiles/cadabra2.dir/algorithms/young_project_tensor.cc.o CMakeFiles/cadabra2.dir/algorithms/zoom.cc.o CMakeFiles/cadabra2.dir/properties/Accent.cc.o CMakeFiles/cadabra2.dir/properties/AntiCommuting.cc.o CMakeFiles/cadabra2.dir/properties/AntiSymmetric.cc.o CMakeFiles/cadabra2.dir/properties/Commuting.cc.o CMakeFiles/cadabra2.dir/properties/CommutingAsProduct.cc.o CMakeFiles/cadabra2.dir/properties/CommutingAsSum.cc.o CMakeFiles/cadabra2.dir/properties/CommutingBehaviour.cc.o CMakeFiles/cadabra2.dir/properties/Coordinate.cc.o CMakeFiles/cadabra2.dir/properties/DAntiSymmetric.cc.o CMakeFiles/cadabra2.dir/properties/Depends.cc.o CMakeFiles/cadabra2.dir/properties/DependsInherit.cc.o CMakeFiles/cadabra2.dir/properties/Derivative.cc.o CMakeFiles/cadabra2.dir/properties/Determinant.cc.o CMakeFiles/cadabra2.dir/properties/Diagonal.cc.o CMakeFiles/cadabra2.dir/properties/DifferentialForm.cc.o CMakeFiles/cadabra2.dir/properties/DiracBar.cc.o CMakeFiles/cadabra2.dir/properties/Distributable.cc.o CMakeFiles/cadabra2.dir/properties/EpsilonTensor.cc.o CMakeFiles/cadabra2.dir/properties/ExteriorDerivative.cc.o CMakeFiles/cadabra2.dir/properties/FilledTableau.cc.o CMakeFiles/cadabra2.dir/properties/GammaMatrix.cc.o CMakeFiles/cadabra2.dir/properties/GammaTraceless.cc.o CMakeFiles/cadabra2.dir/properties/ImaginaryI.cc.o CMakeFiles/cadabra2.dir/properties/ImplicitIndex.cc.o CMakeFiles/cadabra2.dir/properties/Indices.cc.o CMakeFiles/cadabra2.dir/properties/Integer.cc.o CMakeFiles/cadabra2.dir/properties/InverseMetric.cc.o CMakeFiles/cadabra2.dir/properties/KroneckerDelta.cc.o CMakeFiles/cadabra2.dir/properties/LaTeXForm.cc.o CMakeFiles/cadabra2.dir/properties/Matrix.cc.o CMakeFiles/cadabra2.dir/properties/Metric.cc.o CMakeFiles/cadabra2.dir/properties/NonCommuting.cc.o CMakeFiles/cadabra2.dir/properties/NumericalFlat.cc.o CMakeFiles/cadabra2.dir/properties/PartialDerivative.cc.o CMakeFiles/cadabra2.dir/properties/RiemannTensor.cc.o CMakeFiles/cadabra2.dir/properties/SatisfiesBianchi.cc.o CMakeFiles/cadabra2.dir/properties/SelfAntiCommuting.cc.o CMakeFiles/cadabra2.dir/properties/SelfCommuting.cc.o CMakeFiles/cadabra2.dir/properties/SelfNonCommuting.cc.o CMakeFiles/cadabra2.dir/properties/SortOrder.cc.o CMakeFiles/cadabra2.dir/properties/Spinor.cc.o CMakeFiles/cadabra2.dir/properties/Symbol.cc.o CMakeFiles/cadabra2.dir/properties/Symmetric.cc.o CMakeFiles/cadabra2.dir/properties/Tableau.cc.o CMakeFiles/cadabra2.dir/properties/TableauBase.cc.o CMakeFiles/cadabra2.dir/properties/TableauInherit.cc.o CMakeFiles/cadabra2.dir/properties/TableauSymmetry.cc.o CMakeFiles/cadabra2.dir/properties/Trace.cc.o CMakeFiles/cadabra2.dir/properties/Traceless.cc.o CMakeFiles/cadabra2.dir/properties/Vielbein.cc.o CMakeFiles/cadabra2.dir/properties/Weight.cc.o CMakeFiles/cadabra2.dir/properties/WeightInherit.cc.o CMakeFiles/cadabra2.dir/properties/WeylTensor.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_algorithms.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_ex.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_globals.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_helpers.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_kernel.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_module.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_packages.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_progress.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_properties.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_stopwatch.cc.o CMakeFiles/cadabra2.dir/pythoncdb/py_tableau.cc.o -L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/glib/2.74.0/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/libsigc++@2/2.10.8/lib -Wl,-rpath,/usr/local/Cellar/glibmm@2.66/2.66.2/lib -Wl,-rpath,/usr/local/Cellar/glib/2.74.0/lib -Wl,-rpath,/usr/local/opt/gettext/lib -Wl,-rpath,/usr/local/Cellar/libsigc++@2/2.10.8/lib /usr/local/lib/libgmpxx.dylib /usr/local/lib/libgmp.dylib /usr/local/lib/libboost_system-mt.dylib cd /tmp/cadabra2-20221105-78213-uterjo/cadabra2-2.3.8/core && /usr/bin/strip -x /tmp/cadabra2-20221105-78213-uterjo/cadabra2-2.3.8/core/cadabra2.cpython-310-darwin.so [ 83%] Built target cadabra2 make: *** [all] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!

in Installation trouble by (130 points)

Are you sure you are not running out of disk space?

Yes, megasure. I have more than 270 Gb disk space available and 128Gb RAM. I tried once more, but same result.

1 Answer

+1 vote

This turned out to be a compatibility issue with the recently released Python 3.11. I have updated Cadabra to 2.4.2.4 which contains a fix for this, and have also updated the Homebrew tap so that brew install cadabra2 uses this latest version. This now works on my mac, please let me know if there are any remaining issues.

by (83.1k points)
...