Gentoo Archives: gentoo-user

From: Laurence Perkins <lperkins@×××××××.net>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>, johnstrass <johnstrass@×××.com>
Subject: RE: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
Date: Fri, 29 Jul 2022 18:29:26
Message-Id: MW2PR07MB4058F180AF01AD5050F77675D2999@MW2PR07MB4058.namprd07.prod.outlook.com
In Reply to: Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong by "David M. Fellows"
1 Turning on zswap or, better yet, setting up a zram swap with a file to back it helps quite a bit on swapping since a lot of the data in question is highly compressible.
2
3 Additionally, disable the "pipe" compiler option in make.conf so that it writes intermediate files out to disk instead of trying to keep them in memory.
4
5 And finally, if you have a more powerful machine sitting around, look into distcc and/or setting up a binhost. You'll be much happier in the long-run.
6
7 LMP
8
9 -----Original Message-----
10 From: David M. Fellows <dmf@××××××××××××××.ca>
11 Sent: Friday, July 29, 2022 7:50 AM
12 To: gentoo-user@l.g.o; johnstrass <johnstrass@×××.com>
13 Subject: Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
14
15 >Dear friends, I am updating the gentoo mip-n32 system on my Yeeloong
16 >netbook. During updating of the @world, it began to update the gcc
17 >12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And
18 >after a long-time compilation, it stops with error messages: " ......
19
20 Hmm. 1G ram and 1G swap is not much memory for building gcc.
21 You could check dmesg and syslog for out-of memory kill messages occurring during your builds.
22
23 It would be easy to try again specifying MAKEOPTS="-j1". Also make sure that you have no unnecesary other processes running during the build - especially memory hogs like a web browser.
24
25 You could add swap, but if you are doing much swapping it will be intolerably slow.
26
27 I would also arrange for some extra cooling of the laptop just in the load is causing overheating.
28
29 DaveF
30
31 >
32 >
33 >rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod
34 >cpp.pod gcov.pod lto-dump.pod make[2]: *** [Makefile:5000:
35 >all-stage2-gcc] Error 2 make[1]: *** [Makefile:22474: stage2-bubble]
36 >Error 2 make: *** [Makefile:22697: bootstrap-lean] Error 2 * ERROR:
37 >sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase): * emake
38 >failed * * If you need support, post the output of `emerge --info
39 >'=sys-devel/gcc-12.1.1_p20220625::gentoo'`, * the complete build log
40 >and the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
41 >* The complete build log is located at
42 >'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
43 >* The ebuild environment file is located at
44 >'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
45 >* Working directory:
46 >'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build' * S:
47 >'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
48 >* Please include
49 >/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.
50 >bz2 in your bug report. *
51 >
52 >
53 >>>> Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:
54 >
55 >
56 >>>> '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log' "
57 >>>> I
58 >also tried to emerge 11.3.1, but it still stoped at the compile stage.
59 >But I forgot to save the enviroment.
60 >
61 >
62 >Any help? The necessary log files are attached. Thanks.
63 >>> application/x-gzip attachment, name=buildlogs-12.1.1.tar.gz
64 >>> application/x-gzip attachment, name=buildlogs-11.3.1.tar.gz

Replies

Subject Author
Re:RE: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong johnstrass <johnstrass@×××.com>