I am trying to compile sage-6.4.1 for one of my users.  I am working on a 
SLES11 SP2 machine using gcc 4.9.2 and python 2.7.7.  I am using my 
personal account and I own the build directory and all of the 
directories/files for gcc and python.  I am still getting the following 
error:

checking for a version of Python >= '2.1.0'... sys:1: RuntimeWarning: not 
adding
 directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be 
imported b
y your Python code. As a general precaution from similar exploits, you 
should no
t execute Python code from this directory

I have attached the sage_pynac-0.3.2.log for you to review.  I have tried 
looking through previous posts, but I don't see anything that quite matches 
this situation.

Thanks in advance for your help.

Cindy

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
pynac-0.3.2
====================================================
Setting up build directory for pynac-0.3.2
Finished set up
****************************************************
Host system:
Linux hpcbuild02 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 x86_64 x86_64 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/hpc/apps/SLES/3.0/x86_64/gcc/4.9.2/libexec/gcc/x86_64-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../gcc-4.9.2//configure --build=x86_64-linux-gnu --prefix=/hpc/apps/SLES/3.0/x86_64/gcc/4.9.2 --with-gmp=/hpc/apps/SLES/3.0/x86_64/gmp/5.1.3 --with-mpfr=/hpc/apps/SLES/3.0/x86_64/mpfr/3.1.2 --with-mpc=/hpc/apps/SLES/3.0/x86_64/mpc/1.0.1 --enable-checking-release --enable-languages=c,c++,fortran --disable-multilib --program-suffix=4.9.2
Thread model: posix
gcc version 4.9.2 (GCC) 
****************************************************
Starting build...
Running build_pynac...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for python... /hpc/tstapps/src/sage/sage-6.4.1/local/bin/python
checking for a version of Python >= '2.1.0'... sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
yes
checking for the distutils Python package... no
configure: error: cannot import Python module "distutils".
Please check your Python installation. The error was:
sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
make[3]: Entering directory `/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2/src'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory `/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2/src'
Error building pynac.

real    0m0.926s
user    0m0.240s
sys     0m0.180s
************************************************************************
Error installing package pynac-0.3.2
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /hpc/tstapps/src/sage/sage-6.4.1/logs/pkgs/pynac-0.3.2.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2' && '/hpc/tstapps/src/sage/sage-6.4.1/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
make[2]: *** [/hpc/tstapps/src/sage/sage-6.4.1/local/var/lib/sage/installed/pynac-0.3.2] Error 1
make[2]: Leaving directory `/hpc/tstapps/src/sage/sage-6.4.1/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/hpc/tstapps/src/sage/sage-6.4.1/build'

real    84m38.566s
user    63m46.191s
sys     12m28.511s
***************************************************************
Error building Sage.

The following package(s) may have failed to build:

package: pynac-0.3.2
log file: /hpc/tstapps/src/sage/sage-6.4.1/logs/pkgs/pynac-0.3.2.log
build directory: /hpc/tstapps/src/sage/sage-6.4.1/local/var/tmp/sage/build/pynac-0.3.2

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

make: *** [build] Error 1

Reply via email to