Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945161 - app-arch/xz-utils-5.6.3[pgo] - In function 'dict_repeat': .../src/liblzma/lz/lz_decoder.h:182:17: error: corrupted value profile: stringops profile counter (1128129 out of 4701978) inconsistent with basic-block count (4797008)
Summary: app-arch/xz-utils-5.6.3[pgo] - In function 'dict_repeat': .../src/liblzma/lz/...
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:
Depends on:
Blocks: musl-porting gcc-14
  Show dependency tree
 
Reported: 2024-11-27 22:55 UTC by ernsteiswuerfel
Modified: 2024-11-27 22:58 UTC (History)
1 user (show)

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


Attachments
build.log (ppc, 5.6.3) (xz-utils-5.6.3:20241127-203148.log,594.42 KB, text/plain)
2024-11-27 22:55 UTC, ernsteiswuerfel
Details
emerge --info (file_945161.txt,6.66 KB, text/plain)
2024-11-27 22:56 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-11-27 22:55:46 UTC
Created attachment 912328 [details]
build.log (ppc, 5.6.3)

Builds fine with -pgo on ppc/musl but fails with +pgo:

[...]
libtool: compile:  powerpc-unknown-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma -I../.. -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/api -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/common -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/check -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lz -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/rangecoder -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lzma -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/delta -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/simple -I/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/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 -Wmissing-variable-declarations -O2 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -pipe -fprofile-use=/var/tmp/portage/app-arch/xz-utils-5.6.3/temp/ppc-pgo -fprofile-dir=/var/tmp/portage/app-arch/xz-utils-5.6.3/temp/ppc-pgo -c /var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lzma/lzma_decoder.c  -fPIC -DPIC -o .libs/liblzma_la-lzma_decoder.o
In file included from /var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lzma/lzma_decoder.c:14:
/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lz/lz_decoder.h: In function 'dict_repeat':
/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lz/lz_decoder.h:182:17: error: corrupted value profile: stringops profile counter (1128129 out of 4701978) inconsistent with basic-block count (4797008)
  182 |                 memcpy(dict->buf + dict->pos, dict->buf + back, left);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1583: liblzma_la-lzma_decoder.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3-.ppc/src/liblzma'
make[3]: *** [Makefile:1759: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3-.ppc/src/liblzma'
make[2]: *** [Makefile:433: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3-.ppc/src'
make[1]: *** [Makefile:601: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3-.ppc'
make: *** [Makefile:491: all] Error 2
 * ERROR: app-arch/xz-utils-5.6.3::gentoo failed (compile phase):
 *   emake failed


This is similar to bug #934590 but not the same. Bug #934590 is about GCC-13 and earlier versions fail to build xz-utils-5.6.x with +pgo on ppc - but with GCC-14 succeeding the +pgo build (on ppc/glibc).

In this new ppc/musl issue also GCC-14 fails to build xz-utils-5.6.3 with +pgo. The output is a bit more specific though compared to bug #934590:

lz_decoder.h: In function 'dict_repeat':
/var/tmp/portage/app-arch/xz-utils-5.6.3/work/xz-5.6.3/src/liblzma/lz/lz_decoder.h:182:17: error: corrupted value profile: stringops profile counter (1128129 out of 4701978) inconsistent with basic-block count (4797008)
  182 |                 memcpy(dict->buf + dict->pos, dict->buf + back, left);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1583: liblzma_la-lzma_decoder.lo] Error 1
Comment 1 ernsteiswuerfel archtester 2024-11-27 22:56:30 UTC
Created attachment 912329 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-27 22:58:42 UTC
Nice.