Quoting Basile Starynkevitch <bas...@starynkevitch.net>:
Hello All, Is there some trick so that the GCC trunk (or a branch like MELT) is built under some user (e.g. basile) and is installed (in the usual /usr/local prefix, which is writable by root, not by ordinary users on most Linux systems)
I usually install in more nonstandard locations - ones I can write to. So no sudo is required.
How do you build & install GCC (trunk or some other branch) without having any root owned files in the build directory?
What's the problem? you could just change the owner of the files to yourself while you are root. Or afterwards, you can delete them, as long as you can write to the directory they reside in. find builddir -user root should find them all. Then you can use command substitution, xargs, or just find itself, to chown / rm these files.