[Bug 287968] lang/swift510: seems to break with ccache

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Jul 2025 15:15:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287968

            Bug ID: 287968
           Summary: lang/swift510: seems to break with ccache
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kib@FreeBSD.org
                CC: jgopensource@proton.me
             Flags: maintainer-feedback?(jgopensource@proton.me)
                CC: jgopensource@proton.me
 Attachment #261821 text/plain
         mime type:

Created attachment 261821
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261821&action=edit
poudriere log of the failing build

As stated in the but title, there seems to be some issue with ccache
configuration for swift.  Does swift modifies the global ccache settings?

    Run Build Command(s): /usr/local/bin/ninja -v cmTC_26b9e
    [1/2][ 50%][0.001s] /usr/local/libexec/ccache/clang  
-Wno-unknown-warning-option -Werror=unguarded-availability-new
-fno-stack-protector -MD -MT CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o -MF
CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o.d -o
CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o -c
/wrkdirs/usr/ports/lang/swift510/work/swift-project/build/Ninja-ReleaseAssert/cmark-freebsd-x86_64/CMakeFiles/CMakeScratch/TryCompile-CXyIeu/testCCompiler.c
    FAILED: CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o
    /usr/local/libexec/ccache/clang   -Wno-unknown-warning-option
-Werror=unguarded-availability-new -fno-stack-protector -MD -MT
CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o -MF
CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o.d -o
CMakeFiles/cmTC_26b9e.dir/testCCompiler.c.o -c
/wrkdirs/usr/ports/lang/swift510/work/swift-project/build/Ninja-ReleaseAssert/cmark-freebsd-x86_64/CMakeFiles/CMakeScratch/TryCompile-CXyIeu/testCCompiler.c
    ccache: error: Failed to create directory /nonexistent/.ccache/tmp:
Permission denied 
    ninja: build stopped: subcommand failed.

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