Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
I tried to build with the following *FLAGS to optimize the build:
-flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Note the -Werror=* flags are used to help detect cases where the compiler tries to optimize by assuming UB cannot exist in the source code -- if it does exist, ordinarily the code would be miscompiled, and this says to make the miscompilation a fatal error.
I got this error:
Attached is a full build log. There are tracking issues downstream at:
There are two different issues here:
the vendored f2fs-tools code has an LTO bug. Unfortunately, even though I sent an email to the f2fs-tools development mailing list I got no response and appear to have been automoderated due to sourceforge. Maybe someone else will have better luck than I did...
the adb code itself has two violations of the C++ One Definition Rule (probably easy to fix by renaming them to be unique)