black-sat/black

Homebrew installation fails

Closed this issue · 4 comments

Hi! It's me again. Was trying to install the latest version of BLACK via homebrew but it failed with the following error log:

Last 15 lines from /Users/yangjunhui/Library/Logs/Homebrew/black-sat/02.make:
    io::println("\n{}", clipp::make_man_page(cli, cli::command_name, fmt));
        ^
/tmp/black-sat-20220830-35034-cq591j/black-0.9.1/src/frontend/src/cli.cpp:194:7: note: in instantiation of function template specialization 'black::frontend::print_help<clipp::group>' requested here
      print_help(cli);
      ^
1 error generated.
make[2]: *** [src/frontend/CMakeFiles/frontend.dir/src/cli.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/frontend/CMakeFiles/frontend.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 96%] Linking CXX executable ../unit_tests
cd /tmp/black-sat-20220830-35034-cq591j/black-0.9.1/tests && /usr/local/Cellar/cmake/3.24.1/bin/cmake -E cmake_link_script CMakeFiles/unit_tests.dir/link.txt --verbose=1
/usr/local/opt/llvm/bin/clang++ -I/usr/local/opt/llvm/include -O3 -DNDEBUG -DBLACK_ASSERT_DISABLE -flto=thin -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib CMakeFiles/unit_tests.dir/units/support.cpp.o CMakeFiles/unit_tests.dir/units/basics.cpp.o CMakeFiles/unit_tests.dir/units/match.cpp.o CMakeFiles/unit_tests.dir/units/namespaces.cpp.o CMakeFiles/unit_tests.dir/units/parser.cpp.o CMakeFiles/unit_tests.dir/units/past_remover.cpp.o CMakeFiles/unit_tests.dir/units/solver.cpp.o CMakeFiles/unit_tests.dir/units/sat.cpp.o CMakeFiles/unit_tests.dir/units/cnf.cpp.o -o ../unit_tests  -Wl,-rpath,/tmp/black-sat-20220830-35034-cq591j/black-0.9.1/src/lib ../src/lib/libblack.dylib /usr/local/lib/libCatch2Main.a /usr/local/lib/libCatch2.a
[ 96%] Built target unit_tests
make: *** [all] Error 2

Thanks in advance for your help!

Hi!

Thanks for reporting! I've just returned back from vacation so I'll get time to look at that very soon. Stay tuned!

Hi! So Homebrew upgraded from fmt 8.x to fmt 9.x causing a regression. I've pushed a fix to make black compile with the new fmt version and now it works (at least for me). Now you can compile BLACK from source from the master branch if needed, or wait some more days for the next release which will include the fix for this issue and a couple of others.

Hi! There's a new 0.9.2 release which includes the fix, and should now work from Homebrew with no problems.

Hi! Thank you very much. Homebrew works perfectly now!