Re: [sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-07 Thread Francois Bissey
doctesting will fail but building is OK, if dangerous if you are not sandboxed
one way or another.

François

> On 8/03/2017, at 18:59, John H Palmieri  wrote:
> 
> Although it's not a good idea to build Sage as root. I think it is likely to 
> fail -- someone please correct me if I'm wrong.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-07 Thread John H Palmieri
Although it's not a good idea to build Sage as root. I think it is likely 
to fail -- someone please correct me if I'm wrong.

   John


On Tuesday, March 7, 2017 at 6:37:33 PM UTC-8, François wrote:
>
> Not at all. It has to do with sage’s python including this patch 
>
> https://github.com/sagemath/sage/blob/master/build/pkgs/python2/patches/sys_path_security-issue_16202.patch
>  
> it is something that Dima mentioned earlier in the thread. 
>
> François 
>
> > On 8/03/2017, at 15:24, Gere Mia  
> wrote: 
> > 
> > Does this have something to do with my building Sage as root? 
> > 
> > On Tuesday, March 7, 2017 at 7:23:40 PM UTC-7, Gere Mia wrote: 
> > Now I get this error regarding installing package pip-8.1.2.p1: 
> > sys:1: RuntimeWarning: not adding directory '' to sys.path since it's 
> not owned by a trusted user. 
> > 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 
> > /tmp/SBo/sage-7.5.1/local/bin/python: No module named pip 
> > 
> > -- 
> > 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+...@googlegroups.com . 
> > To post to this group, send email to sage-...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-07 Thread Francois Bissey
Not at all. It has to do with sage’s python including this patch
https://github.com/sagemath/sage/blob/master/build/pkgs/python2/patches/sys_path_security-issue_16202.patch
it is something that Dima mentioned earlier in the thread.

François

> On 8/03/2017, at 15:24, Gere Mia  wrote:
> 
> Does this have something to do with my building Sage as root?
> 
> On Tuesday, March 7, 2017 at 7:23:40 PM UTC-7, Gere Mia wrote:
> Now I get this error regarding installing package pip-8.1.2.p1:
> sys:1: RuntimeWarning: not adding directory '' to sys.path since it's not 
> owned by a trusted user.
> 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
> /tmp/SBo/sage-7.5.1/local/bin/python: No module named pip
> 
> -- 
> 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 https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-07 Thread Francois Bissey
Apart from a possible unusual version of make could you 
try 
MAKE=“make -d” ./sage -p tachyon
That will generate a lot of output but there could be a clue
as to why it tries to go in a folder - which is totally abnormal.

François

> On 7/03/2017, at 06:35, Gere Mia  wrote:
> 
> I get this build error when trying to build tachyon-0.98.9.p5 in the recent 
> Sage 7.5.1.
> Is there a fix for this?
> thanks
> 
> -- 
> 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 https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-07 Thread Jeroen Demeyer

Just a guess: do you have a broken/unusual version of Make?

I would suggest to try upgrading to the latest version of GNU Make and 
try again.


--
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] tachyon-0.98.9.p5 build error in Linux

2017-03-06 Thread Gere Mia
I get this build error when trying to build tachyon-0.98.9.p5 in the recent 
Sage 7.5.1.
Is there a fix for this?
thanks

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
Found local metadata for tachyon-0.98.9.p5
Using cached file /tmp/SBo/sage-7.5.1/upstream/tachyon-0.98.9.tar.bz2
tachyon-0.98.9.p5

Setting up build directory for tachyon-0.98.9.p5
Finished extraction
Applying patches from ../patches...
Applying ../patches/Make-arch.patch
patching file unix/Make-arch
Applying ../patches/Make-config.patch
patching file unix/Make-config
Applying ../patches/main.c.patch
patching file demosrc/main.c

Host system:
Linux Geremia 4.4.38 #2 SMP Sun Dec 11 16:11:02 CST 2016 x86_64 Intel(R) 
Core(TM) i5-2410M CPU @ 2.30GHz GenuineIntel GNU/Linux

C compiler: gcc
C compiler version:
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/5.4.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/5.4.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-5.4.0/configure --prefix=/usr --libdir=/usr/lib64 
--mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap 
--enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix 
--enable-checking=release --enable-objc-gc --with-system-zlib 
--with-python-dir=/lib64/python2.7/site-packages --enable-libstdcxx-dual-abi 
--with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions 
--enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty 
--with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre 
--with-jvm-root-dir=/usr/lib64/jvm 
--with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 
--with-antlr-jar=/home/slackware/slackbuilds/gcc/antlr-runtime-3.4.jar 
--enable-multilib --target=x86_64-slackware-linux 
--build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 5.4.0 (GCC) 

make[3]: Entering directory 
'/tmp/SBo/sage-7.5.1/local/var/tmp/sage/build/tachyon-0.98.9.p5/src/unix'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make all \
"ARCH = linux-64-thr" \
"CFLAGS = -m64 -Wall -O3 -fomit-frame-pointer -ffast-math -DLinux -DLP64 -DTHR 
-D_REENTRANT  -DUSEPNG-I/tmp/SBo/sage-7.5.1/local/include " \
"ARFLAGS = r" \
"STRIP = strip" \
"LIBS = -L. -ltachyon  -L/tmp/SBo/sage-7.5.1/local/lib -lpng12 -lz 
-L/tmp/SBo/sage-7.5.1/local/lib -Wl,-rpath,/tmp/SBo/sage-7.5.1/local/lib   -lm 
-lpthread"
make: Entering an unknown directory
make: *** empty variable name.  Stop.
make: Leaving an unknown directory
make[3]: *** [Make-arch:1085: linux-64-thr] Error 2
make[3]: Leaving directory 
'/tmp/SBo/sage-7.5.1/local/var/tmp/sage/build/tachyon-0.98.9.p5/src/unix'
Error building Tachyon Ray Tracer.

real0m0.196s
user0m0.012s
sys 0m0.005s

Error installing package tachyon-0.98.9.p5

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /tmp/SBo/sage-7.5.1/logs/pkgs/tachyon-0.98.9.p5.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/tmp/SBo/sage-7.5.1/local/var/tmp/sage/build/tachyon-0.98.9.p5 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 '/tmp/SBo/sage-7.5.1/local/var/tmp/sage/build/tachyon-0.98.9.p5' && 
'/tmp/SBo/sage-7.5.1/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.

Found local metadata for tachyon-0.98.9.p5
Using cached file /tmp/SBo/sage-7.5.1/upstream/tachyon-0.98.9.tar.bz2
tachyon-0.98.9.p5

Moving old directory tachyon-0.98.9.p5 to 
/tmp/SBo/sage-7.5.1/local/var/tmp/sage/build/old...
Setting up build directory for tachyon-0.98.9.p5
Finished extraction
Applying patches from ../patches...
Applying ../patches/Make-arch.patch
patching file unix/Make-arch
Applying ../patches/Make-config.patch
patching file unix/Make-config
Applying ../patches/main.c.patch
patching file demosrc/main.c