Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building pyprocessing on Solaris SPARC after changes to python #8371

Closed
sagetrac-drkirkby mannequin opened this issue Feb 25, 2010 · 5 comments
Closed

Error building pyprocessing on Solaris SPARC after changes to python #8371

sagetrac-drkirkby mannequin opened this issue Feb 25, 2010 · 5 comments

Comments

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Feb 25, 2010

== The computer hardware & software ==

  • Sun Blade 1000
  • 2 x 900 MHz UltraSPARC III+ CPUs
  • 2 GB RAM
  • Solaris 10 03/2005 - the first release of Solaris 10.

== The Sage software ==
Sage 4.3.3 which comes with python-2.6.4.p5 and pyprocessing-0.52.p0

== The problem ==
This is a long story, so I'll keep it short.

  • Implement 2-isogeny descent over QQ natively in Sage using ratpoints #6583 "Implement 2-isogeny descent over QQ natively in Sage using ratpoints" was integrated into Sage 4.3.1.

  • The above patch, which was not properly checked on Solaris, broke the Solaris build as reported at GCC reports incorrect flags compiling descent_two_isogeny.c on Solaris 10 #7867

  • Jaap Spies found this link http://bugs.python.org/issue1759169 which suggests this is a bug in python, which will be fixed in the next 2.6 release. But a patch is provided on the python web site.

  • remove the pyprocessing spkg from sage, then sort out any fallout that results #6503 is an 8-month old patch to remove pyprocessing from Sage, as the multiprocessing module, which has a slightly different API, is now part of Python 2.6.

  • The patch at http://bugs.python.org/issue1759169 was integrated into python-2.6.4.p5, but it broke the build of pyprocessing as below

    copying doc/connection-objects.html -> build/lib.solaris-2.10-sun4u-2.6/processing/doc
    copying doc/programming-guidelines.html -> build/lib.solaris-2.10-sun4u-2.6/processing/doc
    copying doc/intro.html -> build/lib.solaris-2.10-sun4u-2.6/processing/doc
    copying doc/CHANGES.html -> build/lib.solaris-2.10-sun4u-2.6/processing/doc
    copying doc/html4css1.css -> build/lib.solaris-2.10-sun4u-2.6/processing/doc
    copying doc/../index.html -> build/lib.solaris-2.10-sun4u-2.6/processing/doc/..
    running build_ext
    building 'processing._processing' extension
    creating build/temp.solaris-2.10-sun4u-2.6
    creating build/temp.solaris-2.10-sun4u-2.6/src
    gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -I/export/home/drkirkby/sage-4.3.3/local/include/python2.6 -c src/processing.c -o build/temp.solaris-2.10-sun4u-2.6/src/processing.o
    src/processing.c: In function 'processing_sendfd':
    src/processing.c:158: warning: implicit declaration of function 'CMSG_SPACE'
    src/processing.c:168: error: 'struct msghdr' has no member named 'msg_control'
    src/processing.c:169: error: 'struct msghdr' has no member named 'msg_controllen'
    src/processing.c:172: warning: implicit declaration of function 'CMSG_FIRSTHDR'
    src/processing.c:172: warning: assignment makes pointer from integer without a cast
    src/processing.c:175: warning: implicit declaration of function 'CMSG_LEN'
    src/processing.c:176: error: 'struct msghdr' has no member named 'msg_controllen'
    src/processing.c:177: warning: implicit declaration of function 'CMSG_DATA'
    src/processing.c: In function 'processing_recvfd':
    src/processing.c:203: error: 'struct msghdr' has no member named 'msg_control'
    src/processing.c:204: error: 'struct msghdr' has no member named 'msg_controllen'
    src/processing.c:207: warning: assignment makes pointer from integer without a cast
    src/processing.c:211: error: 'struct msghdr' has no member named 'msg_controllen'
    error: command 'gcc' failed with exit status 1
    
    real    0m0.791s
    user    0m0.532s
    sys     0m0.189s
    sage: An error occurred while installing pyprocessing-0.52.p0
    

Component: porting: Solaris

Issue created by migration from https://trac.sagemath.org/ticket/8371

@sagetrac-drkirkby sagetrac-drkirkby mannequin added this to the sage-4.3.4 milestone Feb 25, 2010
@sagetrac-drkirkby sagetrac-drkirkby mannequin self-assigned this Feb 25, 2010
@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 1, 2010

comment:1

The revised spkg can be found at:

http://boxen.math.washington.edu/home/kirkby/Solaris-fixes/pyprocessing-0.52.p1/pyprocessing-0.52.p1.spkg

The Mercurial patch is attached.

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 1, 2010

Mercurial patch

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 1, 2010

comment:2

Attachment: Solaris-specific-patch-for-pyprocessing.patch.gz

@sagetrac-drkirkby
Copy link
Mannequin Author

sagetrac-drkirkby mannequin commented Mar 1, 2010

comment:3

Updating to blocker, as this essential for a succesful Solaris build. However, if #6503 is merged, then this can be ignored, as that intends removing all of pyprocessing. But the ticket is 8 months old.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Mar 3, 2010

comment:4

Closing this as wontfix since #6503 removes pyprocessing from the standard spkg repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants