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
INDI fails to build on Launchpad for 21.04+ #1504
Comments
Could it be because of PIE flags? The documentation states "These options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables." |
I compile with 21.04 on x64 and default compiler daily without problems as my dev and observatory machines run that, but haven't seen this one. Differences to my compile options seem to be LTO and hardening related. 21.04 is the first version with lto turned on by default for packages so I tried adding -flto=auto to my build options and got the same error, so that seems to be the culprit (or symptom of some other problem). There is some info on LTO by default in https://wiki.ubuntu.com/ToolChain/LTO |
That's exactly it, it now makes a valid debian package. @jpaana compiling works OK, it was failing in creating a debian package via debuild -uc -nc |
Good, I just got the same error while linking from my normal build with just adding the -flto=auto, but yes, your latest commit fixed that too. |
Been getting failures for x86-64 and arm64 when compiling INDI on Launchpad.
This happens in the linking step and they are all related to relocation error. That's what I got in a VM:
log.txt
However, we are already setting set(CMAKE_POSITION_INDEPENDENT_CODE ON) in line 9 in CMakelists.txt, so any ideas what's causing this error for newer version of GCC apparently?
@jpaana @jochym @pawel-soja @xsnrg any ideas?
The text was updated successfully, but these errors were encountered: