#14265: Compile Python as C99
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  tbd         
           Type:  defect          |        Status:  needs_review
       Priority:  blocker         |     Milestone:  sage-5.9    
      Component:  packages        |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------

Comment (by leif):

 Building Sage 5.8.rc0 from scratch with this spkg on mark (Solaris 5.10,
 GCC 4.7.0, CFLAGS et al. not set), I get a lot of (additional, I think)
 warnings, and at least SageNB and the Sage library fail to build:

 {{{
 ...
 Building modified file sage/ext/interpreters/wrapper_el.pyx.
 Executing 341 commands (using 1 thread)
 Traceback (most recent call last):
   File "setup.py", line 835, in <module>
     execute_list_of_commands(queue)
   File "setup.py", line 278, in execute_list_of_commands
     execute_list_of_commands_in_parallel(command_list, nthreads)
   File "setup.py", line 226, in execute_list_of_commands_in_parallel
     from multiprocessing import Pool
   File
 
"/home/leif/Sage/release/build/mark/sage-5.8.rc0-gcc-4.7.0/local/lib/python/multiprocessing/__init__.py",
 line 84, in <module>
     import _multiprocessing
 ImportError: No module named _multiprocessing
 Error installing modified sage library code.
 ERROR installing Sage
 }}}
 (Haven't investigated the Python build log yet.)

 SageNB:
 {{{
 ...
 Processing zope.interface-4.0.3.tar.gz
 Running zope.interface-4.0.3/setup.py -q bdist_egg --dist-dir /tmp
 /easy_install-TRxDqq/zope.interface-4.0.3/egg-dist-tmp-5XxIwA
 In file included from /usr/include/limits.h:18:0,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/limits.h:169,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/syslimits.h:7,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/limits.h:34,
                  from
 
/home/leif/Sage/release/build/mark/sage-5.8.rc0-gcc-4.7.0/local/include/python2.7/Python.h:19,
                  from
 src/zope/interface/_zope_interface_coptimizations.c:15:
 /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc/sparc-sun-
 solaris2.10/4.7.0/include-fixed/sys/feature_tests.h
 :341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open
 applications  and pre-2001 POSIX applications"
 
********************************************************************************
 WARNING:

         An optional code optimization (C extension) could not be compiled.

         Optimizations for this package will not be available!
 ()
 command 'gcc' failed with exit status 1
 
********************************************************************************
 Adding zope.interface 4.0.3 to easy-install.pth file
 ...
 Running Twisted-12.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
 lSWXxx/Twisted-12.3.0/egg-dist-tmp-mH8uhP
 In file included from /usr/include/sys/types.h:18:0,
                  from /usr/include/rpc/types.h:16,
                  from /usr/include/rpc/rpc.h:19,
                  from conftest.c:1:
 /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc/sparc-sun-
 solaris2.10/4.7.0/include-fixed/sys/feature_tests.h
 :341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open
 applications  and pre-2001 POSIX applications"
 In file included from /usr/include/rpc/rpcb_clnt.h:31:0,
                  from /usr/include/rpc/rpc.h:46,
                  from conftest.c:1:
 /usr/include/rpc/rpcb_prot.h:162:3: error: unknown type name 'u_int'
 /usr/include/rpc/rpcb_prot.h:198:3: error: unknown type name 'u_int'
 /usr/include/rpc/rpcb_prot.h:226:2: error: unknown type name 'u_int'
 /usr/include/rpc/rpcb_prot.h:479:1: error: unknown type name 'u_int'
 /usr/include/rpc/rpcb_prot.h:492:1: error: unknown type name 'u_int'
 conftest.c:1:23: fatal error: sys/epoll.h: No such file or directory
 compilation terminated.
 In file included from /usr/include/limits.h:18:0,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/limits.h:169,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/syslimits.h:7,
                  from /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc
 /sparc-sun-solaris2.10/4.7.0/include-fixed/limits.h:34,
                  from
 
/home/leif/Sage/release/build/mark/sage-5.8.rc0-gcc-4.7.0/local/include/python2.7/Python.h:19,
                  from twisted/test/raiser.c:4:
 /usr/local/gcc-4.7.0/sparc-SunOS-ultrasparc3/lib/gcc/sparc-sun-
 solaris2.10/4.7.0/include-fixed/sys/feature_tests.h
 :341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open
 applications  and pre-2001 POSIX applications"
 error: Setup script exited with error: command 'gcc' failed with exit
 status 1
 Error installing Twisted-12.3.0.tar.bz2 !

 real    0m28.292s
 user    0m8.691s
 sys     0m2.294s
 ************************************************************************
 Error installing package sagenb-0.10.4
 ************************************************************************
 }}}

 Countless warnings like
 {{{
 .../sage-5.8.rc0-gcc-4.7.0/local/include/python2.7/pyconfig.h:1136:0:
 warning: "_FILE_OFFSET_BITS" redefined [enabled by default]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14265#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" 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-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to