Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932732 - sys-devel/gcc-14.1.1_p20240518 fails to build on loong (qemu problem?)
Summary: sys-devel/gcc-14.1.1_p20240518 fails to build on loong (qemu problem?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 932731
  Show dependency tree
 
Reported: 2024-05-25 14:15 UTC by Andreas K. Hüttel
Modified: 2024-05-27 15:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2024-05-25 14:15:10 UTC
try 1: 

make[3]: Entering directory '/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libgcc'
/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/./gcc/ -B/usr/loongarch64-unknown-linux-gnu/bin/ -B/usr/loongarch64-unknown-linux-gnu/lib/ -isystem /usr/loongarch64-unknown-linux-gnu/include -isystem /usr/loongarch64-unknown-linux-gnu/sys-include -fmultiflags   -fchecking=1 -g -pipe -O2 -O2  -g -pipe -O2 -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fno-stack-clash-protection  -fpic -I. -I. -I../.././gcc -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libgcc -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libgcc/. -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libgcc/../include  -DHAVE_CC_
 TLS   -o _clzsi2.o -MT _clzsi2.o -MD -MP -MF _clzsi2.dep -DL_clzsi2 -c /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
qemu-loongarch64: /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/gcc/cc1: Error mapping file: Cannot allocate memory
make[3]: *** [Makefile:508: _clzsi2.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libgcc'
make[3]: *** Waiting for unfinished jobs....



try 2:

libtool: compile:  /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/loongarch64-unknown-linux-gnu/bin/ -B/usr/loongarch64-unknown-linux-gnu/lib/ -isystem /usr/loongarch64-unknown-linux-gnu/include -isystem /usr/loongarch64-unknown-linux-gnu/sys-include -fmultiflags -fchecking=1 -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libstdc++-v3/../libgcc -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/include/loongarch64-unknown-linux-gnu -I/var/tmp/portage/
 sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libstdc++-v3/libsupc++ -std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=cow-shim_facets.lo -g -pipe -O2 -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/gcc-14-20240518/libstdc++-v3/src/c++11/cow-shim_facets.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o cow-shim_facets.o
qemu-loongarch64: /var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/gcc/cc1plus: Error mapping file: Cannot allocate memory
make[6]: *** [Makefile:680: cow-shim_facets.lo] Error 1
make[6]: Leaving directory '/var/tmp/portage/sys-devel/gcc-14.1.1_p20240518/work/build/loongarch64-unknown-linux-gnu/libstdc++-v3/src/c++11'
make[6]: *** Waiting for unfinished jobs....
Comment 1 Larry the Git Cow gentoo-dev 2024-05-25 14:29:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a8daea3068c6edb5f7d2cbb475bc369e190f9f

commit 22a8daea3068c6edb5f7d2cbb475bc369e190f9f
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-05-25 14:29:09 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-05-25 14:29:45 +0000

    sys-devel/gcc: keyword 14.1.1_p20240518 for ~loong
    
    Bug: https://bugs.gentoo.org/932732
    Closes: https://bugs.gentoo.org/932731
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-devel/gcc/gcc-14.1.1_p20240518.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2024-05-27 15:56:41 UTC
This disappears with qemu-9.