RE: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong

2022-07-29 Thread Laurence Perkins
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  
Sent: Friday, July 29, 2022 7:50 AM
To: gentoo-user@lists.gentoo.org; johnstrass 
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




Re: [gentoo-user] How to enable NFS v2

2022-07-29 Thread Jack

On 2022.07.29 12:54, Fabulous Zhang Zheng wrote:

Dear Jack,


Jack  于2022年7月27日周三 06:59写道:

> This list prefers bottom posting.  See below.
>
> On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:
> > Dear Jack,
> >
> > thanks for your reply, I reconfigured menuconfig.
> >
> > NFS v2 support I found is client support, and I can't still find  
v2

> > support
> > for server ( sorry for not mentioning it in my ambiguous question  
)
> > I also looked up in forum and wiki, and recent posts seem to  
indicate

> > the removal of nfs v2 server support.
> >
> > I followed this link for open genera
> > ( https://archives.loomcom.com/genera/genera-install.html )
> > not in portage or an overlay.
> >
> > Best regards :)
> >
> > Jack  于2022年7月24日周日 03:30写道:
> >
> > > On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
> > > > Dear genteel users,
> > > >
> > > >
> > > > Recently I'm trying to run Open Genera on Gentoo, which  
requires

> > the
> > > > old
> > > > NFS v2 protocol for communication.
> > > >
> > > > I successfully run it on a Ubuntu 16.04 virtual machine, which
> > > > enables it
> > > > by default.
> > > >
> > > > In 5.18.12 it seems deprecated and not supported, am I  
supposed to

> > > > revert
> > > > back to a kernel version before its removal, or manually  
patch it

> > > > into the
> > > > current kernel ? Or there might be some more elegant methods ?
> > > >
> > > > It will be much appreciated if anyone could help :)
> > > >
> > > Looking at the config for 5.18.14, I see no evidence V2 has been
> > > deprecated.  However, your kernel may well have been configured  
to

> > not
> > > use V2.  Note the kernel has different client and server  
settings

> > for
> > > this.  Most likely, you just need to reconfigure and recompile  
your

> > > kernel.
> > >
> > > Also, I don't see any genera available in portage.  If it is in  
an
> > > overlay, I would check for any documentation in the overlay  
about

> > > necessary kernel configuration.
> > >
> > > Jack
> > >
> > >
> >
> I am aware that NFSv2 is likely to be deprecated due to security
> concerns, but it hasn't happened yet in the Linux kernel.
>
> The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD:  
says

>
> -
> Choose Y here if you want to allow other computers to access files
> residing on this system using Sun's Network File System protocol. To
> compile the NFS server support as a module, choose M here: the  
module

> will be called nfsd.
>
> You may choose to use a user-space NFS server instead, in which case
> you can choose N here.
>
> To export local file systems using NFS, you also need to install  
user

> space programs which can be found in the Linux nfs-utils package,
> available from http://linux-nfs.org/. More detail about the Linux  
NFS

> server implementation is available via the exports(5) man page.
>
> Below you can choose which versions of the NFS protocol are  
available

> to clients mounting the NFS server on this system. Support for NFS
> version 2 (RFC 1094) is always available when CONFIG_NFSD is  
selected.

> -
>
> In addition, from just a very brief search, it is likely that there  
are

> other configuration files you may need to alter in order for the nfs
> server to actually respond to V2 requests.  This is likely how some
> distributions have blocked V2 from the default configuration.   
Google

> is your friend.
>
> Jack
>
>
Sorry for the late reply,

I found this commit

of last November, which might be the reason.
2.5.4 might be the last version with such support.

I emerged manually changed ebuild  and  $( rpcinfo -p localhost |  
grep nfs

)
explicitly indicates the version 2 of nfs, which runs successfully.

Thanks again for your dedicated and detailed reply,
and also the bottom-posting reminder.


Best regards :)

I don't fully understand the interactions and relationship, but there  
are obviously some differences between the kernel nfs and userland  
nfs.  Glad you got it working for you.





Re: [gentoo-user] How to enable NFS v2

2022-07-29 Thread Fabulous Zhang Zheng
Dear Jack,


Jack  于2022年7月27日周三 06:59写道:

> This list prefers bottom posting.  See below.
>
> On 2022.07.23 21:52, Fabulous Zhang Zheng wrote:
> > Dear Jack,
> >
> > thanks for your reply, I reconfigured menuconfig.
> >
> > NFS v2 support I found is client support, and I can't still find v2
> > support
> > for server ( sorry for not mentioning it in my ambiguous question )
> > I also looked up in forum and wiki, and recent posts seem to indicate
> > the removal of nfs v2 server support.
> >
> > I followed this link for open genera
> > ( https://archives.loomcom.com/genera/genera-install.html )
> > not in portage or an overlay.
> >
> > Best regards :)
> >
> > Jack  于2022年7月24日周日 03:30写道:
> >
> > > On 2022.07.23 01:25, Fabulous Zhang Zheng wrote:
> > > > Dear genteel users,
> > > >
> > > >
> > > > Recently I'm trying to run Open Genera on Gentoo, which requires
> > the
> > > > old
> > > > NFS v2 protocol for communication.
> > > >
> > > > I successfully run it on a Ubuntu 16.04 virtual machine, which
> > > > enables it
> > > > by default.
> > > >
> > > > In 5.18.12 it seems deprecated and not supported, am I supposed to
> > > > revert
> > > > back to a kernel version before its removal, or manually patch it
> > > > into the
> > > > current kernel ? Or there might be some more elegant methods ?
> > > >
> > > > It will be much appreciated if anyone could help :)
> > > >
> > > Looking at the config for 5.18.14, I see no evidence V2 has been
> > > deprecated.  However, your kernel may well have been configured to
> > not
> > > use V2.  Note the kernel has different client and server settings
> > for
> > > this.  Most likely, you just need to reconfigure and recompile your
> > > kernel.
> > >
> > > Also, I don't see any genera available in portage.  If it is in an
> > > overlay, I would check for any documentation in the overlay about
> > > necessary kernel configuration.
> > >
> > > Jack
> > >
> > >
> >
> I am aware that NFSv2 is likely to be deprecated due to security
> concerns, but it hasn't happened yet in the Linux kernel.
>
> The entry (5.18.14) for "NFS server support (NFSD)" or CONFIG_NFSD: says
>
> -
> Choose Y here if you want to allow other computers to access files
> residing on this system using Sun's Network File System protocol. To
> compile the NFS server support as a module, choose M here: the module
> will be called nfsd.
>
> You may choose to use a user-space NFS server instead, in which case
> you can choose N here.
>
> To export local file systems using NFS, you also need to install user
> space programs which can be found in the Linux nfs-utils package,
> available from http://linux-nfs.org/. More detail about the Linux NFS
> server implementation is available via the exports(5) man page.
>
> Below you can choose which versions of the NFS protocol are available
> to clients mounting the NFS server on this system. Support for NFS
> version 2 (RFC 1094) is always available when CONFIG_NFSD is selected.
> -
>
> In addition, from just a very brief search, it is likely that there are
> other configuration files you may need to alter in order for the nfs
> server to actually respond to V2 requests.  This is likely how some
> distributions have blocked V2 from the default configuration.  Google
> is your friend.
>
> Jack
>
>
Sorry for the late reply,

I found this commit

of last November, which might be the reason.
2.5.4 might be the last version with such support.

I emerged manually changed ebuild  and  $( rpcinfo -p localhost | grep nfs
)
explicitly indicates the version 2 of nfs, which runs successfully.

Thanks again for your dedicated and detailed reply,
and also the bottom-posting reminder.


Best regards :)


Re: [gentoo-user] gcc 12.1.1 compile error on loongson2f Yeeloong

2022-07-29 Thread David M. Fellows
>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