Closed docelic closed 4 years ago
Which Debian version? I can check this in the VM.
Debian 10.0 (Actually this installation is Devuan, but it corresponds to Debian 10)
Also try to remove "-fPIC"
from the flags in the qt.yml
.
Interesting, I just checked and -fPIC (or "fpic" at all, case insensitive) does not appear anywhere in my checkout of the bindgen
repository.
Ah but of course, I had to add it. I added it to the build flags in spec/integration/spec_base.yml
and all specs passed at this time!
So now to figure out why it's not detected automatically.
Hm, is there a way we can auto-detect the -fPIC setting? It does not appear in the output of any commands that find_clang
runs, yet as evident from this issue, it was needed on this system for things to work.
Maybe just add -fPIC
to default flags?
Adding it doesn't seem to break anything on my system (Fedora 32).
Though more investigation needed.
In lack of a better solution, I think what we can do is enable -fPIC if BINDGEN_DYNAMIC is false.
The proposed fix is committed with: https://github.com/Papierkorb/bindgen/commit/4590da807e986b271160f72bdb0a8d8635533a3c
Let's see if it will be fine or cause issue reports from users.
On Debian and LLVM 7, after bindgen is compiled, Qt specs fail with:
An example of a CC line that's invoked is: