#21064: Enable NTL's '-march=native' more cautiously
---------------------------------------+---------------------------------
Reporter: leif | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: sage-7.3
Component: packages: standard | Resolution:
Keywords: assembler shlx mulx | Merged in:
Authors: Leif Leonhardy | Reviewers:
Report Upstream: N/A | Work issues: push a branch :-)
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------------+---------------------------------
Description changed by leif:
Old description:
> Take more care in passing `NATIVE=on` to NTL's `configure`.
>
> Upstream only checks whether ''the compiler accepts the option'', nothing
> beyond that.
>
> This causes problems if the assembler isn't recent enough to understand
> all of the instructions GCC emits with `-march=native`, e.g. on older
> versions of MacOS X (with an ancient GAS as the default assembler), or on
> older Linux distros where Sage's GCC got built because the native one is
> outdated (more precisely, not sufficent to build Sage).
>
> While we could (and hopefully will) add more sophisticated checks
> regarding the assembler's capabilities (or use an alternate one, e.g.
> clang's/LLVM's on Darwin, cf. #20779), we need a quick (and safe) fix for
> Sage 7.3.
New description:
Take more care in passing `NATIVE=on` to NTL's `configure`.
Upstream only checks whether ''the compiler accepts the option'', nothing
beyond that.
This causes problems if the assembler isn't recent enough to understand
all of the instructions GCC emits with `-march=native`, e.g. on older
versions of MacOS X (with an ancient GAS as the default assembler), or on
older Linux distros where Sage's GCC got built because the native one is
outdated (more precisely, not sufficient to build Sage).
While we could (and hopefully will) add more sophisticated checks
regarding the assembler's capabilities (or use an alternate one, e.g.
clang's/LLVM's on Darwin, cf. #20779), we need a quick (and safe) fix for
Sage 7.3.
--
--
Ticket URL: <https://trac.sagemath.org/ticket/21064#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.