public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
@ 2022-07-29 12:57 johnstrass
  2022-07-29 14:50 ` David M. Fellows
  0 siblings, 1 reply; 4+ messages in thread
From: johnstrass @ 2022-07-29 12:57 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1642 bytes --]

Dear friends,
   I am updating the gentoo mip-n32 system on my Yeeloong netbook. During updating of the @world, it began to update the gcc 12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And after a long-time compilation, it stops with error messages:
"
......


rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp.pod gcov.pod lto-dump.pod
make[2]: *** [Makefile:5000: all-stage2-gcc] Error 2
make[1]: *** [Makefile:22474: stage2-bubble] Error 2
make: *** [Makefile:22697: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-12.1.1_p20220625::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
 * Please include /var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.bz2 in your bug report.
 *


>>> Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:


>>>  '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'
"
I also tried to emerge 11.3.1, but it still stoped at the compile stage. But I forgot to save the enviroment.


Any help? The necessary log files are attached. Thanks.

[-- Attachment #1.2: Type: text/html, Size: 2695 bytes --]

[-- Attachment #2: buildlogs-12.1.1.tar.gz --]
[-- Type: application/x-gzip, Size: 278433 bytes --]

[-- Attachment #3: buildlogs-11.3.1.tar.gz --]
[-- Type: application/x-gzip, Size: 324013 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
  2022-07-29 12:57 [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong johnstrass
@ 2022-07-29 14:50 ` David M. Fellows
  2022-07-29 18:29   ` Laurence Perkins
  0 siblings, 1 reply; 4+ messages in thread
From: David M. Fellows @ 2022-07-29 14:50 UTC (permalink / raw
  To: gentoo-user, johnstrass

>Dear friends, I am updating the gentoo mip-n32 system on my Yeeloong
>netbook. During updating of the @world, it began to update the gcc
>12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And
>after a long-time compilation, it stops with error messages: " ......

Hmm. 1G ram and 1G swap is not much memory for building gcc.
You could check dmesg and syslog for out-of memory kill messages occurring
during your builds.

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.

You could add swap, but if you are doing much swapping it will be intolerably
slow.

I would also arrange for some extra cooling of the laptop just in the load is
causing overheating.

DaveF

>
>
>rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod
>gpl.pod cpp.pod gcov.pod lto-dump.pod make[2]: *** [Makefile:5000:
>all-stage2-gcc] Error 2 make[1]: *** [Makefile:22474: stage2-bubble]
>Error 2 make: *** [Makefile:22697: bootstrap-lean] Error 2 * ERROR:
>sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase): * emake
>failed * * If you need support, post the output of `emerge --info
>'=sys-devel/gcc-12.1.1_p20220625::gentoo'`, * the complete build log and
>the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
>* The complete build log is located at
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
>* The ebuild environment file is located at
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
>* Working directory:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build' * S:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
>* Please include
>/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.
>bz2 in your bug report. *
>
>
>>>> Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:
>
>
>>>> '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log' " I
>also tried to emerge 11.3.1, but it still stoped at the compile stage.
>But I forgot to save the enviroment.
>
>
>Any help? The necessary log files are attached. Thanks.
>>> application/x-gzip attachment, name=buildlogs-12.1.1.tar.gz
>>> application/x-gzip attachment, name=buildlogs-11.3.1.tar.gz


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
  2022-07-29 14:50 ` David M. Fellows
@ 2022-07-29 18:29   ` Laurence Perkins
  2022-07-30  9:51     ` johnstrass
  0 siblings, 1 reply; 4+ messages in thread
From: Laurence Perkins @ 2022-07-29 18:29 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org, johnstrass

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.

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.

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.

LMP

-----Original Message-----
From: David M. Fellows <dmf@fellowsandcarr.ca> 
Sent: Friday, July 29, 2022 7:50 AM
To: gentoo-user@lists.gentoo.org; johnstrass <johnstrass@163.com>
Subject: Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong

>Dear friends, I am updating the gentoo mip-n32 system on my Yeeloong 
>netbook. During updating of the @world, it began to update the gcc
>12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And 
>after a long-time compilation, it stops with error messages: " ......

Hmm. 1G ram and 1G swap is not much memory for building gcc.
You could check dmesg and syslog for out-of memory kill messages occurring during your builds.

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.

You could add swap, but if you are doing much swapping it will be intolerably slow.

I would also arrange for some extra cooling of the laptop just in the load is causing overheating.

DaveF

