[llvm-bugs] [Bug 31389] New: llvm-ar xo fails when setting file modification timestamp when running on a FAT32 filesystem

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 15 03:52:37 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31389

            Bug ID: 31389
           Summary: llvm-ar xo fails when setting file modification
                    timestamp when running on a FAT32 filesystem
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-ar
          Assignee: unassignedbugs at nondot.org
          Reporter: jujjyl at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17758
  --> https://llvm.org/bugs/attachment.cgi?id=17758&action=edit
test case

Testing on a Windows 10 system:

STR:

1. Download and copy the attached libz.a to a directory on a FAT32 filesystem.
2. Run 'llvm-ar xo libz.a adler32.c.o' on the file.

Observed:

The tool fails with the error message:

   llvm-ar: The parameter is incorrect.

but curiously, file adler32.c.o does appear in the directory, just its file
modification timestamp was not set.

However, if one copies the file over to a NTFS partition and reissues the
command, it succeeds and the file adler32.c.o does get the original timestamp.

Also, if one issues the command 'llvm-ar x libz.a adler32.c.o' instead (i.e.
'x' instead of 'xo'), the error is avoided (but timestamp is not set)

-- 
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/20161215/1bedafeb/attachment-0001.html>


More information about the llvm-bugs mailing list