Skip to content

CI: spurious error building LLVM on mingw: ranlib.exe: could not create temporary file whilst writing archive: no more archived files #108227

Closed

Description

@erikdesjardins
# the specific codegen library differs, sometimes libLLVMSparcCodeGen.a, sometimes libLLVMM68kCodeGen.a, etc.
FAILED: lib/libLLVMSparcCodeGen.a
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f lib\libLLVMSparcCodeGen.a && D:\a\rust\rust\mingw32\bin\ar.exe qc lib\libLLVMSparcCodeGen.a  lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/DelaySlotFiller.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/LeonPasses.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcAsmPrinter.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcInstrInfo.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcISelDAGToDAG.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcISelLowering.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcFrameLowering.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcMachineFunctionInfo.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcRegisterInfo.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcSubtarget.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcTargetMachine.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcMCInstLower.cpp.obj lib/Target/Sparc/CMakeFiles/LLVMSparcCodeGen.dir/SparcTargetObjectFile.cpp.obj && D:\a\rust\rust\mingw32\bin\ranlib.exe lib\libLLVMSparcCodeGen.a && cd ."
D:\a\rust\rust\mingw32\bin\ranlib.exe: could not create temporary file whilst writing archive: no more archived files

This has happened on quite a few PRs recently:

I've seen it happen on the following builders (all mingw builders I guess):

  • dist-i686-mingw
  • i686-mingw-1
  • i686-mingw-2
  • dist-x86_64-mingw
  • x86_64-mingw-2

@rustbot label A-spurious A-LLVM O-Windows

Activity

  1. added
    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
    A-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)
    O-windowsOperating system: Windows
    on Feb 19, 2023
  2. klensy commented on Feb 25, 2023

    @klensy
    Contributor

    Ok, internet knows about this problem, https://osdn.net/projects/mingw/lists/archive/users/2019-January/thread.html#198

    https://osdn.net/projects/mingw/lists/archive/users/2019-January/000228.html

    the buggy mkstemp() has infected the binutils-2.31.1-1, and
    gcc-8.2.0-2 builds.

    So this should be solved long ago?

  3. added
    O-windows-gnuToolchain: GNU, Operating system: Windows
    and removed
    O-windowsOperating system: Windows
    on Feb 25, 2023
  4. mati865 commented on Mar 1, 2023

    @mati865
    Member

    I think it started with #100178

    Ok, internet knows about this problem, https://osdn.net/projects/mingw/lists/archive/users/2019-January/thread.html#198

    https://osdn.net/projects/mingw/lists/archive/users/2019-January/000228.html

    the buggy mkstemp() has infected the binutils-2.31.1-1, and
    gcc-8.2.0-2 builds.

    So this should be solved long ago?

    Could be a new regression...

  5. added a commit that references this issue on Mar 26, 2023
  6. added a commit that references this issue on Mar 26, 2023
  7. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Apr 5, 2023
  8. added a commit that references this issue on Apr 16, 2023
  9. added a commit that references this issue on May 16, 2023
  10. mati865 commented on Nov 7, 2024

    @mati865
    Member

    Triage: this is not fixed by #119229
    To fix this the target tools (binutils) need to be rebuilt with latest mingw-w64 which still didn't happen.

  11. added 2 commits that reference this issue on Jul 2, 2026
  12. added a commit that references this issue on Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)C-bugCategory: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions