[Bug 281009] editors/neovim doesn't build (with ccache)?

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Aug 2024 10:31:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281009

            Bug ID: 281009
           Summary: editors/neovim doesn't build (with ccache)?
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: adamw@FreeBSD.org
          Reporter: vsasjason@gmail.com
             Flags: maintainer-feedback?(adamw@FreeBSD.org)
          Assignee: adamw@FreeBSD.org

Created attachment 253035
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253035&action=edit
poudriere build failure log

For some reason, CMakeTestCCompiler.cmake fails due to /nonexistent dir which
obviously doesn't exists. This affects neovim only, ~600 other ports are
building totally fine including those using CMake as well.

loading initial cache file
/wrkdirs/usr/ports/editors/neovim/work/.build/.deps/build/tmp/treesitter_query-cache-Release.cmake
-- The C compiler identification is Clang 18.1.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/local/libexec/ccache/cc
-- Check for working C compiler: /usr/local/libexec/ccache/cc - broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:67
(message):
  The C compiler

    "/usr/local/libexec/ccache/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir:
'/wrkdirs/usr/ports/editors/neovim/work/.build/.deps/build/src/treesitter_query-build/CMakeFiles/CMakeScratch/TryCompile-jEIFhw'

    Run Build Command(s): /usr/local/bin/ninja -v cmTC_eb36d
    [1/2] /usr/local/libexec/ccache/cc   -std=gnu99 -fPIE -MD -MT
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o -MF
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o.d -o
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o -c
/wrkdirs/usr/ports/editors/neovim/work/.build/.deps/build/src/treesitter_query-build/CMakeFiles/CMakeScratch/TryCompile-jEIFhw/testCCompiler.c
    FAILED: CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o 
    /usr/local/libexec/ccache/cc   -std=gnu99 -fPIE -MD -MT
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o -MF
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o.d -o
CMakeFiles/cmTC_eb36d.dir/testCCompiler.c.o -c
/wrkdirs/usr/ports/editors/neovim/work/.build/.deps/build/src/treesitter_query-build/CMakeFiles/CMakeScratch/TryCompile-jEIFhw/testCCompiler.c
    ccache: error: Failed to create directory /nonexistent/.ccache/tmp:
Permission denied
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.

*** Error code 1

Stop.
make: stopped in /usr/ports/editors/neovim

-- 
You are receiving this mail because:
You are the assignee for the bug.