FS#30632 - [sage-mathematics] version 5.0.1 and 5.1 require CPU with sse2
Attached to Project:
Community Packages
Opened by Andrzej Giniewicz (Giniu) - Wednesday, 11 July 2012, 08:02 GMT
Last edited by Daniel Wallace (gtmanfred) - Monday, 23 July 2012, 15:07 GMT
Opened by Andrzej Giniewicz (Giniu) - Wednesday, 11 July 2012, 08:02 GMT
Last edited by Daniel Wallace (gtmanfred) - Monday, 23 July 2012, 15:07 GMT
|
Details
Since version 5.0.1 sage says it was compiled with sse2. If
run on machine without sse2 it isn't working - removing the
lock makes 5.0.1 run, but for 5.1 the bug
It was resolved earlier in community repo (before sage was moved to AUR), but I don't remember how, probably with some compilation flags (fat binary? it seems to be in place - maybe SAGE_ATLAS_ARCH? see tickets linked from https://bugs.archlinux.org/task/21592 - it might help). It might also be case, that upstream (re)introduced packages that does not respect some flags - but it should be verified before reporting there. |
This task depends upon
233 def configure_opt_base():
234 if conf['Intel?']:
235 print 'Base configuration on Intel compatible CPUs.'
236 arch = 'P4'
237 isa_ext = ('SSE2', 'SSE1')
....
it seems that "base" is SSE1+SSE2. Also, SAGE_ATLAS_ARCH is ignored if building FAT binary:
255 if os.environ.get('SAGE_FAT_BINARY', 'no') == 'yes' and conf['Intel?']:
256 print 'Sage "fat" binary mode set: Building SSE2 only Hammer binary'
257 print 'NOTE: This can result in a Sage that is significantly slower at certain numerical'
258 print 'linear algebra since full FAT binary support has not been implemented yet.'
259 arch = 'HAMMER'
260 isa_ext = ('SSE2', 'SSE1')
261 elif os.environ.has_key('SAGE_ATLAS_ARCH'):
....
It means, that without patching the line 260 of Atlas SPKG and removing 'SSE2' from it, there is currently no way to build without SSE2. Such patching is I believe outside of scope of package I believe, so on that machine I will just build from source.
Would it be "won't fix: upstream"?