[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file permission error during make after source change
From: |
Peter Maydell |
Subject: |
Re: file permission error during make after source change |
Date: |
Tue, 26 Jan 2021 09:40:20 +0000 |
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