Opened 3 years ago

Last modified 3 years ago

#22166 new defect

Cython fails its test suite on OS X

Reported by: jhpalmieri Owned by:
Priority: major Milestone: sage-7.6
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by jhpalmieri)

On OS X 10.12 with Sage 7.5.rc3 built from scratch:

Doctest: cppwrap.__test__.voidfunc (line 36) ... ok
test_embed (__main__.EmbedTest) ... ok

======================================================================
ERROR: runTest (__main__.CythonRunTestCase)
compiling (cpp) and running cpdef_extern_func
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 995, in run
    ext_so_path = self.runCompileTest()
  File "runtests.py", line 705, in runCompileTest
    self.test_directory, self.expect_errors, self.annotate)
  File "runtests.py", line 949, in compile
    so_path = self.run_distutils(test_directory, module, workdir, incdir)
  File "runtests.py", line 874, in run_distutils
    build_extension.run()
  File "/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc3/local/lib/python/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc3/local/lib/python/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "runtests.py", line 432, in build_extension
    _build_ext.build_extension(self, ext)
  File "/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc3/local/lib/python/distutils/command/build_ext.py", line 499, in build_extension
    depends=ext.depends)
  File "/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc3/local/lib/python/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/Users/palmieri/Desktop/Sage_stuff/sage_builds/TESTING/sage-7.5.rc3/local/lib/python/distutils/unixccompiler.py", line 126, in _compile
    raise CompileError, msg
CompileError: command 'gcc' failed with exit status 1

Build logs:

Change History (8)

comment:1 Changed 3 years ago by jhpalmieri

  • Description modified (diff)

comment:2 Changed 3 years ago by jhpalmieri

  • Description modified (diff)

comment:3 Changed 3 years ago by robertwb

On 10.11 the errors are

c_directives.c:739:54: error: C++ style comments are not allowed in ISO C90

Are we forcing C90 somewhere here?

Last edited 3 years ago by robertwb (previous) (diff)

comment:4 follow-up: Changed 3 years ago by robertwb

Also, are there build logs for 10.12 that have the errors in them?

comment:5 in reply to: ↑ 4 Changed 3 years ago by jhpalmieri

Replying to robertwb:

Also, are there build logs for 10.12 that have the errors in them?

I can provide one, but not until later today.

comment:7 Changed 3 years ago by jhpalmieri

  • Description modified (diff)

comment:8 Changed 3 years ago by jhpalmieri

After applying the patches, I'm still getting failures. Log file for OS X 10.12: ​http://www.math.washington.edu/~palmieri/Sage/cython-0.25.2.p0-10.12.log

Note: See TracTickets for help on using tickets.