Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934590 - app-arch/xz-utils-5.6.2-r1[pgo] - In function 'hc_find_func': .../work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c:743:1: error: corrupted profile info: profile data is not flow-consistent
Summary: app-arch/xz-utils-5.6.2-r1[pgo] - In function 'hc_find_func': .../work/xz-5.6...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2024-06-20 10:49 UTC by ernsteiswuerfel
Modified: 2024-11-28 07:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (ppc, 5.6.2-r1) (xz-utils-5.6.2-r1:20240620-103138.log,810.45 KB, text/plain)
2024-06-20 10:49 UTC, ernsteiswuerfel
Details
emerge --info (file_934590.txt,5.89 KB, text/plain)
2024-06-20 10:49 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-06-20 10:49:05 UTC
Created attachment 896127 [details]
build.log (ppc, 5.6.2-r1)

5.4.2[pgo] builds fine on ppc but 5.6.2-r1[pgo] fails:

[...]
libtool: compile:  powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma -I../.. -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/api -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/common -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/check -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/rangecoder -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lzma -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/delta -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/simple -I/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/common -DTUKLIB_SYMBOL_PREFIX=lzma_ -pthread -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wshift-overflow=2 -Wstrict-overflow=3 -Walloc-zero -Wduplicated-cond -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wdate-time -Wsign-conversion -Wfloat-conversion -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -fprofile-use=/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/temp/ppc-pgo -fprofile-dir=/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/temp/ppc-pgo -fprofile-partial-training -c /var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c  -fPIC -DPIC -o .libs/liblzma_la-lz_encoder_mf.o
/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c: In function 'hc_find_func':
/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c:743:1: error: corrupted profile info: profile data is not flow-consistent
  743 | }
      | ^
/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c:743:1: error: corrupted profile info: number of executions for edge 10-18 thought to be 2511326
/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2/src/liblzma/lz/lz_encoder_mf.c:743:1: error: corrupted profile info: number of executions for edge 10-3 thought to be -111978
make[4]: *** [Makefile:1533: liblzma_la-lz_encoder_mf.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2-.ppc/src/liblzma'
make[3]: *** [Makefile:1758: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2-.ppc/src/liblzma'
make[2]: *** [Makefile:427: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2-.ppc/src'
make[1]: *** [Makefile:596: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.2-r1/work/xz-5.6.2-.ppc'
make: *** [Makefile:486: all] Error 2
 * ERROR: app-arch/xz-utils-5.6.2-r1::gentoo failed (compile phase):
 *   emake failed


Without pgo 5.6.2-r1 builds fine on ppc. Also 5.6.2-r1[pgo] builds fine on ppc64. So this is probably a ppc (32bit?) specific issue?
Comment 1 ernsteiswuerfel archtester 2024-06-20 10:49:48 UTC
Created attachment 896128 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-25 03:19:10 UTC
I think this has to be a GCC bug. Can you try different GCC versions for me?
Comment 3 ernsteiswuerfel archtester 2024-06-25 10:45:51 UTC
(In reply to Sam James from comment #2)
> I think this has to be a GCC bug. Can you try different GCC versions for me?
Luckily the most recent GCC gets the job done. ;)

gcc-11.4.1_p20240111  ...   fails with +pgo
gcc-13.3.1_p20240614  ...   fails with +pgo
gcc-14.1.1_p20240622  ...   BUILDS OK with +pgo

Any other versions I should try?
Comment 4 ernsteiswuerfel archtester 2024-11-28 07:35:33 UTC
Re-tested with all current GCC versions:

gcc-11.5.0            ...   fails with +pgo
gcc-12.4.1_p20241114  ...   fails with +pgo
gcc-13.3.1_p20241115  ...   fails with +pgo
gcc-14.2.1_p20241116  ...   BUILDS OK with +pgo