Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933416

Summary: dev-debug/valgrind-3.22.0-r2 compiling test fail with lto -Werror=strict-aliasing
Product: Gentoo Linux Reporter: Arniii <lg3dx6fd>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: lg3dx6fd
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.lz // to read : ` lzip -dc ./build.log.lz | less `
environment // profile default/linux/amd64/17.1/desktop/plasma gcc O3 pipe march=native(verbose) lto graphite ggdb3

Description Arniii 2024-06-02 10:41:07 UTC
from build log:
```
x86_64-pc-linux-gnu-gcc -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector   -m32 -mmmx -msse -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches -fno-stack-protector  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,notext -o fprem fprem.o
more_x86_fp.c: In function ‘test_fcvt’:
more_x86_fp.c:98:28: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
   98 |     printf("a=%016llx\n", *(long long *)&a);
      |                            ^~~~~~~~~~~~~~~
more_x86_fp.c:99:34: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
   99 |     printf("la=%016llx %04x\n", *(long long *)&la,
      |                ^~
```
Comment 1 Arniii 2024-06-02 10:44:43 UTC
Created attachment 894943 [details]
build.log.lz // to read : ` lzip -dc ./build.log.lz | less `
Comment 2 Arniii 2024-06-02 10:45:46 UTC
Created attachment 894944 [details]
environment // profile default/linux/amd64/17.1/desktop/plasma gcc O3 pipe march=native(verbose) lto graphite ggdb3