Bug 199757 - [build] make xdev fails when /usr/src is on readonly NFS
Summary: [build] make xdev fails when /usr/src is on readonly NFS
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 11:45 UTC by Ruben Kerkhof
Modified: 2024-01-16 00:13 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Kerkhof 2015-04-28 11:45:23 UTC
I have /usr/src on a readonly nfs mount.

Trying to build an xdev toolchain:
ruben@localhost:/usr/src % sudo make -s TARGET=arm TARGET_ARCH=armv6 xdev

Results in:

===> lib/libexpat (buildincludes)
unifdef -U__VMS < /usr/src/lib/libexpat/../../contrib/expat/lib/expat.h |  sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/'  -e 's/COPYING/src\/contrib\/expat\/COPYING/'  -e 's/expat_external/bsdxml_external/'  > bsdxml.h
/bin/sh: cannot create bsdxml.h: Read-only file system
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2015-10-16 00:16:30 UTC
Adding Sean/Warner because this bug might be of interest...
Comment 2 Warner Losh freebsd_committer freebsd_triage 2024-01-16 00:13:41 UTC
I believe that this was a bug in make that has since been corrected. We don't write to the source directory after it was fixed. I recall it being a problem years ago, but haven't seen reports of it in a long time.

Just now, I cloned a tree into a new ZFS dataset. I then made that read-only and did a buildworld, buildkernel and then a make xdev-build for TARGET_ARCH=armv7 successfully.

While not NFS, this type of error would be the same on this arrangement.