#12825: Fine-tune auto-detection of whether to install GCC
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: GeorgSWeber
Type: defect | Status: positive_review
Priority: blocker | Milestone: sage-5.0
Component: build | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers: Dan Drake
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by leif):
Replying to [comment:7 ddrake]:
> The multiarch detection works on Ubuntu 11.10, x86-64, and Ubuntu 12.04,
i386. I also tested this on Arch Linux, which just upgraded to gcc 4.7,
and it correctly decided to install our gcc spkg.
>
> Note that Ubuntu 11.04 (with gcc-4.5.2) uses the multiarch stuff, and
your script misses that because it looks for version 4.6.*. However, the
compilation seems to work properly. (That was Ubuntu's first multiarch
release, so perhaps the "old method" still worked there?) Also, I don't
think we need to prioritize support for that release.
>
> So, positive review, unless someone objects to building our gcc if the
system gcc is older than 4.4.
I'd still change the `grep` pattern to not match typical `--with-gxx-
include-dir` `configure` options.
Btw., it seems Ubuntu / Debian changed the multi-arch stuff in 12.04 such
that there only setting `LIBRARY_PATH` would be necessary (unless one
created symbolic links for `crt?.o`); i.e., there's now a symbolic link
from `/usr/include/asm/` to (e.g.) `x86_64-linux-gnu/asm/`. (Dan, can you
confirm that? In your case it would presumably be a link to `i386-linux-
gnu/asm/`.)
----
According to GCC bugzilla, the two bugs referred to for [FSF] GCC
4.6.![01] are both fixed in 4.6.1, so I'm not sure whether 4.6.1 would be
[too] broken for Sage, or on which platforms.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12825#comment:8>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.