Skip to content

macOS hangs generating dyndep file for cppfront compiler #147

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

Open
alexreinking opened this issue Jun 20, 2024 · 2 comments · May be fixed by #149
Open

macOS hangs generating dyndep file for cppfront compiler #147

alexreinking opened this issue Jun 20, 2024 · 2 comments · May be fixed by #149
Labels
bug Something isn't working

Comments

@alexreinking
Copy link
Contributor

The current CI setup fails to generate a dyndep file within 10+ minutes.

@alexreinking
Copy link
Contributor Author

Might want to open a shell on the runner for a little bit to debug manually:

https://mxschmitt.github.io/action-tmate/

@alexreinking alexreinking added the bug Something isn't working label Jun 20, 2024
@alexreinking alexreinking linked a pull request Jun 20, 2024 that will close this issue
@HoiGe
Copy link

HoiGe commented Mar 13, 2025

Some information (maybe helpful)

System Information

-- The CXX compiler identification is Clang 19.1.7
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.4s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/hoige/VSCodeProjects/rlcpzon2/build

My Operation

When the -O3 flag is removed from the flags.make, the compilation will completes in 10 seconds.

Full build log

~/VSCodeProjects/rlcpzon2 5s 
❯ cmake --build build --target install
Change Dir: '/Users/hoige/VSCodeProjects/rlcpzon2/build'

Run Build Command(s): /opt/homebrew/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile install
/opt/homebrew/bin/cmake -S/Users/hoige/VSCodeProjects/rlcpzon2/cppfront -B/Users/hoige/VSCodeProjects/rlcpzon2/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/hoige/VSCodeProjects/rlcpzon2/build/CMakeFiles /Users/hoige/VSCodeProjects/rlcpzon2/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cppfront_cppfront.dir/build.make CMakeFiles/cppfront_cppfront.dir/depend
cd /Users/hoige/VSCodeProjects/rlcpzon2/build && /opt/homebrew/bin/cmake -E cmake_depends "Unix Makefiles" /Users/hoige/VSCodeProjects/rlcpzon2/cppfront /Users/hoige/VSCodeProjects/rlcpzon2/cppfront /Users/hoige/VSCodeProjects/rlcpzon2/build /Users/hoige/VSCodeProjects/rlcpzon2/build /Users/hoige/VSCodeProjects/rlcpzon2/build/CMakeFiles/cppfront_cppfront.dir/DependInfo.cmake "--color="
Dependencies file "CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o.d" is newer than depends file "/Users/hoige/VSCodeProjects/rlcpzon2/build/CMakeFiles/cppfront_cppfront.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target cppfront_cppfront
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cppfront_cppfront.dir/build.make CMakeFiles/cppfront_cppfront.dir/build
[ 50%] Building CXX object CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o
/opt/homebrew/opt/llvm/bin/clang++  -I/Users/hoige/VSCodeProjects/rlcpzon2/cppfront/cppfront/source -DNDEBUG -std=gnu++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -MD -MT CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o -MF CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o.d -o CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o -c /Users/hoige/VSCodeProjects/rlcpzon2/cppfront/cppfront/source/cppfront.cpp
[100%] Linking CXX executable cppfront
/opt/homebrew/bin/cmake -E cmake_link_script CMakeFiles/cppfront_cppfront.dir/link.txt --verbose=1
/opt/homebrew/opt/llvm/bin/clang++ -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cppfront_cppfront.dir/cppfront/source/cppfront.cpp.o -o cppfront
[100%] Built target cppfront_cppfront
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/hoige/VSCodeProjects/rlcpzon2/build/CMakeFiles 0
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 preinstall
make[1]: Nothing to be done for `preinstall'.
Install the project...
/opt/homebrew/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /usr/local/bin/cppfront
-- Up-to-date: /usr/local/include/cpp2util.h
-- Up-to-date: /usr/local/include/cpp2regex.h
-- Up-to-date: /usr/local/share/cmake/cppfront/cppfront-targets.cmake
-- Up-to-date: /usr/local/share/cmake/cppfront/cppfront-targets-release.cmake
-- Up-to-date: /usr/local/share/cmake/cppfront/cppfront-config.cmake
-- Up-to-date: /usr/local/share/cmake/cppfront/cppfront-config-version.cmake
-- Up-to-date: /usr/local/share/cmake/cppfront/CppfrontHelpers.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants