#20738: singular 3.1.7 fails to build using GCC 6
-------------------------------------+-------------------------------------
Reporter: aapitzsch | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.3
Component: build | Resolution:
Keywords: GCC6 c++11 | Merged in:
Authors: André Apitzsch | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/aapitzsch/gcc6issue | 04c0af9477f794f5d00a1c813725049d340bf4bd
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by leif):
My patch to Singular for C++11 is IMHO more straight-forward... ;-)
{{{
#!patch
--- singular-3.1.7p1/kernel/mod_raw.cc 2014-11-19 14:06:05.000000000
+0100
+++ singular-3.1.7p1/kernel/mod_raw.cc 2016-06-19 23:27:19.420554691
+0200
@@ -38,8 +38,8 @@
lib_types type_of_LIB(char *newlib, char *libnamebuf)
{
- const char mach_o[]={0xfe,0xed,0xfa,0xce,0};
- const char mach_o_module[]={0xce,0xfa,0xed,0xfe,0};
+ const char mach_o[]="\xfe\xed\xfa\xce";
+ const char mach_o_module[]="\xce\xfa\xed\xfe";
int i=0;
while(si_bultin_libs[i]!=NULL)
{
}}}
(I've put it into
`build/pkgs/singular/patches/remove_narrowing_conversion.patch`.)
--
Ticket URL: <https://trac.sagemath.org/ticket/20738#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 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.