[llvm-bugs] [Bug 48833] New: Duplicate files with different cases added to reproducible package on Windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 21 01:21:24 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48833
Bug ID: 48833
Summary: Duplicate files with different cases added to
reproducible package on Windows
Product: lld
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
On a system with a case-insensitive file system, it is possible for the same
file to appear more than once in the tar file produced by --reproduce, if the
file appears more than once in the link, but with different cases.
When unpacking that tar file, the two tar members may conflict, since they have
the same effective name. Maybe LLD should perform a case-insensitive comparison
on systems with case-insensitive paths such as Windows, when determining
whether the file is already in the archive, or otherwise test for equivalence
of two paths in some manner? (I could see an argument that it is good to have
them both in the archive, in case the tar file needs to be used on a different
OS).
Example:
C:\Work> ld.lld.exe bar.o BAR.O -o bar.elf --reproduce=repro.tar
C:\Work> tar tf repro.tar
...
repro/C/Work/TempWork/bar.o
repro/C/Work/TempWork/BAR.O
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210121/0d835e03/attachment-0001.html>
More information about the llvm-bugs
mailing list