Ticket #11965 (closed defect: fixed)
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
Change History
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.
comment:6 Changed 19 months ago by jdemeyer
- Milestone sage-4.7.3 deleted
Milestone sage-4.7.3 deleted
Note: See
TracTickets for help on using
tickets.

