On 18 July 2016 at 14:26, leif <not.rea...@online.de> wrote: > John Cremona wrote: >> I have a similar problem, on a machine which has successfully built >> Sage in the past. Version 7.2 (literally commit f76401f). >> >> The last few commainds in history are >> >> make distclean >> ../configure >> make >> make >> >> but each of the last two make's ends with the following, also >> mentioning sage_setup.autogen.pari: >> >> >> make[3]: Entering directory `/home/lmfdb/sage/src' >> python -c "from sage_setup.autogen.pari import rebuild; rebuild()" >> 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 >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> ImportError: No module named sage_setup.autogen.pari >> make[3]: *** [sage/libs/pari/auto_gen.pxi] Error 1 >> make[3]: Leaving directory `/home/lmfdb/sage/src' > > Well, which group owns the folder, and does that group need write access?
Nothing unusual. The directory and all under it are owned by the user doing the build (me) and the group ownership is the same. The permissions are only for the user, not the group -- all this is exactly as on all other machines where I build Sage often. > > As a work-around, either change the group or chmod g-w ... OK -- I did a recursive g-w on the whole directory and that seems to have done the trick. I have no idea how the group access got to be so lenient in this instance. Now the build continues. Thanks, Leif! John > > > -leif > >> >> On 18 July 2016 at 14:04, Thierry <sage-googlesu...@lma.metelu.net> wrote: >>> I can not reproduce your problem with 7.3.beta7 (downloaded from Sage's >>> git/trac server). >>> >>> That said, if you make some modifications of Sage source code, you can just >>> do >>> 'make' afterwards. >>> >>> Ciao, >>> Thierry >>> >>> >>> On Mon, Jul 18, 2016 at 05:48:39AM -0700, 'Paul Mercat' via sage-devel >>> wrote: >>>> Yes, I successfully ran 'make'. >>>> But I need to run 'sage -b' because I want to modify some things in the >>>> source code. >>>> But this command doesn't work even if I don't make any change in the source >>>> code. >>>> >>>> Ciao >>>> Paul >>>> >>>> Le lundi 18 juillet 2016 13:24:41 UTC+2, Thierry (sage-googlesucks@xxx) a >>>> écrit : >>>>> >>>>> Hi, >>>>> >>>>> On Mon, Jul 18, 2016 at 03:48:47AM -0700, 'Paul Mercat' via sage-devel >>>>> wrote: >>>>>> Hi ! >>>>>> >>>>>> I just installed the last developpement version of sage with >>>>>> git clone git://github.com/sagemath/sage.git >>>>>> and it compiles correctly on my Ubuntu 16.04 computer. >>>>> >>>>> Do you mean that at this point you sucessfully ran 'make' ? If so, there >>>>> is no >>>>> need to run 'sage -b' (or you need to provide more details about your >>>>> workflow). >>>>> >>>>> Ciao, >>>>> Thierry >>>>> >>>>> >>>>>> ... qflllTraceback (most recent call last): >>>>>> File "<string>", line 1, in <module> >>>>>> File "sage_setup/autogen/pari/__init__.py", line 5, in rebuild >>>>>> G() >>>>>> File "sage_setup/autogen/pari/generator.py", line 249, in __call__ >>>>>> self.handle_pari_function(**v) >>>>>> File "sage_setup/autogen/pari/generator.py", line 190, in >>>>>> handle_pari_function >>>>>> get_rest_doc(function)) >>>>>> File "sage_setup/autogen/pari/doc.py", line 365, in get_rest_doc >>>>>> return raw_to_rest(raw) >>>>>> File "sage_setup/autogen/pari/doc.py", line 224, in raw_to_rest >>>>>> raise SyntaxError("@ found: " + doc[ilow:ihigh]) >>>>>> SyntaxError: @ found: i,j} <= \|0.51\|`, and the >>>>>> Lov@[aacute]sz's constant is :mat >>>>>> Makefile:19 : la recette pour la cible « sage/libs/pari/auto_gen.pxi » a >>>>>> échouée >>>>>> make: *** [sage/libs/pari/auto_gen.pxi] Erreur 1 >>>>>> >>>>>> How can I get ride of this error ? >>>>>> I really need to make this works in order to use tools that I have >>>>>> developped for sage. >>>>>> >>>>>> Thanks ! >>>>>> Paul >>>>>> >>>>>> -- >>>>>> 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 <javascript:>. >>>>>> To post to this group, send email to sage-...@googlegroups.com >>>>> <javascript:>. >>>>>> 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. >>> >>> -- >>> 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. -- 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.