[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: file permission error during make after source change
From: |
ckim |
Subject: |
RE: file permission error during make after source change |
Date: |
Tue, 26 Jan 2021 20:23:54 +0900 |
Thank you so much,
I'll use those methods.
Chan Kim
> -----Original Message-----
> From: Peter Maydell <peter.maydell@linaro.org>
> Sent: Tuesday, January 26, 2021 6:40 PM
> To: Chan Kim <ckim@etri.re.kr>
> Cc: qemu-discuss <qemu-discuss@nongnu.org>
> Subject: Re: file permission error during make after source change
>
> On Tue, 26 Jan 2021 at 02:48, <ckim@etri.re.kr> wrote:
> >
> > I found just ‘sudo make’ solves it…
>
> That's not ideal. (Probably the 'sudo make install' decided to rebuild
> some files, which then were owned by root so a non-root 'make'
> cannot overwrite them.)
>
> If you do a 'sudo make distclean' that should get rid of the root-owned
> files and you can do a normal 'make' as your own user.
>
> Some suggestions:
> * you don't need to 'make install' to test changes, you can
> just run the QEMU binaries directly from the build directory.
> That means you can avoid doing anything as root while you're
> developing.
> * I recommend using a build directory, where you:
> mkdir build
> (cd build && ../configure [configure arguments here]
> make -C build
> and then QEMU will put its binaries and other files generated
> during the build in build/ rather than in with the source files.
> This means it's easy to just rm -rf build and get back to a
> clean tree. (You can also have multiple build directories if
> you want to build with more than one set of configure options.)
>
> thanks
> -- PMM