>
>
>rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod 
>cpp.pod gcov.pod lto-dump.pod make[2]: *** [Makefile:5000:
>all-stage2-gcc] Error 2 make[1]: *** [Makefile:22474: stage2-bubble] 
>Error 2 make: *** [Makefile:22697: bootstrap-lean] Error 2 * ERROR:
>sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase): * emake 
>failed * * If you need support, post the output of `emerge --info 
>'=sys-devel/gcc-12.1.1_p20220625::gentoo'`, * the complete build log 
>and the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
>* The complete build log is located at
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
>* The ebuild environment file is located at 
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
>* Working directory:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build' * S:
>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
>* Please include
>/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.
>bz2 in your bug report. *
>
>
>>>> Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:
>
>
>>>> '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log' " 
>>>> I
>also tried to emerge 11.3.1, but it still stoped at the compile stage.
>But I forgot to save the enviroment.
>
>
>Any help? The necessary log files are attached. Thanks.
>>> application/x-gzip attachment, name=buildlogs-12.1.1.tar.gz 
>>> application/x-gzip attachment, name=buildlogs-11.3.1.tar.gz



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:RE: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
  2022-07-29 18:29   ` Laurence Perkins
@ 2022-07-30  9:51     ` johnstrass
  0 siblings, 0 replies; 4+ messages in thread
From: johnstrass @ 2022-07-30  9:51 UTC (permalink / raw
  To: gentoo-user, lperkins, dmf

[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]




Thank you very much! I will give it a try.


At 2022-07-30 02:29:14, "Laurence Perkins" <lperkins@openeye.net> wrote:
>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.
>
>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.
>
>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.
>
>LMP
>
>-----Original Message-----
>From: David M. Fellows <dmf@fellowsandcarr.ca> 
>Sent: Friday, July 29, 2022 7:50 AM
>To: gentoo-user@lists.gentoo.org; johnstrass <johnstrass@163.com>
>Subject: Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong
>
>>Dear friends, I am updating the gentoo mip-n32 system on my Yeeloong 
>>netbook. During updating of the @world, it began to update the gcc
>>12.1.1 from gcc 11.3.0 which is also the one doing the compilation. And 
>>after a long-time compilation, it stops with error messages: " ......
>
>Hmm. 1G ram and 1G swap is not much memory for building gcc.
>You could check dmesg and syslog for out-of memory kill messages occurring during your builds.
>
>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.
>
>You could add swap, but if you are doing much swapping it will be intolerably slow.
>
>I would also arrange for some extra cooling of the laptop just in the load is causing overheating.
>
>DaveF
>
>>
>>
>>rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod 
>>cpp.pod gcov.pod lto-dump.pod make[2]: *** [Makefile:5000:
>>all-stage2-gcc] Error 2 make[1]: *** [Makefile:22474: stage2-bubble] 
>>Error 2 make: *** [Makefile:22697: bootstrap-lean] Error 2 * ERROR:
>>sys-devel/gcc-12.1.1_p20220625::gentoo failed (compile phase): * emake 
>>failed * * If you need support, post the output of `emerge --info 
>>'=sys-devel/gcc-12.1.1_p20220625::gentoo'`, * the complete build log 
>>and the output of `emerge -pqv '=sys-devel/gcc-12.1.1_p20220625::gentoo'`.
>>* The complete build log is located at
>>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log'.
>>* The ebuild environment file is located at 
>>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/environment'.
>>* Working directory:
>>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/build' * S:
>>'/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-12-20220625'
>>* Please include
>>/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/work/gcc-build-logs.tar.
>>bz2 in your bug report. *
>>
>>
>>>>> Failed to emerge sys-devel/gcc-12.1.1_p20220625, Log file:
>>
>>
>>>>> '/var/tmp/portage/sys-devel/gcc-12.1.1_p20220625/temp/build.log' " 
>>>>> I
>>also tried to emerge 11.3.1, but it still stoped at the compile stage.
>>But I forgot to save the enviroment.
>>
>>
>>Any help? The necessary log files are attached. Thanks.
>>>> application/x-gzip attachment, name=buildlogs-12.1.1.tar.gz 
>>>> application/x-gzip attachment, name=buildlogs-11.3.1.tar.gz
>

[-- Attachment #2: Type: text/html, Size: 3777 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-30  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-29 12:57 [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong johnstrass
2022-07-29 14:50 ` David M. Fellows
2022-07-29 18:29   ` Laurence Perkins
2022-07-30  9:51     ` johnstrass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox