-
-
Notifications
You must be signed in to change notification settings - Fork 620
gentoo: System gcc with multilib support generates linker (ld) warnings when running doctests, ntl-related #31578
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
Comments
comment:1
Using
The next commit that is to be tested is
which fails to build with
Somehow
|
comment:2
@mkoeppe perhaps you have some insight into this. It's not clear to me why |
comment:3
You should be able to see these corrupted values already in |
comment:4
From
|
comment:5
Yes. So, as I thought, the error is made in the You can try to debug this using |
comment:6
What platform is this, by the way? |
comment:7
Replying to @mkoeppe:
Gentoo
Same issue on
|
comment:8
The NTL variables in Help with fixing this issue is welcome. Note that 9.3.rc0 built fine on gentoo in https://github.com/sagemath/sage/runs/2180104858?check_suite_focus=true |
comment:9
Replying to @mkoeppe:
For
So the question is whether the |
comment:10
You can edit this file and run |
comment:11
Replying to @strogdon:
You may want to use |
comment:12
FWIW, Sage-on-Gentoo does this to avoid linker warnings. But this change does not resolve things on vanilla Sage. |
comment:13
Replying to @mkoeppe:
Correct me if I misunderstand. For
to
did |
comment:14
Ahh, maybe the issue is
Shouldn't this be
|
comment:15
Replying to @strogdon:
Yes, this is the issue. |
comment:16
OK, so |
comment:18
Yes, a number of packages don't do proper detection and try to do location instead. Which can cause troubles on multilib install. I'll have a look at the macro when I can. |
comment:19
The title is not really descriptive of the issue. It was a poor attempt to describe what what was happening. It should probably be changed. |
comment:20
From the end
First of, the assumption on the value of Were any of these value provided for detection? No. So, why would they be needed later on? If someone wants to provide some values for As far as I am concerned, those two variables should just be eliminated which would quite the patch during a rc. |
comment:21
Also the macro |
comment:22
Replying to @kiwifb:
I agree, this was sloppy.
They are needed because of the unfortunate need for a compile time environment at runtime of Sage when using the It would be fine with me to back out the setting of these two variables for Sage 9.3 if you think this helps. |
comment:23
Replying to @mkoeppe:
That's unfortunately a valid use case. We may have had that discussion already. Total removal would break that use case while we are currently only dealing with extra warnings. Noisy, but not breaking any functionality. |
comment:24
I think we should try |
comment:25
For the general problem I have a ticket (#31041 - Set environment for sage.misc.cython) but not a solution yet |
comment:26
Replying to @mkoeppe:
Yes, we should work on that there, that may turn out to be a bit of a patch bomb. At best I say we deal with accepting the potential warnings in the present ticket. |
comment:27
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review. |
comment:87
Replying to @orlitzky:
From the viewpoint of distribution packaging, |
comment:88
How about in the absence of |
comment:89
Replying to @mkoeppe:
For most libraries, Where pkg-config really shines is with packages whose layouts are universally wacky or with libraries meant to be used in nonstandard ways. And, particularly, it's better to have a standard pkg-config interface than it is to use apache-config, postgres-config, etc. if they're going to be there anyway. But you don't really have to convince me that pkg-config itself is useful. I've been fixing awful build systems long enough, and still regularly find thousands of lines of (broken) configure.ac code that does god-knows-what with the stated goal of... detecting a library. It's much easier to send those people a pull request that deletes the whole thing and uses |
comment:90
Replying to @kiwifb:
Great, please post the URL here on the ticket description when done |
Changed branch from u/strogdon/ntl_pkg_config to u/mkoeppe/ntl_pkg_config |
comment:92
I have taken the liberty to push a related fix to this ticket here. New commits:
|
comment:93
Replying to @mkoeppe:
Is anyone interested in implementing this? |
comment:94
OK PR added to the description. Note that there is a minor change to the patch attached here. |
This comment has been minimized.
This comment has been minimized.
comment:95
Replying to @mkoeppe:
I can have a go at it, if noone else will. |
comment:96
While we all are waiting for upstream I come up with crazy idea. What if we merge this branch into |
comment:97
I agree that there is no need to wait for upstream. If gentoo decides to ship a .pc file, that's a good enough reason to check for it in Sage. The fix in Also, the macro |
Changed branch from u/mkoeppe/ntl_pkg_config to u/strogdon/ntl_pkg_config |
comment:100
New update works on gentoo w/o system .pc file
and with system .pc file
New commits:
|
comment:101
LGTM |
Reviewer: Matthias Koeppe |
Changed branch from u/strogdon/ntl_pkg_config to |
With
9.3.rc0
typical results with multilib support in gcc:There is no such problem with
9.3.beta7
.Upstream NTL pull request to add a .pc file
CC: @kiwifb @mkoeppe @orlitzky @dimpase @isuruf
Component: doctest framework
Author: Steven Trogdon
Branch/Commit:
a2ab555
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/31578
The text was updated successfully, but these errors were encountered: