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]

Permissions problems with crosstool-0.42


I'm trying to build an x86_64 cross-compiler, but I keep getting 
permissions errors. Has anyone else seen this? How do I fix it?

Here's the script I'm running:
[akemp@slapshot crosstool-0.42]$ cat demo-x86_64.sh
#!/bin/sh
set -ex
TARBALLS_DIR=$HOME/crossgcc/download
RESULT_TOP=/opt/crosstool
export TARBALLS_DIR RESULT_TOP
GCC_LANGUAGES="c,c++"
export GCC_LANGUAGES

eval `cat x86_64.dat gcc-4.1.0-glibc-2.3.6.dat` sh all.sh --notest

echo Done.

[akemp@slapshot crosstool-0.42]$ ls -ld /opt/crosstool/
drwxr-xr-x    2 akemp    root         4096 Jul 14 14:51 /opt/crosstool/

[akemp@slapshot crosstool-0.42]$ ./demo-x86_64.sh
...
linuxthreads_db/ChangeLog
linuxthreads_db/td_ta_get_nthreads.c
linuxthreads_db/td_thr_setsigpending.c
linuxthreads_db/Banner
linuxthreads_db/td_thr_tls_get_addr.c
linuxthreads_db/td_ta_get_stats.c
applying patch 
/home/akemp/crossgcc/crosstool-0.42/patches/glibc-linuxthreads-2.3.6/glibc-linuxthreads-2.3.5-cygwin.patch
patching file linuxthreads/Makefile
grep: 
/home/akemp/crossgcc/crosstool-0.42/build/x86_64-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/binutils-2.16.1/patches/README: 
No such file or directory
+ test '' = ''
+ '[' -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.


--
Adam Kemp
adam.kemp@ni.com
(512) 683-6058

--
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]