Perl 5.22 throws warnings for unescaped '{', and pari treats warnings as errors 
by default. I'm using this patch for system-wide pari:

https://projects.archlinux.org/svntogit/community.git/tree/trunk/no_warnings_fatal.patch?h=packages/pari-sage

Joshua Hunt wrote:

> Hi,
> 
> Perl is v5.22.0.
> 
> Did you pass any funny flags to make (apart from -j4)?
>>
> 
> Nope, only -j4.
> 
> Can you please try following and send me the output?
>>
> 
>> echo garbage > local/share/pari/pari.desc
>> ./sage -ba
>>
> 
> I get the following:
> 
> Deleting Sage library build artifacts...
>> rm -f c_lib/.sconsign.dblite
>> find c_lib -name '*.os' | xargs rm -f
>> find c_lib -name '*.so' | xargs rm -f
>> find c_lib -name '*.dylib' | xargs rm -f
>> rm -rf build
>> find . -name '*.pyc' | xargs rm -f
>> rm -f sage/libs/pari/auto_*
>> rm -rf sage/ext/interpreters
>> This looks like the first time you are running Sage.
>> Updating various hardcoded paths...
>> (Please wait at most a few minutes.)
>> DO NOT INTERRUPT THIS.
>> Done updating paths.
>> make csage
>> make[1]: Entering directory '/home/joshua/build/sage-6.7/src'
>> cd c_lib && scons -Q install
>> Install file: "include/interrupt.h" as
>> "/home/joshua/build/sage-6.7/local/include/csage/interrupt.h"
>> Install file: "include/ntl_wrap.h" as
>> "/home/joshua/build/sage-6.7/local/include/csage/ntl_wrap.h"
>> gcc -o src/interrupt.os -c -fPIC
>> -I/home/joshua/build/sage-6.7/local/include
>> -I/home/joshua/build/sage-6.7/local/include/python2.7
>> -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/interrupt.c
>> In file included from
>> /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0,
>>                  from include/interrupt.h:58,
>>                  from src/interrupt.c:43:
>> /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0:
>> warning: "_POSIX_C_SOURCE" redefined
>>  #define _POSIX_C_SOURCE 200112L
>>  ^
>> In file included from /usr/include/stdio.h:27:0,
>>                  from src/interrupt.c:29:
>> /usr/include/features.h:225:0: note: this is the location of the previous
>> definition
>>  # define _POSIX_C_SOURCE 200809L
>>  ^
>> src/interrupt.c: In function ‘print_enhanced_backtrace’:
>> src/interrupt.c:411:5: warning: implicit declaration of function
>> ‘waitpid’
>> [-Wimplicit-function-declaration]
>>      waitpid(pid, NULL, 0);
>>      ^
>> g++ -o src/ntl_wrap.os -c -fPIC
>> -I/home/joshua/build/sage-6.7/local/include
>> -I/home/joshua/build/sage-6.7/local/include/python2.7
>> -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude
>> src/ntl_wrap.cpp In file included from
>> /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0,
>>                  from include/ntl_wrap.h:33,
>>                  from src/ntl_wrap.cpp:5:
>> /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0:
>> warning: "_POSIX_C_SOURCE" redefined
>>  #define _POSIX_C_SOURCE 200112L
>>  ^
>> In file included from
>> /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
>>                  from
>> /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482,
>>                  from /usr/include/c++/5.1.0/iostream:38,
>>                  from src/ntl_wrap.cpp:1:
>> /usr/include/features.h:225:0: note: this is the location of the previous
>> definition
>>  # define _POSIX_C_SOURCE 200809L
>>  ^
>> In file included from
>> /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0,
>>                  from include/ntl_wrap.h:33,
>>                  from src/ntl_wrap.cpp:5:
>> /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1204:0:
>> warning: "_XOPEN_SOURCE" redefined
>>  #define _XOPEN_SOURCE 600
>>  ^
>> In file included from
>> /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0,
>>                  from
>> /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482,
>>                  from /usr/include/c++/5.1.0/iostream:38,
>>                  from src/ntl_wrap.cpp:1:
>> /usr/include/features.h:166:0: note: this is the location of the previous
>> definition
>>  # define _XOPEN_SOURCE 700
>>  ^
>> g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os
>> -L/home/joshua/build/sage-6.7/local/lib
>> -L/home/joshua/build/sage-6.7/local/lib/python2.7/config -lntl -lpari
>> -lgmp -lpython2.7
>> Install file: "libcsage.so" as
>> "/home/joshua/build/sage-6.7/local/lib/libcsage.so"
>> make[1]: Leaving directory '/home/joshua/build/sage-6.7/src'
>> make sage
>> make[1]: Entering directory '/home/joshua/build/sage-6.7/src'
>> python -c "from sage_setup.autogen.pari import rebuild; rebuild()"
>> Traceback (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 232, in __call__
>>     D = read_pari_desc()
>>   File "sage_setup/autogen/pari/parser.py", line 87, in read_pari_desc
>>     while lines[n].startswith(" "):
>> IndexError: list index out of range
>> Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed
>> make[1]: *** [sage/libs/pari/auto_gen.pxi] Error 1
>> make[1]: Leaving directory '/home/joshua/build/sage-6.7/src'
>> Makefile:5: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
> 


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to