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
Singular omalloc requires 8-byte alignment on SPARC #14429
Comments
Author: Jeroen Demeyer |
Upstream: Reported upstream. No feedback yet. |
This comment has been minimized.
This comment has been minimized.
Changed keywords from SPARC alignment SIGBUS to SPARC alignment SIGBUS omalloc |
This comment has been minimized.
This comment has been minimized.
comment:3
Attachment: singular-3-1-5.p7.diff.gz |
comment:5
Sounds good to me. |
Reviewer: Volker Braun |
comment:7
FYI, from the errors I had reported at:
Note that running singular('2+3') in sage works fine and so does the second problematic doctest.
Oh and I still had troubles building singular because of C++ headers the system has in /usr/local/include which seem incompatible with the ones Sage's GCC ships, and this path is added by Singular in src/Singular/Makefile[.in] to CPPFLAGS if gcc version is greater than 4. |
comment:8
The |
comment:9
Replying to @jpflori:
Did you ever report this? |
comment:10
Nope, just on sage-devel, I'll open a Trac ticket. |
comment:11
Replying to @jpflori:
I guess the upstream ticket is http://www.singular.uni-kl.de:8002/trac/ticket/480, but that doesn't have enough information to debug the issue. A complete log file of the failed Singular build would be a good start. |
comment:12
Here you go:
But is there really any good reason to include /usr/local/include automagically? Is that standard practice? |
comment:13
Please do
from the directory containing |
comment:14
Replying to @jpflori:
I think it is. Why put stuff in |
comment:15
Replying to @jpflori:
Yes, but that omitted the crucial information of which command caused those errors. |
comment:16
Replying to @jdemeyer:
I'd say you put stuff there intentionally (rather than just building a package and letting it install its headers by default into /usr/include) to get it included when you explicitly add "-I/usr/local/include". And it seems the problematic software on my system is Sun's gcc 3.4.3. |
comment:17
Replying to @jdemeyer:
Attached to this ticket. |
Attachment: bigintmat.ii.gz |
comment:18
Replying to @jpflori:
Almost all software installs stuff in |
comment:19
True enough for user installed things, but it seems distribution packages do rather install in /usr directly. |
comment:20
Replying to @jpflori:
True again. |
comment:21
After looking at attachment: bigintmat.ii, I would say the problem is your system configuration, not a Sage or Singular bug. |
comment:22
On Unix at least, gcc will look in /usr/local/include anyway: http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html or http://gcc.gnu.org/onlinedocs/gcc-4.6.3/cpp/Search-Path.html#Search-Path; so that's another point for not changing anything in Singular. Note that without the -I/usr/local/include, then the headers which get picked are in
This looks like a very nice directory to get headers from for the Sage's gcc...
On a Ubuntu install, with the system-wide gcc, it indeed looks in /usr/local/include before the corresponding /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed (but after /usr/lib/gcc/x86_64-linux-gnu/4.6/include).
So the real question is, is adding this -I/usr/local/include really useful? |
comment:23
In fact the addition of -I and -L was meant for versions of gcc (or other compilers?) before gcc 3. |
comment:24
So I guess it makes sense to omit it for gcc > 3 as well :) |
comment:25
It was seemingly added for GCC 2.95 at: Singular/Singular@a70441f |
comment:26
The reason for this was seemingly:
|
Merged: sage-5.9.beta5 |
comment:28
Jean-Pierre: you should probably mention this upstream: http://www.singular.uni-kl.de:8002/trac/ticket/480 |
comment:29
It's planned, but I cannot do it during the day (without appropiate ssh tunnels and http proxies) and have a tendency to postpone it in the evening. |
On Solaris SPARC:
The problem is that wlen_type is a 64-bit integer which is not correctly aligned to 8 bytes.
spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-5.p7.spkg (diff)
upstream: http://www.singular.uni-kl.de:8002/trac/ticket/483
Upstream: Reported upstream. No feedback yet.
Component: porting: Solaris
Keywords: SPARC alignment SIGBUS omalloc
Author: Jeroen Demeyer
Reviewer: Volker Braun
Merged: sage-5.9.beta5
Issue created by migration from https://trac.sagemath.org/ticket/14429
The text was updated successfully, but these errors were encountered: