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

Henrik Bach henrik_bach_llvm at hotmail.com
Wed Jan 26 12:15:06 PST 2005


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/




More information about the llvm-dev mailing list