Build the very same 10.1-rc3 source with:

- questing gcc 15.1.0-11ubuntu1 libc6-dev 2.42-0ubuntu1 - bad
- questing gcc 15.1.0-11ubuntu1 libc6-dev 2.41-9ubuntu1 - bad
- questing gcc 14.3.0-4ubuntu2 libc6-dev 2.41-9ubuntu1 - good

OK, so whatever it is - part of it is that it triggers only when built with the 
newer gcc-15.
That could combine the findings of Heinrich that the related code changed 
earlier with the fact that we only see it now.

With that known I tried to see if I could get a more debuggable version
with gcc-15 or something to better compare. First we need to find the
least confusing gcc-15 build that fails

- export CC=gcc-14 CXX=g++-14 - works
- export CC=gcc-15 CXX=g++-15 CFLAGS="-O0 -g" - works (of course it can't be 
easy :-)
- export CC=gcc-15 CXX=g++-15 - fails
- export CC=gcc-15 CXX=g++-15 CFLAGS="-g" - fails
- export CC=gcc-15 CXX=g++-15 CFLAGS="-O1 g" - works
- export CC=gcc-15 CXX=g++-15 CFLAGS="-O2 g" - fails

next is looking into the set of O2 over O1 flags even knnowing that this
isn't all (not sure if that works well):

-falign-functions  -falign-jumps -falign-labels  -falign-loops -fcaller-
saves -fcode-hoisting -fcrossjumping -fcse-follow-jumps  -fcse-skip-
blocks -fdelete-null-pointer-checks -fdevirtualize  -fdevirtualize-
speculatively -fexpensive-optimizations -ffinite-loops -fgcse  -fgcse-lm
-fhoist-adjacent-loads -finline-functions -finline-small-functions
-findirect-inlining -fipa-bit-cp  -fipa-cp  -fipa-icf -fipa-ra  -fipa-
sra  -fipa-vrp -fisolate-erroneous-paths-dereference -flra-remat
-foptimize-crc -foptimize-sibling-calls -foptimize-strlen -fpartial-
inlining -fpeephole2 -freorder-blocks-algorithm=stc -freorder-blocks-
and-partition  -freorder-functions -frerun-cse-after-loop -fschedule-
insns  -fschedule-insns2 -fsched-interblock  -fsched-spec -fstore-
merging -fstrict-aliasing -fthread-jumps -ftree-builtin-call-dce -ftree-
loop-vectorize -ftree-pre -ftree-slp-vectorize -ftree-switch-conversion
-ftree-tail-merge -ftree-vrp -fvect-cost-model=very-cheap

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

Title:
  EDK2 tests for riscv emulation fail against qemu 10.1 on ppc64

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


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

Reply via email to