Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812791 - sys-devel/crossdev-20210718: USE="lto" build/genmatch core dumped when build latest version
Summary: sys-devel/crossdev-20210718: USE="lto" build/genmatch core dumped when build ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-12 16:14 UTC by yongxiang
Modified: 2021-09-15 13:55 UTC (History)
1 user (show)

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


Attachments
cross-aarch64-unknown-linux-gnu-gcc-stage1.log (cross-aarch64-unknown-linux-gnu-gcc-stage1.log,410.78 KB, text/x-log)
2021-09-12 16:15 UTC, yongxiang
Details
emerge --info (file_812791.txt,7.07 KB, text/plain)
2021-09-12 16:17 UTC, yongxiang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yongxiang 2021-09-12 16:14:07 UTC
My host is host is ~amd64 with glibc, crossdev is latest snapshot (20210718).

how to reproduce:
  crossdev -t aarch64-unknown-linux-glibc
or
  crossdev -t riscv64-unknown-linux-glibc

error: /bin/bash: line 2: 31988 Segmentation fault    (core dumped) build/genmatch --gimple /tmp/portage/cross-aarch64-unknown-linux-gnu/gcc-11.2.0/work/gcc-11.2.0/gcc/match.pd > tmp-gimple-match.c

The stable version does not have this problem:
  crossdev -S -t aarch64-unknown-linux-glibc
  crossdev -S -t riscv64-unknown-linux-glibc

My gcc/binutils/glibc version :
emerge -avp sys-devel/gcc sys-devel/binutils sys-libs/glibc
[ebuild   R    ] sys-devel/binutils-2.37_p1:2.37::gentoo  USE="doc gold nls plugins (-cet) -default-gold -multitarget -static-libs -test -vanilla" 0 KiB
[ebuild   R    ] sys-devel/gcc-11.2.0:11::gentoo  USE="(cxx) doc fortran lto (multilib) nls nptl openmp pch (pie) sanitize ssp (-ada) -custom-cflags -d -debug (-fixed-point) -go -graphite (-hardened) -jit (-libssp) -objc -objc++ -objc-gc -pgo -systemtap -test -valgrind -vanilla -vtv -zstd" 0 KiB
[ebuild   R    ] sys-libs/glibc-2.33-r7:2.2::gentoo  USE="doc multiarch (multilib) ssp (static-libs) systemd -audit -caps (-cet) -compile-locales (-crypt) -custom-cflags -gd -headers-only -multilib-bootstrap -nscd -profile (-selinux) -static-pie -suid -systemtap -test (-vanilla)" 0 KiB

Reproducible: Always
Comment 1 yongxiang 2021-09-12 16:15:30 UTC
Created attachment 739051 [details]
cross-aarch64-unknown-linux-gnu-gcc-stage1.log
Comment 2 yongxiang 2021-09-12 16:17:42 UTC
Created attachment 739054 [details]
emerge --info
Comment 3 yongxiang 2021-09-14 08:17:42 UTC
Turn off the "lto" use of gcc and it will work.
Comment 4 yongxiang 2021-09-15 13:54:56 UTC
For cross-riscv64-unknow-linux-gnu, I made a stupid mistake. After closing CCACHE, everything is OK, including lto.