This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permissions problems with crosstool-0.42


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]