Re: [sage-devel] Linking to libstdc++

2020-06-14 Thread Dima Pasechnik
please see https://trac.sagemath.org/ticket/29856 for a try to remove it

On Sun, Jun 14, 2020 at 9:55 AM François Bissey  wrote:
>
> +1 - it should at least be tried.
>
> > On 14/06/2020, at 7:55 PM, Dima Pasechnik  wrote:
> >
> > Probably can be just removed.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/FD30818B-7F1C-48FD-9FEC-F40985DEEC45%40gmail.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq09q1rqzJM%3DYz6EevJ6CBLpStg07G14mtrjLkHp3FWzqg%40mail.gmail.com.


Re: [sage-devel] Linking to libstdc++

2020-06-14 Thread François Bissey
+1 - it should at least be tried.

> On 14/06/2020, at 7:55 PM, Dima Pasechnik  wrote:
> 
> Probably can be just removed.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/FD30818B-7F1C-48FD-9FEC-F40985DEEC45%40gmail.com.


Re: [sage-devel] Linking to libstdc++

2020-06-14 Thread Dima Pasechnik
Probably can be just removed.

On Sun, 14 Jun 2020, 05:29 François Bissey,  wrote:

>
>
> > On 14/06/2020, at 4:25 PM, Isuru Fernando  wrote:
> >
> > Yes, it was probably NTL related.
> https://github.com/sagemath/sage/commit/bc333c78b0369377657452e340cb6b3f27c5cee0
> >
>
> Nice digging. libcsage is no more and it’s been a while.
>
>
> > I think distutils now knows to link with the C++ compiler even though it
> compiles C++ sources with a C compiler. OSX build works fine without
> `libc++` being linked in explicitly, so that must mean that we are using
> clang++ on OSX at the correct place, right?
> >
>
> I would think so.
>
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/55AFB8E6-5605-4EB6-AE21-D84EBB0DD233%40gmail.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq28UNJ0cxf7yAED-EF1mA7us7KJyZaNJeUrRR2hxA%40mail.gmail.com.


Re: [sage-devel] Linking to libstdc++

2020-06-13 Thread François Bissey



> On 14/06/2020, at 4:25 PM, Isuru Fernando  wrote:
> 
> Yes, it was probably NTL related. 
> https://github.com/sagemath/sage/commit/bc333c78b0369377657452e340cb6b3f27c5cee0
> 

Nice digging. libcsage is no more and it’s been a while. 


> I think distutils now knows to link with the C++ compiler even though it 
> compiles C++ sources with a C compiler. OSX build works fine without `libc++` 
> being linked in explicitly, so that must mean that we are using clang++ on 
> OSX at the correct place, right?
> 

I would think so. 

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/55AFB8E6-5605-4EB6-AE21-D84EBB0DD233%40gmail.com.


Re: [sage-devel] Linking to libstdc++

2020-06-13 Thread Isuru Fernando
Yes, it was probably NTL related.
https://github.com/sagemath/sage/commit/bc333c78b0369377657452e340cb6b3f27c5cee0

I think distutils now knows to link with the C++ compiler even though it
compiles C++ sources with a C compiler. OSX build works fine without
`libc++` being linked in explicitly, so that must mean that we are using
clang++ on OSX at the correct place, right?

Isuru

On Sat, Jun 13, 2020 at 11:10 PM François Bissey 
wrote:

> That far back? It was probably something like ntl or singular (or
> something that has since then
> been removed) that didn’t link properly.
> More seriously, it may have been because the linker used was gcc instead
> of g++ even when linking
> C++ code. We know there is/was that issue about C/C++ compiler in
> distutils (I haven’t been keeping
> track, are we still patching python for that in distros?).
>
> > On 14/06/2020, at 4:03 PM, Isuru Fernando  wrote:
> >
> > Hi,
> >
> > Anybody know why sage is linking to libstdc++?
> >
> >
> https://github.com/sagemath/sage/blob/cdb4c0b073efce77b08de4aa24df6583cdb74fa3/src/setup.py#L371-L374
> >
> > In OSX, we don't need libstdc++, because we are using libc++. Git
> history says it was added 13 years ago by William Stein.
> >
> > Isuru
> >
> > --
> > 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+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CA%2B01voM7gDVO%3DAxbCJMXM2dqrufkDhHH1EqsDsP15%2Byo8e6KFw%40mail.gmail.com
> .
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/57A33493-F93D-4A71-A8F4-AB6DC2417A22%40gmail.com
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CA%2B01voNU2qDXUDAkMcfdfw3YRDFfhFTYjLg7V%3Dk8N6STexjTEw%40mail.gmail.com.


Re: [sage-devel] Linking to libstdc++

2020-06-13 Thread François Bissey
That far back? It was probably something like ntl or singular (or something 
that has since then
been removed) that didn’t link properly.
More seriously, it may have been because the linker used was gcc instead of g++ 
even when linking
C++ code. We know there is/was that issue about C/C++ compiler in distutils (I 
haven’t been keeping
track, are we still patching python for that in distros?).  

> On 14/06/2020, at 4:03 PM, Isuru Fernando  wrote:
> 
> Hi,
> 
> Anybody know why sage is linking to libstdc++? 
> 
> https://github.com/sagemath/sage/blob/cdb4c0b073efce77b08de4aa24df6583cdb74fa3/src/setup.py#L371-L374
> 
> In OSX, we don't need libstdc++, because we are using libc++. Git history 
> says it was added 13 years ago by William Stein.
> 
> Isuru
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CA%2B01voM7gDVO%3DAxbCJMXM2dqrufkDhHH1EqsDsP15%2Byo8e6KFw%40mail.gmail.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/57A33493-F93D-4A71-A8F4-AB6DC2417A22%40gmail.com.


[sage-devel] Linking to libstdc++

2020-06-13 Thread Isuru Fernando
Hi,

Anybody know why sage is linking to libstdc++?

https://github.com/sagemath/sage/blob/cdb4c0b073efce77b08de4aa24df6583cdb74fa3/src/setup.py#L371-L374

In OSX, we don't need libstdc++, because we are using libc++. Git history
says it was added 13 years ago by William Stein.

Isuru

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CA%2B01voM7gDVO%3DAxbCJMXM2dqrufkDhHH1EqsDsP15%2Byo8e6KFw%40mail.gmail.com.