https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280170
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: [email protected]
Reporter: [email protected]
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
--
You are receiving this mail because:
You are the assignee for the bug.