-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Sort out linking with libstdc++ #29856
Comments
comment:1
trying to see what happens with the simple index af5f99d03e..0600603e62 100644
--- a/src/sage/misc/cython.py
+++ b/src/sage/misc/cython.py
@@ -41,7 +41,7 @@ cblas_library_dirs = list(cblas_pc['library_dirs'])
cblas_include_dirs = list(cblas_pc['include_dirs'])
standard_libs = [
- 'mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm',
+ 'mpfr', 'gmp', 'gmpxx', 'pari', 'm',
'ec', 'gsl',
] + cblas_libs + [
'ntl']
--- a/src/setup.py
+++ b/src/setup.py
@@ -354,8 +354,6 @@ class sage_build_cython(Command):
- Add dependencies on header files for certain libraries
- - Ensure that C++ extensions link with -lstdc++
-
- Sort the libraries according to the library order
- Add some default compile/link args and directories
@@ -369,10 +367,7 @@ class sage_build_cython(Command):
lang = kwds.get('language', 'c')
cplusplus = (lang == "c++")
- # Libraries: add stdc++ if needed and sort them
libs = kwds.get('libraries', [])
- if cplusplus:
- libs = libs + ['stdc++']
kwds['libraries'] = sorted(set(libs),
key=lambda lib: library_order.get(lib, 0)) |
This comment has been minimized.
This comment has been minimized.
comment:3
This ticket description needs some work; what problem is this ticket addressing? Also, And please note #29702 moves the code from |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author: Dima Pasechnik |
Commit: |
Dependencies: #29702 |
comment:6
seems to work. Last 10 new commits:
|
comment:7
tested on GH Actions? |
comment:8
Please rebase on unrebased-then-merged #29702 |
Changed branch from u/dimpase/build/get_rid_of_stdcxx to u/dimpase/dont_link_to_stdcxx |
Last 10 new commits:
|
comment:10
testing on https://github.com/dimpase/sage/pull/10 (also, this will test #29702) |
comment:11
Great |
comment:12
Replying to @dimpase:
I see a lot of assembler errors (GNU 'as' version 2.24, ~6 years old)
see https://github.com/dimpase/sage/runs/774196885 Not a surprise, as we build a newish gcc, not really compatible with an old |
comment:13
On ubunty-bionic standard I see
which looks like a broken toolchain (`GLIBCXX_3.4.26' not found) - any idea why? see https://github.com/dimpase/sage/runs/774196977 The rest looks OK to me. |
comment:14
The above two, are these from |
comment:15
(See #29675 for known failures of |
comment:16
Replying to @mkoeppe:
done |
Reviewer: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/dimpase/dont_link_to_stdcxx to |
From the post at
it appears linking with libstdc++ might be not needed any more, and so this may be simplified.
Note that clang project has libc++, which serves the same role, but is a different implementation.
(Currently stdc++ is mentioned in
src/setup.py
and in
src/sage/misc/cython.py
.)Depends on #29702
CC: @antonio-rojas @mkoeppe @kiwifb @isuruf
Component: build
Author: Dima Pasechnik
Branch/Commit:
afeec95
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/29856
The text was updated successfully, but these errors were encountered: