Skip to content
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

ninja 1.11.1 cmake or python3 generated binary broken on x86_64, unable to build self #2198

Closed
satmandu opened this issue Sep 29, 2022 · 1 comment

Comments

@satmandu
Copy link

Weirdly this only breaks on x86_64, not i686 or armv7l.

mkdir builddir
CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto" LDFLAGS="-flto " bash -c mold -run cmake           -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_LIBRARY_PATH=/usr/local/lib64 -DCMAKE_C_FLAGS='-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto' -DCMAKE_CXX_FLAGS='-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold  -flto' -DCMAKE_EXE_LINKER_FLAGS='-flto ' -DCMAKE_SHARED_LINKER_FLAGS='-flto ' -DCMAKE_STATIC_LINKER_FLAGS='-flto ' -DCMAKE_MODULE_LINKER_FLAGS='-flto ' -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE -DCMAKE_BUILD_TYPE=Release           -Wdev           -G Ninja"
ninja
ninja -C builddir install"

I get

-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
CMake Error:
  Running

   '/usr/local/bin/ninja' '-C' '/usr/local/tmp/crew/ninja.20220929184056.dir/ninja-1.11.1/builddir/CMakeFiles/CMakeTmp' '-t' 'recompact'

  failed with:

   ninja: fatal: unknown tool 'recompact'



CMake Error:
  Running

   '/usr/local/bin/ninja' '-C' '/usr/local/tmp/crew/ninja.20220929184056.dir/ninja-1.11.1/builddir/CMakeFiles/CMakeTmp' '-t' 'restat' 'build.ninja'

  failed with:

   ninja: fatal: unknown tool 'restat'



CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  /usr/local/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:6 (project)
@satmandu satmandu changed the title ninja 1.11.1 cmake generated binary broken on x86_64, unable to build self ninja 1.11.1 cmake or python3 generated binary broken on x86_64, unable to build self Sep 29, 2022
@satmandu
Copy link
Author

This could be a mold related issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant