Thanks for the great report TJ.

Indeed configure --static converts to
4.2
LDFLAGS           -Wl,--warn-common -m64 -static -g  -Wl,-Bsymbolic-functions 
-Wl,-z,relro -Wl,--as-needed
QEMU_LDFLAGS·······

5.0
QEMU_LDFLAGS       -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -static-pie -m64  
-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -fstack-protector-strong


So as reported no more LDFLAGS/QEMU_LDFLAGS split (there was some cleanup).
And also as reported I agree to the maybe even more important it seems it 
switched from "-static" to "-static-pie"

---

There is even what seems to be a related build warning.
I picked one sample from the static build and found these.

4.2:
c++  ... -m64 -static ... -o qemu-arm exec.o ... -lnettle  -lrt

5.0:
c++  ... -static-pie -m64 ... -o qemu-arm exec.o ... -lnettle  -lrt
(.text+0x277): warning: Using 'getpwuid' in statically linked applications 
requires at runtime the shared libraries from the glibc version used for linking

IMHO - That sounds very related

@TJ - don't start a new build for it , but if you can easily check in
the logs do you also see these warnings?

P.S. I've found the qemu 5.2 build in Hirsute to be affected as well

** Changed in: qemu (Ubuntu)
       Status: New => Triaged

** Tags added: server-next

** Also affects: qemu (Ubuntu Groovy)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1908331

Title:
  Regression: qemu-user-static binaries are dynamically linked

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1908331/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to