Ticket #11965 (closed defect: fixed)

Opened 19 months ago

Last modified 18 months ago

OS X 10.7 Lion: Error building sage.misc.darwin_utilities extension

Reported by: was Owned by: drkirkby
Priority: blocker Milestone: sage-4.8
Component: porting Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers: Jeroen Demeyer
Authors: William Stein Merged in: sage-4.8.alpha2
Dependencies: Stopgaps:

Description (last modified by was) (diff)

Building the sage.misc.darwin_utilities fails on OS X 10.7.2 with gcc-4.2.1 (build 5658) using XCode 4.

deep:sage wstein$ export MAKE="make -j1"
deep:sage wstein$ sage -br

----------------------------------------------------------
sage: Building and installing modified Sage library files.


Installing c_lib
scons: `install' is up to date.
Updating Cython code....
Time to execute 0 commands: 0.0105319023132 seconds
Finished compiling Cython code (time = 0.939815998077 seconds)
running install
running build
running build_py
running build_ext
building 'sage.misc.darwin_utilities' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -I/Users/wstein/sage/install/sage-4.7.3.alpha1/local/include -I/Users/wstein/sage/install/sage-4.7.3.alpha1/local/include/csage -I/Users/wstein/sage/install/sage-4.7.3.alpha1/devel/sage/sage/ext -I/Users/wstein/sage/install/sage-4.7.3.alpha1/local/include/python2.6 -c sage/misc/darwin_memory_usage.c -o build/temp.macosx-10.7-x86_64-2.6/sage/misc/darwin_memory_usage.o -w
In file included from sage/misc/darwin_memory_usage.c:4:
/usr/include/mach/task_info.h:252: 
error: expected specifier-qualifier-list before ‘vm_extmod_statistics_data_t’
error: command 'gcc' failed with exit status 1
sage: There was an error installing modified sage library code.



deep:sage wstein$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
...
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

See the #11881 metaticket for porting Sage to Lion.

Attachments

trac_11965.patch Download (587 bytes) - added by was 19 months ago.

Change History

comment:1 Changed 19 months ago by was

  • Description modified (diff)

comment:2 Changed 19 months ago by was

I got this module to build by simply commenting out the line that was importing something that is now not allowed. With this one fix the Sage-4.7.3.alpha1 library builds!

comment:3 Changed 19 months ago by was

Incidentally, getting rid of that #include does not break building on OS X 10.6, so it is likely safe.

Changed 19 months ago by was

comment:4 Changed 19 months ago by was

  • Status changed from new to needs_review

comment:5 Changed 19 months ago by was

  • Description modified (diff)

comment:6 Changed 19 months ago by jdemeyer

  • Milestone sage-4.7.3 deleted

Milestone sage-4.7.3 deleted

comment:7 Changed 19 months ago by jdemeyer

  • Priority changed from major to blocker
  • Milestone set to sage-4.8
  • Authors set to William Stein

comment:8 Changed 18 months ago by jdemeyer

  • Status changed from needs_review to closed
  • Reviewers set to Jeroen Demeyer
  • Resolution set to fixed
  • Merged in set to sage-4.8.alpha2

Works for me on OS X 10.4 PPC. With William's claim that it also works on 10.6 and 10.7, I give it a positive_review.

Note: See TracTickets for help on using tickets.