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
Windows 64-bit: warning: -fPIC ignored for target (all code is position independent) #20508
Comments
Author: Erik Bray |
Commit: |
comment:3
Went ahead and fixed this for most, if not all packages, while waiting for a build to finish. Again, the only thing this is fixing as an annoying warning (that will appear for almost every file compiled) on Cygwin where the Last 10 new commits:
|
Branch: u/embray/cygwin-fpic |
comment:4
I don't like adding pointless complexity to |
comment:5
The point is that without this build outputs on Cygwin are almost line noise. Adding a single conditional when there are already plenty is hardly "complexity". In the meantime I'm still working to squash the need for duplicating stuff in all these spkg-installs. Please give this a positive review. |
comment:6
Here is a cleaner suggestion: in |
comment:7
That would be okay, sure. Is On the other hand I don't like cluttering |
comment:8
Replying to @embray:
Like I said, it doesn't have to be an environment variable, just a shell variable. I don't think it costs a lot to have such variables so I don't really see the problem. |
comment:9
Okay, in that case I'll try that. |
This is an annoying warning that GCC always outputs on Cygwin either 32-bit or 64-bit. It's harmless really but it is output for every single compiled source file--C or fortran--and there is no
-Wno-
flag to disable it.There is a patch now in GCC to remove this outright: https://gcc.gnu.org/ml/gcc-patches/2015-08/msg00836.html But I don't know when it will be available. The default GCC currently in Cygwin is 5.3, and it does not have this patch.
It's not worth putting in a lot of effort over this, but I'm squashing it wherever I see it by just removing the
-fPIC
flag (if possible) on Cygwin. I will maintain a branch for these changes wherever I come across them.Upstream: Fixed upstream, in a later stable release.
Component: porting: Cygwin
Author: Erik Bray
Branch/Commit: u/embray/cygwin-fpic @
3302dc8
Issue created by migration from https://trac.sagemath.org/ticket/20508
The text was updated successfully, but these errors were encountered: