Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jul 2024 10:17:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280170] FreeBSD clang over sshfs changes date of input files, causing always-recompile
Message-ID:  <bug-280170-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280170

            Bug ID: 280170
           Summary: FreeBSD clang over sshfs changes date of input files,
                    causing always-recompile
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: avuai@gmx.de

To reproduce:
go into a directory that was mounted with sshfs
echo "int a;" > my.c     (empty file is not affected)
note its modification date with ls -l
wait until next minute or set a past timestamp using touch -m
clang -c my.c
note that my.c's modification date was changed by clang

This causes a Makefile to always recompile

I don't know whether the root cause is Clang or sshfs but it does not occur
when nano opens my.c
It does not occur on Linux when I reverse the sshfs direction between my
machines, but see version differences below

FreeBSD clang version 18.1.5

FreeBSD:  sshfs --version
SSHFS version 3.7.3
FUSE library version 3.16.2
using FUSE kernel interface version 7.38
mount_fusefs [fuse4bsd] version: 0.3.9-pre1

Linux clang:  Ubuntu clang version 14.0.0-1ubuntu1.1

Linux:  sshfs --version
SSHFS version 3.7.1
FUSE library version 3.10.5
using FUSE kernel interface version 7.31
fusermount3 version: 3.10.5

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280170-227>