Henrik Bach
2005-Jan-26 19:37 UTC
[LLVMdev] Building the llvm runtime: 'Can't destroy file: The process cannot access the fi
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/
Reid Spencer
2005-Jan-26 20:05 UTC
[LLVMdev] Building the llvm runtime: 'Can't destroy file: The process cannot access the fi
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>
Henrik Bach
2005-Jan-26 20:15 UTC
[LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
Hi Reid, I don't think I've initiated a parallel build by this command: ------------------------ make TOOLLINKOPTSB+=-ldbghelp TOOLLINKOPTSB+=-lpsapi LDFLAGS+='-Wl,--no-keep-memory' -r VERBOSE=1 ------------------------ Henrik.>From: Reid Spencer Date: Wed, 26 Jan 2005 12:05:51 -0800 > >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? >Other times the name, have been for instance libBAE.tmp. Henrik.>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 ><< signature.asc >> >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev_________________________________________________________________ Log p� MSN Messenger direkte fra nettet http://webmessenger.msn.com/
Jeff Cohen
2005-Jan-27 03:47 UTC
[LLVMdev] Building the llvm runtime: 'Can't destroy file: The process cannot access the fi
Fixed. 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 > >
Maybe Matching Threads
- [LLVMdev] Building the llvm runtime: 'Can't destroy file: The process cannot access the fi
- [LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
- [LLVMdev] Building the llvm runtime: 'Can't destroy file:Theprocess cannot access the fi
- [LLVMdev] LLVM CFE bootstrap problem at FreeBSD after last $(Install) changes in Makefile.rules
- [LLVMdev] redhat 9, compiling llvm-1.0.tar.gz