Permissions problems with crosstool-0.42

David Kahn dmkahn@gmail.com
Fri Jul 14 21:41:00 GMT 2006


Adam Kemp wrote:

> + '[' -d /opt/cross ']'
> + mkdir -p /opt/cross
> mkdir: cannot create directory `/opt/cross': Permission denied
> 
> I tried changing the RESULT_TOP to /opt/cross to appease it, but then it 
> tried writing to a file in /opt. Why is it trying to write in these 
> places? It should only touch things in the download directory, the build 
> directory, and the /opt/crosstool directory.

RESULT_TOP is where the tools will be installed. It also
affects the prefix used when building the tools which is
used in library searches when the tools run. (typically
for libiconv)

If you don't have permission to write to $RESULT_TOP,
things will fail.

So, if you can't do, say "touch /opt/cross/x" or
"touch /opt/crosstools/x" when the directories
have been created, your build will fail.

One of the first things the script tries to do is
to create the RESULT_TOP directory. It's ok if
it already exists, as long as you have write permission
to it.

-David

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list