[LLVMdev] Building the llvm runtime: 'Can't destroy file: The process cannot access the fi

Reid Spencer reid at x10sys.com
Wed Jan 26 12:05:51 PST 2005


It looks like what you're getting is a sharing violation. Although, I
don't understand why. The llvm-ar.exe when its building an archive file
always builds it in a temporary. Only when that is complete does it
remove the old one and rename the temporary. Perhaps this is a result of
doing parallel build and the "lib3.tmp" file (that name looks wrong to
me) is being accessed by concurrent build scripts?

Reid.

On Wed, 2005-01-26 at 11:37, Henrik Bach wrote:
> Hi Jeff and others,
> 
> When building the llvm runtime, I always get this error message: 'Can't 
> destroy file: The process cannot access the file because it is being used by 
> another process.' The file is destoyed anyway.
> 
> I think that the the real error is the path for the file (*/\file.tmp). 
> However, I can't find the bug in the source. Do you have any clue?:
> 
> -----------------------------
> llvm[3]: Building Debug Bytecode Archive libcrtend.bca
> /bin/rm -f /C/projects/build/MinGW/llvm-4-1/Debug/lib/libcrtend.bca
> /C/projects/build/MinGW/llvm-4-1/Debug/bin/llvm-ar rcsf 
> /C/projects/build/MinGW/llvm-4-1/Debug/lib/libcrtend.bca 
> /C/projects/build/MinGW/llvm-4-1/runtime/GCCLibraries/crtend/Debug/comp_genericeh.bc 
> /C/projects/build/MinGW/llvm-4-1/runtime/GCCLibraries/crtend/Debug/comp_main.bc 
> /C/projects/build/MinGW/llvm-4-1/runtime/GCCLibraries/crtend/Debug/comp_sjljeh.bc
> c:\projects\build\MinGW\llvm-4-1\Debug\bin\llvm-ar.exe: 
> c:/projects/build/MinGW/llvm-4-1/Debug/lib/\lib3.tmp: Can't destroy file: 
> The process cannot access the file because it is being used by another 
> process.
> make[3]: *** [/C/projects/build/MinGW/llvm-4-1/Debug/lib/libcrtend.bca] 
> Error 2
> -----------------------------
> 
> Henrik.
> 
> =============================================================
> Henrik Bach
> LLVM Open Source Developer
> 
> e-mail: henrik_bach_llvm at hotmail.com
> =============================================================
> 'Nothing is impossible; The impossible just takes longer time :)'
> - Inventor of a new energy saver light bulp from Denmark.
> 
> No software patents - Thank you Poland: 
> http://www.nosoftwarepatents.com/en/m/intro/app0411.html
> Got Freedom?
> Software Freedom Day - 28th of August
> http://www.softwarefreedomday.org/
> =============================================================
> 
> _________________________________________________________________
> Log på MSN Messenger direkte fra nettet  http://webmessenger.msn.com/
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050126/5509a029/attachment.sig>


More information about the llvm-dev mailing list