Build Q: Anyone know why we have hard links in our gaia (windows) build process?
9 views
Skip to first unread message
Andrew Sutherland
unread,
Feb 19, 2014, 4:04:49 PM2/19/14
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-...@lists.mozilla.org
In https://bugzilla.mozilla.org/show_bug.cgi?id=971803 we are getting
intermittent recursive copy failures that look like this:
cp: will not create hard link
`../../build_stage/camera/shared/style/drawer/images/ui' to directory
`../../build_stage/camera/shared/js/device_storage'
Assuming the hard link error is not a lie, does anyone have any ideas
about where the hard links are coming from/how to stop them? A cursory
audit of gaia suggests it's not really gaia itself making this happen.
Thanks,
Andrew
John Ford
unread,
Feb 19, 2014, 5:01:36 PM2/19/14
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Andrew Sutherland, dev-...@lists.mozilla.org
The coreutils included in mozilla-build are broken in many ways. I started a reimplementation of rm in Win32 native functions that has since been greatly improved on by Vlad and is located here: https://github.com/vvuk/winrm
The issue with the rm command was, if I recall correctly, that the inode emulation had a bug in a hashing function that caused collisions. The cp command could also have a problem in the posix emulation layer, maybe even completely unrelated to hard links. It might not be much work to reimplement cp in the same fashion as rm.