Reanimating https://trac.sagemath.org/ticket/12426
There is a ticket for symmetrica, if you still want to do it, I’d rather you
fix the code with a patch than with a compilation flags as is suggested in #12439.
So on another thread there was talk about whether we could
build sage with clang+gfortran on OS X.
Well it is not that bad and a little push in the right place would probably
get use 95% there.
I couldn’t build sagelib, I didn’t manage to get there. Here are the
packages that fail to build with clang in sage 7.4.beta4 on OS X:
ratpoints
lcalc
pynac
linbox
symmetrica
gfan
ratpoints: there is an ancient ticket (#12473). Surprisingly it is a
C language problem. ratpoints rely on a GNU extension to use nested
functions. I tried to untangle the first specimen I encountered
before realising that it was quite an amount of work (the nested function
sees and uses a number of variables from the “host” function that
are in scope like they were global variables, this makes things just insane).
> symmetrica
Someone volunteered for the trivial fix of changing
"return;" to "return 0;" in a few places at #12439...
I haven’t tried SAGE_INSTALL_GCC=no on linux or using clang
for a full build on linux. Just one packages here and there.
And yes you cannot build gfortran without gcc a t this time.
On Monday, October 3, 2016 at 11:48:22 AM UTC+1, François wrote:I haven’t tried SAGE_INSTALL_GCC=no on linux or using clang
for a full build on linux. Just one packages here and there.
And yes you cannot build gfortran without gcc a t this time.this is a limitation of Sage's gcc package, right?I.e. we'd eventually resurrect gfortran package...
this is the status after about two weeks
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
That’s because python doesn’t do c++ compilation properly out of the box.
That’s https://bugs.python.org/issue1222585
look it up. I will probably patch sage’s python in the near future - when
I have time.
François
> On 26/02/2017, at 20:27, Isuru Fernando <isu...@gmail.com> wrote:
>
> Anybody know why some python extensions with C++ as the language are compiled with -std=c99? I'm using sage-7.5.1
>
> Log is below
>
> https://travis-ci.org/isuruf/staged-recipes/builds/205439821#L6669
>
> Regards,
>
> Isuru Fernando
>
> On Tue, Oct 4, 2016 at 1:14 PM, Francois Bissey <francois.bissey@canterbury.ac.nz> wrote:
>
> > On 4/10/2016, at 20:39, Ralf Stephan <gtr...@gmail.com> wrote:
> >
> > Ah that would be a wrong libffi-devel version on OpenSuSE, shouldn't
> > this be tested by Sage configure?
> >
>
> That would explain. Note that I only tested the odd package on linux and
> most of what I have done has been on OS X. So there definitely could be
> variations.
>
> > Now I get this:
> > [libgap-4.8.3] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linu
> > x/bin/ld: .libs/libgap_la-ariths.o: relocation R_X86_64_32S against `libGAP_ZERO
> > Op' can not be used when making a shared object; recompile with -fPIC
> > [libgap-4.8.3] .libs/libgap_la-ariths.o: error adding symbols: Bad value
> > [libgap-4.8.3] clang-3.7: error: linker command failed with exit code 1 (use -v
> > to see invocation)
> > [libgap-4.8.3] Makefile:503: recipe for target 'libgap.la' failed
> >
>
> Mixing 32 and 64 bits, there is something very wrong going on there.
>
> François
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
> To post to this group, send email to sage-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
> To post to this group, send email to sage-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
Anybody know why some python extensions with C++ as the language are compiled with -std=c99? I'm using sage-7.5.1
Log is below
Regards,
Isuru Fernando
On Tue, Oct 4, 2016 at 1:14 PM, Francois Bissey <francoi...@canterbury.ac.nz> wrote:
> On 4/10/2016, at 20:39, Ralf Stephan <gtr...@gmail.com> wrote:
>
> Ah that would be a wrong libffi-devel version on OpenSuSE, shouldn't
> this be tested by Sage configure?
>
That would explain. Note that I only tested the odd package on linux and
most of what I have done has been on OS X. So there definitely could be
variations.
> Now I get this:
> [libgap-4.8.3] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linu
> x/bin/ld: .libs/libgap_la-ariths.o: relocation R_X86_64_32S against `libGAP_ZERO
> Op' can not be used when making a shared object; recompile with -fPIC
> [libgap-4.8.3] .libs/libgap_la-ariths.o: error adding symbols: Bad value
> [libgap-4.8.3] clang-3.7: error: linker command failed with exit code 1 (use -v
> to see invocation)
> [libgap-4.8.3] Makefile:503: recipe for target 'libgap.la' failed
>
Mixing 32 and 64 bits, there is something very wrong going on there.
François
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/ppRBu2KCE9Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.