[SOLVED] Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-11-10 Thread Valmor F. de Almeida




On 10/8/23 06:34, Neil Bothwick wrote:

On Sat, 7 Oct 2023 12:13:58 -0400, Valmor F. de Almeida wrote:


2) make oldconfig in the new kernel directory for linux-6.1.53-gentoo-r1

• Mitigations for speculative execution vulnerabilities
*
Mitigations for speculative execution vulnerabilities
(SPECULATION_MITIGATIONS) [Y/n/?] y
Remove the kernel mapping in user mode (PAGE_TABLE_ISOLATION)
[Y/n/?] y Avoid speculative indirect branches in kernel (RETPOLINE)
[Y/n/?] y Enable return-thunks (RETHUNK) [Y/n/?] y
Enable UNRET on kernel entry (CPU_UNRET_ENTRY) [Y/n/?] y
Enable IBPB on kernel entry (CPU_IBPB_ENTRY) [Y/n/?] y
Enable IBRS on kernel entry (CPU_IBRS_ENTRY) [Y/n/?] y

Up to here default is picked automatically; I don't have a choice.


Those are settings you already have in your existing confid, shown to
give context to the following NEW settings.

You can change them, but with make config, not oldconfig.




After some distractions...
For the record. This problem solved itself with the 6.1.57-gentoo 
kernel. Just used the config from 6.1.41-gentoo in make oldconfig.

Thanks for the help.
--
Valmor



Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-07 Thread Valmor F. de Almeida




On 10/7/23 12:13, Valmor F. de Almeida wrote:


On 10/7/23 08:09, Peter Böhm wrote:

Am Samstag, 7. Oktober 2023, 08:28:01 CEST schrieb Valmor de Almeida:



[snip]



For me the following questions would arise:

a) How did you install the kernel 6.1.41 ? (genkernel; dist-kernel; 
manual

approach)


Sorry I described the install for the 6.1.53-gentoo-r1 kernel. The 
install for 6.1.41 was similar but I used the config file from the 
earlier kernel which is 6.1.38 to start make oldconfig.


--
Valmor



manual:
1) portage sync
2) make oldconfig in the new kernel directory for linux-6.1.53-gentoo-r1

• Mitigations for speculative execution vulnerabilities
*
Mitigations for speculative execution vulnerabilities 
(SPECULATION_MITIGATIONS) [Y/n/?] y

   Remove the kernel mapping in user mode (PAGE_TABLE_ISOLATION) [Y/n/?] y
   Avoid speculative indirect branches in kernel (RETPOLINE) [Y/n/?] y
     Enable return-thunks (RETHUNK) [Y/n/?] y
   Enable UNRET on kernel entry (CPU_UNRET_ENTRY) [Y/n/?] y
   Enable IBPB on kernel entry (CPU_IBPB_ENTRY) [Y/n/?] y
   Enable IBRS on kernel entry (CPU_IBRS_ENTRY) [Y/n/?] y

Up to here default is picked automatically; I don't have a choice.
Next, I have tried with and without accepting the NEW features.

   Mitigate speculative RAS overflow on AMD (CPU_SRSO) [Y/n/?] (NEW)
   Mitigate Straight-Line-Speculation (SLS) [N/y/?] n
   Force GDS Mitigation (GDS_FORCE_MITIGATION) [N/y/?] (NEW)

3) make menuconfig
4) make && make modules_install
5) make install
6) grub-mkconfig -o /boot/grub/grub.cfg
7) reboot


b) Did you make any kernel configuration changes in your 6.1.41 ?

no; I use what is in /boot

->  ls /boot/
config-6.1.41-gentoo grub/    System.map-6.1.41-gentoo 
vmlinuz-6.1.41-gentoo
config-6.1.53-gentoo-r1  lost+found/  System.map-6.1.53-gentoo-r1 
vmlinuz-6.1.53-gentoo-r1



c) Do you use a bootmanager ? (which ?; grub, refind ?)


I use grub-2

*  sys-boot/grub
   Latest version available: 2.06-r9
   Latest version installed: 2.06-r9



d) How did you update to 6.1.53 ? (every step)


-> revdep-rebuild --ignore
-> emerge --depclean
-> eclean distfiles
-> eclean packages
-> emerge @preserved-rebuild
-> emerge --sync
-> etc-update
-> env-update
(run a script to source profile)
-> emerge -vp --update --newuse --deep --tree --with-bdeps=y @world
check conflicts etc., fetch files, then run without -vp



To better understand your system, I would look at the output of
"parted -l" (complete),
"dmesg" (complete),
"lspci -k" and
"emerge --info"
(after you have booted 6.1.41).

To clarify all this here via the mailing list might be difficult; 
therefore I

would suggest to create a thread in our Gentoo support forum:


I will give it shot.



https://forums.gentoo.org/

(I am there also; but we have also a lot of great experts there)

If you create a thread in our forum, then please use wgetpaste for big 
files:

https://wiki.gentoo.org/wiki/Wgetpaste

Greetings,
Peter



Thanks,
--
Valmor




Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-07 Thread Valmor F. de Almeida



On 10/7/23 08:09, Peter Böhm wrote:

Am Samstag, 7. Oktober 2023, 08:28:01 CEST schrieb Valmor de Almeida:


-> mount /dev/nvme0n1p4 /mnt/gentoo
mout: /mnt/gentoo: can't read superblock on /dev/nvme0n1p4.


Maybe we need to dig a little deeper. Maybe you are using LVM (or have an
encrypted root partition; or both).


No LVM, and no encryption.




-> dmesg

[snip]
nvme nvme0: controller is down; will reset: 
nvme nvme0: Does your device have a faulty power saving mode enabled?
[snip]
EXT4-fs (nvme0n1p4): unable to read superblock

I am still able to boot with the old kernel 6-1-41-gentoo.
Does this mean I may have a hardware problem with the NVMe drive?


I dont think you have a hardware problem because with 6.41 you have no
problems.


It seems like it:

->  smartctl --health /dev/nvme0n1
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.41-gentoo] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED




For me the following questions would arise:

a) How did you install the kernel 6.1.41 ? (genkernel; dist-kernel; manual
approach)


manual:
1) portage sync
2) make oldconfig in the new kernel directory for linux-6.1.53-gentoo-r1

• Mitigations for speculative execution vulnerabilities
*
Mitigations for speculative execution vulnerabilities 
(SPECULATION_MITIGATIONS) [Y/n/?] y

  Remove the kernel mapping in user mode (PAGE_TABLE_ISOLATION) [Y/n/?] y
  Avoid speculative indirect branches in kernel (RETPOLINE) [Y/n/?] y
Enable return-thunks (RETHUNK) [Y/n/?] y
  Enable UNRET on kernel entry (CPU_UNRET_ENTRY) [Y/n/?] y
  Enable IBPB on kernel entry (CPU_IBPB_ENTRY) [Y/n/?] y
  Enable IBRS on kernel entry (CPU_IBRS_ENTRY) [Y/n/?] y

Up to here default is picked automatically; I don't have a choice.
Next, I have tried with and without accepting the NEW features.

  Mitigate speculative RAS overflow on AMD (CPU_SRSO) [Y/n/?] (NEW)
  Mitigate Straight-Line-Speculation (SLS) [N/y/?] n
  Force GDS Mitigation (GDS_FORCE_MITIGATION) [N/y/?] (NEW)

3) make menuconfig
4) make && make modules_install
5) make install
6) grub-mkconfig -o /boot/grub/grub.cfg
7) reboot


b) Did you make any kernel configuration changes in your 6.1.41 ?

no; I use what is in /boot

->  ls /boot/
config-6.1.41-gentoo grub/System.map-6.1.41-gentoo 
vmlinuz-6.1.41-gentoo
config-6.1.53-gentoo-r1  lost+found/  System.map-6.1.53-gentoo-r1 
vmlinuz-6.1.53-gentoo-r1



c) Do you use a bootmanager ? (which ?; grub, refind ?)


I use grub-2

*  sys-boot/grub
  Latest version available: 2.06-r9
  Latest version installed: 2.06-r9



d) How did you update to 6.1.53 ? (every step)


-> revdep-rebuild --ignore
-> emerge --depclean
-> eclean distfiles
-> eclean packages
-> emerge @preserved-rebuild
-> emerge --sync
-> etc-update
-> env-update
(run a script to source profile)
-> emerge -vp --update --newuse --deep --tree --with-bdeps=y @world
check conflicts etc., fetch files, then run without -vp



To better understand your system, I would look at the output of
"parted -l" (complete),
"dmesg" (complete),
"lspci -k" and
"emerge --info"
(after you have booted 6.1.41).

To clarify all this here via the mailing list might be difficult; therefore I
would suggest to create a thread in our Gentoo support forum:


I will give it shot.



https://forums.gentoo.org/

(I am there also; but we have also a lot of great experts there)

If you create a thread in our forum, then please use wgetpaste for big files:
https://wiki.gentoo.org/wiki/Wgetpaste

Greetings,
Peter



Thanks,
--
Valmor



Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-03 Thread Valmor F. de Almeida

On 10/2/23 05:39, Peter Böhm wrote:

If your system is working with your old kernel I dont think it could be a
hardware problem. If your kernel config is the same then I dont think it is a
problem with the kernel.

My questions would be:

Which CPU do you use ? Have you emerged a new microcode for CPU ?

Example: Intel has disabled avx in some CPUs via microcode update. Now some
applications may throw an illegal instruction ... and your problem description
look like that only some programs have a problem. You could test it by
compiling your old kernel again ... you should have then the same problem with
it (of course you backup your old kernel before).

Regards,
Peter



The config file is not the same but I have played with what has changed 
and I don't seem to be able to fix the problem; no boot.


-> cat /proc/cpuinfo

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 158
model name  : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
stepping: 9
microcode   : 0x84
cpu MHz : 3680.490
cache size  : 6144 KB

[snip]
There are 8 cores.

There may have been a microcode emerge from dependencies; I don't emerge 
 directly. I do agree with you: if I try to recompile the working 
kernel it will not boot. However I am not willing to try just right now 
and having to troubleshoot a broken system.

Thanks,
--
Valmor




Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-03 Thread Valmor F. de Almeida

On 10/2/23 04:44, Lee wrote:

I found this:

https://www.reddit.com/r/Gentoo/comments/168qrbx/gentoosources_6146_kernel_reports_io_error/
 
<https://www.reddit.com/r/Gentoo/comments/168qrbx/gentoosources_6146_kernel_reports_io_error/>


Lee 


This is probably it.
Thanks.
--
Valmor


On Mon, Oct 2, 2023, 12:14 AM Valmor F. de Almeida <mailto:val.gen...@gmail.com>> wrote:




On 10/1/23 20:29, Håkon Alstadheim wrote:
 >
 > Den 01.10.2023 21:31, skrev Frank Steinmetzger:
 >> Am Sat, Sep 30, 2023 at 11:25:46PM +0200 schrieb Håkon Alstadheim:
 >>> Den 30.09.2023 22:57, skrev Valmor F. de Almeida:
 >>>> Hello,
 >>>>
 >>>> For a while now (3 weeks or so) I have been upgrading the
linux kernel
 >>>> on a Dell XPS laptop starting from 6.1.41-gentoo (which is my
current
 >>>> working kernel) to 6.1.53-gentoo-r1. No kernel I have built
since is
 >>>> able to boot. I have been following the same method for many
years:
 >>>> make
 >>>> oldconfig, etc...
 >>>>
 >>>> The booting error starts at:
 >>>>
 >>>> [snip]
 >>>>
 >>>> * INIT: Entering runlevel: 3
 >>>> [snip]
 >>>> * Starting cronie ...
 >>>> * Starting DHCP Client Daemon ...
 >>>> * Starting laptop_mode ...
 >>>> * Mounting network filesystems ...
 >>>> /etc/init.d/netmount: line 45 /lib/rc/bin/ewend: Input/output
error
 >>>> /lib/rc/sh/rc-cgroup.sh: line 184: rmdir: command not found
 >>>> INIT:
 >>>> INIT: cannot execute "/sbin/agetty"
 >>>> INIT: cannot execute "/sbin/agetty"
 >>>> INIT: cannot execute "/sbin/agetty"
 >>>>
 >>>>
 >>> Can you show /etc/fstab and the console-log for the entire boot?
 >>> Seems /sbin
 >>> is not readable. You sure you have the kernel modules loaded?
Are you
 >>> using
 >>> an initramfs? If so, does that build without errors ?
 >> The input/output error – to me – indicates a hardware problem.
When you
 >> mounted the FS by hand, can you read ewend? For instance with
md5sum.
 >>
 > except it boots ok with older kernels. When you've eliminated the
 > impossible, whatever remains, however improbable has to be a kernel
 > config change (missing or erroneous and unintended) , or
 > initramfs failing to build/install correctly. Check error output
from
 > your kernel build.
 >

Right it boots with 6.1.41. I started again from the config of 6.1.41
and unset SRSO:

->  diff linux/.config /boot/config-6.1.41-gentoo
3c3
< # Linux/x86 6.1.53-gentoo-r1 Kernel Configuration
---
  > # Linux/x86 6.1.41-gentoo Kernel Configuration
5c5
< CONFIG_CC_VERSION_TEXT="gcc (Gentoo 13.2.1_p20230826 p7) 13.2.1
20230826"
---
  > CONFIG_CC_VERSION_TEXT="gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1
20230526"
7c7
< CONFIG_GCC_VERSION=130201
---
  > CONFIG_GCC_VERSION=120301
455d454
< # CONFIG_CPU_SRSO is not set
457d455
< # CONFIG_GDS_FORCE_MITIGATION is not set
646d643
< CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
3136d3132
< CONFIG_VIDEO_V4L2_SUBDEV_API=y
3139,3140d3134
< CONFIG_V4L2_FWNODE=m
< CONFIG_V4L2_ASYNC=m
3236c3230,3233
< CONFIG_VIDEO_CAMERA_SENSOR=y
---
  >
  > #
  > # Camera sensor devices
  > #
3295a3293
  > # end of Camera sensor devices

Still no luck; kernel build has no errors. Boot hangs.
Thanks for the replies. Maybe 6.2 will not have this problem for my
system.
--
Valmor





Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-02 Thread Valmor F. de Almeida




On 10/1/23 20:29, Håkon Alstadheim wrote:


Den 01.10.2023 21:31, skrev Frank Steinmetzger:

Am Sat, Sep 30, 2023 at 11:25:46PM +0200 schrieb Håkon Alstadheim:

Den 30.09.2023 22:57, skrev Valmor F. de Almeida:

Hello,

For a while now (3 weeks or so) I have been upgrading the linux kernel
on a Dell XPS laptop starting from 6.1.41-gentoo (which is my current
working kernel) to 6.1.53-gentoo-r1. No kernel I have built since is
able to boot. I have been following the same method for many years: 
make

oldconfig, etc...

The booting error starts at:

[snip]

* INIT: Entering runlevel: 3
[snip]
* Starting cronie ...
* Starting DHCP Client Daemon ...
* Starting laptop_mode ...
* Mounting network filesystems ...
/etc/init.d/netmount: line 45 /lib/rc/bin/ewend: Input/output error
/lib/rc/sh/rc-cgroup.sh: line 184: rmdir: command not found
INIT:
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"


Can you show /etc/fstab and the console-log for the entire boot? 
Seems /sbin
is not readable. You sure you have the kernel modules loaded? Are you 
using

an initramfs? If so, does that build without errors ?

The input/output error – to me – indicates a hardware problem. When you
mounted the FS by hand, can you read ewend? For instance with md5sum.

except it boots ok with older kernels. When you've eliminated the 
impossible, whatever remains, however improbable has to be a kernel 
config change (missing or erroneous and unintended) , or 
initramfs failing to build/install correctly. Check error output from 
your kernel build.




Right it boots with 6.1.41. I started again from the config of 6.1.41 
and unset SRSO:


->  diff linux/.config /boot/config-6.1.41-gentoo
3c3
< # Linux/x86 6.1.53-gentoo-r1 Kernel Configuration
---
> # Linux/x86 6.1.41-gentoo Kernel Configuration
5c5
< CONFIG_CC_VERSION_TEXT="gcc (Gentoo 13.2.1_p20230826 p7) 13.2.1 20230826"
---
> CONFIG_CC_VERSION_TEXT="gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526"
7c7
< CONFIG_GCC_VERSION=130201
---
> CONFIG_GCC_VERSION=120301
455d454
< # CONFIG_CPU_SRSO is not set
457d455
< # CONFIG_GDS_FORCE_MITIGATION is not set
646d643
< CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
3136d3132
< CONFIG_VIDEO_V4L2_SUBDEV_API=y
3139,3140d3134
< CONFIG_V4L2_FWNODE=m
< CONFIG_V4L2_ASYNC=m
3236c3230,3233
< CONFIG_VIDEO_CAMERA_SENSOR=y
---
>
> #
> # Camera sensor devices
> #
3295a3293
> # end of Camera sensor devices

Still no luck; kernel build has no errors. Boot hangs.
Thanks for the replies. Maybe 6.2 will not have this problem for my system.
--
Valmor



Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-10-01 Thread Valmor F. de Almeida

On 10/1/23 07:29, Michael wrote:

On Sunday, 1 October 2023 05:56:02 BST Valmor F. de Almeida wrote:

On 9/30/23 17:25, Håkon Alstadheim wrote:

Den 30.09.2023 22:57, skrev Valmor F. de Almeida:

Hello,

For a while now (3 weeks or so) I have been upgrading the linux kernel
on a Dell XPS laptop starting from 6.1.41-gentoo (which is my current
working kernel) to 6.1.53-gentoo-r1. No kernel I have built since is
able to boot. I have been following the same method for many years:
make oldconfig, etc...

The booting error starts at:

[snip]

* INIT: Entering runlevel: 3
[snip]
* Starting cronie ...
* Starting DHCP Client Daemon ...
* Starting laptop_mode ...
* Mounting network filesystems ...
/etc/init.d/netmount: line 45 /lib/rc/bin/ewend: Input/output error
/lib/rc/sh/rc-cgroup.sh: line 184: rmdir: command not found
INIT:
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"


Can you show /etc/fstab and the console-log for the entire boot? Seems
/sbin is not readable. You sure you have the kernel modules loaded? Are
you using an initramfs? If so, does that build without errors ?


Here is fstab:

/dev/nvme0n1p2  /boot   ext2defaults0 2
/dev/nvme0n1p3  noneswapsw  0 0
/dev/nvme0n1p4  /   ext4noatime,discard
 0 1
/dev/cdrom  /mnt/cdrom  autonoauto,user 0 0

I have not changed anything from 6.1.41-gentoo (which compiles and
boots) except updating the config file for compiling the new kernel.
Then I do: make && modules_install. Which runs without errors. After
that: grub-mkconfig -o /boot/grub/grub.cfg.
I am not using initramfs.

I don't know how to save the boot messages; it seems that if I turn on
the logger in openrc, it will log the openrc messages but not sysinit
runlevels?

Thanks,
--
Valmor


I think the error messages you're getting indicate inability to access your
rootfs.  Have you perhaps changed the fs drivers in the latest kernels, from
built in to modules?

Have you diff'ed your 6.1.41-gentoo .config file against the latest kernels'
.config files to see what might have changed/missing?

You can set up a netconsole to check boot time messages:

https://www.kernel.org/doc/Documentation/networking/netconsole.txt
https://wiki.ubuntu.com/Kernel/Netconsole

In summary, build netconsole in the new kernel, or as a module, change GRUB's
default CMDLINE from "quiet splash" to "debug" and add netconsole in the
kernel command line:

netconsole=@/,[PORT]@[DEST_IP]

Then at the destination PC launch netcat/socat/telnet; e.g.

nc -u -l -p [PORT]

and reboot the PC you want to debug with the latest kernel, while watching the
output on the destination PC's terminal with nc.


Here is the diff for the config files:

->  diff config /boot/config-6.1.41-gentoo
3c3
< # Linux/x86 6.1.53-gentoo-r1 Kernel Configuration
---
> # Linux/x86 6.1.41-gentoo Kernel Configuration
5c5
< CONFIG_CC_VERSION_TEXT="gcc (Gentoo 13.2.1_p20230826 p7) 13.2.1 20230826"
---
> CONFIG_CC_VERSION_TEXT="gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526"
7c7
< CONFIG_GCC_VERSION=130201
---
> CONFIG_GCC_VERSION=120301
455d454
< CONFIG_CPU_SRSO=y
457d455
< # CONFIG_GDS_FORCE_MITIGATION is not set
646d643
< CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y
3136d3132
< CONFIG_VIDEO_V4L2_SUBDEV_API=y
3139,3140d3134
< CONFIG_V4L2_FWNODE=m
< CONFIG_V4L2_ASYNC=m
3236c3230,3233
< CONFIG_VIDEO_CAMERA_SENSOR=y
---
>
> #
> # Camera sensor devices
> #
3295a3293
> # end of Camera sensor devices

I guess I could explore some of this difference.
I have not changed the way I compile the kernel and I typically try to 
have everything built in (only a few modules).

Thanks for the netconsole info.
--
Valmor



Re: [gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-09-30 Thread Valmor F. de Almeida

On 9/30/23 17:25, Håkon Alstadheim wrote:


Den 30.09.2023 22:57, skrev Valmor F. de Almeida:


Hello,

For a while now (3 weeks or so) I have been upgrading the linux kernel 
on a Dell XPS laptop starting from 6.1.41-gentoo (which is my current 
working kernel) to 6.1.53-gentoo-r1. No kernel I have built since is 
able to boot. I have been following the same method for many years: 
make oldconfig, etc...


The booting error starts at:

[snip]

* INIT: Entering runlevel: 3
[snip]
* Starting cronie ...
* Starting DHCP Client Daemon ...
* Starting laptop_mode ...
* Mounting network filesystems ...
/etc/init.d/netmount: line 45 /lib/rc/bin/ewend: Input/output error
/lib/rc/sh/rc-cgroup.sh: line 184: rmdir: command not found
INIT:
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"


Can you show /etc/fstab and the console-log for the entire boot? Seems 
/sbin is not readable. You sure you have the kernel modules loaded? Are 
you using an initramfs? If so, does that build without errors ?



Here is fstab:

/dev/nvme0n1p2  /boot   ext2defaults0 2
/dev/nvme0n1p3  noneswapsw  0 0
/dev/nvme0n1p4  /   ext4noatime,discard 
   0 1

/dev/cdrom  /mnt/cdrom  autonoauto,user 0 0

I have not changed anything from 6.1.41-gentoo (which compiles and 
boots) except updating the config file for compiling the new kernel. 
Then I do: make && modules_install. Which runs without errors. After 
that: grub-mkconfig -o /boot/grub/grub.cfg.

I am not using initramfs.

I don't know how to save the boot messages; it seems that if I turn on 
the logger in openrc, it will log the openrc messages but not sysinit 
runlevels?


Thanks,
--
Valmor



[gentoo-user] 6.1.53-gentoo-r1 kernel not booting

2023-09-30 Thread Valmor F. de Almeida



Hello,

For a while now (3 weeks or so) I have been upgrading the linux kernel 
on a Dell XPS laptop starting from 6.1.41-gentoo (which is my current 
working kernel) to 6.1.53-gentoo-r1. No kernel I have built since is 
able to boot. I have been following the same method for many years: make 
oldconfig, etc...


The booting error starts at:

[snip]

* INIT: Entering runlevel: 3
[snip]
* Starting cronie ...
* Starting DHCP Client Daemon ...
* Starting laptop_mode ...
* Mounting network filesystems ...
/etc/init.d/netmount: line 45 /lib/rc/bin/ewend: Input/output error
/lib/rc/sh/rc-cgroup.sh: line 184: rmdir: command not found
INIT:
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"
INIT: cannot execute "/sbin/agetty"

[snip]

The following kernels all failed to boot: 6.1.46-gentoo, 6.1.53-gentoo, 
6.1.53-gentoo-r1. I am wondering whether this will eventually get fixed 
on later kernels. I have been upgrading kernels on this machine since 
2020 every other week without any kernel problems.


Inputs appreciated.
Thanks,
--
Valmor



[gentoo-user] [SOLVED] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase)

2021-03-14 Thread Valmor F. de Almeida




On 3/14/21 1:08 PM, Valmor F. de Almeida wrote:



On 3/14/21 2:20 AM, Valmor F. de Almeida wrote:


Hello,

Has anyone seen this recently?

* Messages for package dev-lang/python-3.9.2:

  * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
  *   (no error message)
  *
  * Call stack:
  * ebuild.sh, line  125:  Called src_install
  *   environment, line 3125:  Called python_domodule 'epython.py'
  *   environment, line 2609:  Called python_get_sitedir
  *   environment, line 2834:  Called _python_export 'PYTHON_SITEDIR'
  *   environment, line  633:  Called die
  * The specific snippet of code:
  *   PYTHON_SITEDIR=$("${PYTHON}" -c 'import 
distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') || 
die;

  *
  * If you need support, post the output of `emerge --info 
'=dev-lang/python-3.9.2::gentoo'`,
  * the complete build log and the output of `emerge -pqv 
'=dev-lang/python-3.9.2::gentoo'`.
  * The complete build log is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
  * The ebuild environment file is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
  * Working directory: 
'/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

  * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

The error in the log file is:

Fatal Python error: init_import_site: Failed to import the site module

I sync portage once a week. Sync problem?

Inputs appreciated.
Thanks,
--
Valmor



Added info; not sure this helps troubleshooting but I tried this and works:

Python 3.9.1 (default, Jan 30 2021, 04:59:43)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
 >>> import distutils.sysconfig
 >>> print(distutils.sysconfig.get_python_lib())
/usr/lib/python3.9/site-packages
 >>>

Thanks,
--
Valmor


For the record:

emerge --sync

solved it.

--
Valmor




[gentoo-user] Re: ERROR: dev-lang/python-3.9.2::gentoo failed (install phase)

2021-03-14 Thread Valmor F. de Almeida




On 3/14/21 2:20 AM, Valmor F. de Almeida wrote:


Hello,

Has anyone seen this recently?

* Messages for package dev-lang/python-3.9.2:

  * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
  *   (no error message)
  *
  * Call stack:
  * ebuild.sh, line  125:  Called src_install
  *   environment, line 3125:  Called python_domodule 'epython.py'
  *   environment, line 2609:  Called python_get_sitedir
  *   environment, line 2834:  Called _python_export 'PYTHON_SITEDIR'
  *   environment, line  633:  Called die
  * The specific snippet of code:
  *   PYTHON_SITEDIR=$("${PYTHON}" -c 'import 
distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') || die;

  *
  * If you need support, post the output of `emerge --info 
'=dev-lang/python-3.9.2::gentoo'`,
  * the complete build log and the output of `emerge -pqv 
'=dev-lang/python-3.9.2::gentoo'`.
  * The complete build log is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
  * The ebuild environment file is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
  * Working directory: 
'/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

  * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

The error in the log file is:

Fatal Python error: init_import_site: Failed to import the site module

I sync portage once a week. Sync problem?

Inputs appreciated.
Thanks,
--
Valmor



Added info; not sure this helps troubleshooting but I tried this and works:

Python 3.9.1 (default, Jan 30 2021, 04:59:43)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.sysconfig
>>> print(distutils.sysconfig.get_python_lib())
/usr/lib/python3.9/site-packages
>>>

Thanks,
--
Valmor



[gentoo-user] ERROR: dev-lang/python-3.9.2::gentoo failed (install phase)

2021-03-13 Thread Valmor F. de Almeida



Hello,

Has anyone seen this recently?

* Messages for package dev-lang/python-3.9.2:

 * ERROR: dev-lang/python-3.9.2::gentoo failed (install phase):
 *   (no error message)
 *
 * Call stack:
 * ebuild.sh, line  125:  Called src_install
 *   environment, line 3125:  Called python_domodule 'epython.py'
 *   environment, line 2609:  Called python_get_sitedir
 *   environment, line 2834:  Called _python_export 'PYTHON_SITEDIR'
 *   environment, line  633:  Called die
 * The specific snippet of code:
 *   PYTHON_SITEDIR=$("${PYTHON}" -c 'import 
distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') || die;

 *
 * If you need support, post the output of `emerge --info 
'=dev-lang/python-3.9.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=dev-lang/python-3.9.2::gentoo'`.
 * The complete build log is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-lang/python-3.9.2/temp/environment'.
 * Working directory: 
'/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

 * S: '/var/tmp/portage/dev-lang/python-3.9.2/work/Python-3.9.2'

The error in the log file is:

Fatal Python error: init_import_site: Failed to import the site module

I sync portage once a week. Sync problem?

Inputs appreciated.
Thanks,
--
Valmor



Re: [gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system?

2021-02-16 Thread Valmor F. de Almeida



On 2/14/21 5:54 PM, Rich Freeman wrote:

On Sat, Feb 13, 2021 at 2:33 PM Valmor F. de Almeida
 wrote:



Hello,
I use the global flags USE="elogind alsa -multilib -abi_x86_32" and I
thought this would prevent 32bit libraries to be installed.

For example I have (from glibc) both:

/usr/lib/libutil.so
/usr/lib64/libutil.so



In case you haven't already figured it out, glibc ignores the setting
of abi_x86_32.  It is controlled by your profile selection.  Part of
that might be legacy, but if you build glibc without lib32 support it
is basically impossible to add it in later without bootstrapping it.

If you don't want multilib then you can use a no-multilib profile.



I ended up using:

USE="elogind alsa -multilib -multiarch -abi_x86_32"

but some libraries from glibc remain 32bit. My main goal was to remove 
32bit libraries from libX11. This did happen since nvidia-drivers was 
installing the 32bit versions of libX11 if -multilib -abi_x86_32 were 
not used; maybe I should have used this in package.use/nvidia-drivers 
instead globally.


Thanks for all the responses.
--
Valmor



[gentoo-user] why both /usr/lib and /usr/lib64 on a 64bit system?

2021-02-13 Thread Valmor F. de Almeida



Hello,
I use the global flags USE="elogind alsa -multilib -abi_x86_32" and I 
thought this would prevent 32bit libraries to be installed.


For example I have (from glibc) both:

/usr/lib/libutil.so
/usr/lib64/libutil.so

this causes problems with some packages outside portage that I would 
like to install. The install fails (or is incomplete) because it is 
trying to link a 32bit incompatible library, e.g.:


/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
skipping incompatible /usr/lib/libutil.so when searching for -lutil


Is there a way to have only /usr/lib64 in gentoo or is this not 
possible? I do use


export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH

in my shell startup file.

Thanks for inputs.
--
Valmor



[gentoo-user] vtk python USE flag question

2020-12-18 Thread Valmor F. de Almeida

Hello,

I emerged vtk with the python USE flag on.
Next I started a python interactive session and tried to import vtk:

->  python
Python 3.8.6 (default, Nov 21 2020, 00:26:41)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk

but vtk can't be found.

Are the bindings for python supposed to work this way?

Thanks,
--
Valmor



Re: [gentoo-user] pip search disabled?

2020-12-18 Thread Valmor F. de Almeida




On 12/17/20 11:55 PM, bobwxc wrote:

在 2020/12/18 上午2:32, Valmor F. de Almeida 写道:


Hello,
Has anyone seen this search problem with pip for any package?

->  pip search twine

ERROR: Exception:
Traceback (most recent call last):
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", 
line 228, in _main

    status = self.run(options, args)
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/commands/search.py", 
line 60, in run

    pypi_hits = self.search(query, options)
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/commands/search.py", 
line 80, in search

    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
    response = self.__transport.request(
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/network/xmlrpc.py", 
line 45, in request

    return self.parse_response(response.raw)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1341, in 
parse_response

    return u.close()
  File "/usr/lib/python3.8/xmlrpc/client.py", line 655, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: temporarily disabled due to unmanageable load and will be deprecated 
in the near future. Please use the Simple or JSON API instead.'>


Thanks,
--
Valmor


Just try it, and meet the same problem with python3.7 pip-20.2.4.
Then update to 20.3.3, still the same problem.

There are issues on github,

https://github.com/pypa/pip/issues/9292
https://github.com/pypa/pip/issues/9312

someone said,
*"*

Seehttps://status.python.org/incidents/grk0k7sz6zkp 
<https://status.python.org/incidents/grk0k7sz6zkp>for context.


PyPI has had significant uptick in automated hits to the XMLRPC API, 
which has resulted in needing to take that offline, as it hampers the 
rest of the application's ability to function.


"



Thanks.
--
Valmor



[gentoo-user] pip search disabled?

2020-12-17 Thread Valmor F. de Almeida



Hello,
Has anyone seen this search problem with pip for any package?

->  pip search twine

ERROR: Exception:
Traceback (most recent call last):
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", 
line 228, in _main

status = self.run(options, args)
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/commands/search.py", 
line 60, in run

pypi_hits = self.search(query, options)
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/commands/search.py", 
line 80, in search

hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
return self.__send(self.__name, args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
response = self.__transport.request(
  File 
"/usr/lib/python3.8/site-packages/pip/_internal/network/xmlrpc.py", line 
45, in request

return self.parse_response(response.raw)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1341, in parse_response
return u.close()
  File "/usr/lib/python3.8/xmlrpc/client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: temporarily disabled due to unmanageable load and will be deprecated in 
the near future. Please use the Simple or JSON API instead.'>


Thanks,
--
Valmor



[gentoo-user] paraview build

2020-12-15 Thread Valmor F. de Almeida



Hello,

Has anyone been able to build sci-visualization/paraview either through 
portage or outside portage? Currently I can't either way.


Thanks for inputs.

--
Valmor



[gentoo-user] X11 specific libs not used/found

2020-12-14 Thread Valmor F. de Almeida



Hello,

I am trying to install a data visualization package (VisIt) which 
installs locally, on its own, a qt package (qt-everywhere-src-5.14.2). 
The config output says:


[snip]

  X11 specific:
XLib . no
XCB Xlib . no
EGL on X11 ... no

[snip]

  XCB:
Using system-provided XCB libraries .. no
XCB XKB .. yes
XCB XInput ... yes
Native painting (experimental) ... no
GL integrations:
  GLX Plugin . no
  EGL-X11 Plugin . no

which indicates that later during install of the whole package, some XCB 
files are not found.


I have installed libX11, and xorg-x11. Apparently some libx11-dev 
package is needed but I don't seem to find it in Gentoo.


Any help appreciated.
Thanks,

--
Valmor



Re: [gentoo-user] unable to login some websites using www-client/firefox-68.9.0

2020-07-06 Thread Valmor F. de Almeida




On 7/5/20 7:36 PM, Серега Филатов wrote:

Maybe "do not track" causes this issue?
Are you able to log in on firefox-bin? Another browser? Another system 
in your network?


On Sun, Jul 5, 2020, 20:36 Valmor F. de Almeida <mailto:val.gen...@gmail.com>> wrote:



Hello list:
I have emerged www-client/firefox-68.9.0 and I am able to log in to,
say
google email accounts, etc. However at some other websites that require
username/password, I am not able to log in. I have cleared the cache,
deleted all cookies, etc. Still problematic. I don't get any errors
upon
login. Just get straight back to the original site prompting for the
username and password.

Just checking on this list whether I used all USE flags correctly when
emerging firefox:
bindist, gmp-autoupdate, pulseaudio, screenshot, system-av1,
system-harfbuzz, system-icu, system-jpeg, system-libevent,
system-libvpx, system-sqlite, system-webp.

I only have two add-ons: flag and dark background loaded.

Inputs appreciated.
Thanks,
--
Valmor



Yes I am able to log in from a Mac OS using FF. I have not tried 
firefox-bin; I should do it.

Thanks,
--
Valmor



[gentoo-user] unable to login some websites using www-client/firefox-68.9.0

2020-07-05 Thread Valmor F. de Almeida



Hello list:
I have emerged www-client/firefox-68.9.0 and I am able to log in to, say 
google email accounts, etc. However at some other websites that require 
username/password, I am not able to log in. I have cleared the cache, 
deleted all cookies, etc. Still problematic. I don't get any errors upon 
login. Just get straight back to the original site prompting for the 
username and password.


Just checking on this list whether I used all USE flags correctly when 
emerging firefox:
bindist, gmp-autoupdate, pulseaudio, screenshot, system-av1, 
system-harfbuzz, system-icu, system-jpeg, system-libevent, 
system-libvpx, system-sqlite, system-webp.


I only have two add-ons: flag and dark background loaded.

Inputs appreciated.
Thanks,
--
Valmor



Re: [gentoo-user] color fonts?

2020-07-04 Thread Valmor F. de Almeida



On 7/4/20 7:51 AM, Caveman Al Toraboran wrote:

hi - some colors are fancy schmancy, look:
https://www.fontspace.com/category/color

can we do this to linux?  e.g. in urxvt?

also can we make our own color fonts?
e.g. can OTB fonts have color encoded in them?

rgrds,
cm.


Maybe this is a place to start; for terminals:

https://pypi.org/project/rich/

Just a thought.
--
Valmor



[SOLVED] Re: [gentoo-user] WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict

2020-07-03 Thread Valmor F. de Almeida



On 7/3/20 10:51 PM, Francesco Turco wrote:

On Sat, Jul 4, 2020, at 06:35, Valmor F. de Almeida wrote:

Is there a problem ignoring the warning below? My understanding here is
that dev-python/docutils-0.16 wants a python2_7 target built that is not
in the scheduled merge (only python3_7 is). Hopefully this dependency
conflict will fix itself as python2 goes away.

Please see: https://bugs.gentoo.org/722762


This was gentoo fast.

Thanks.
--
Valmor



[gentoo-user] WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict

2020-07-03 Thread Valmor F. de Almeida

Hello list:

Is there a problem ignoring the warning below? My understanding here is 
that dev-python/docutils-0.16 wants a python2_7 target built that is not 
in the scheduled merge (only python3_7 is). Hopefully this dependency 
conflict will fix itself as python2 goes away.



Thank you for inputs.
--
Valmor


WARNING: One or more updates/rebuilds have been skipped due to a 
dependency conflict:


dev-python/pygments:0

  (dev-python/pygments-2.6.1:0/0::gentoo, ebuild scheduled for merge) 
USE="-doc -test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 (-pypy3) 
-python3_6 (-python3_8) (-python3_9)" conflicts with
dev-python/pygments[python_targets_python2_7(-),python_targets_python3_7(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)] 
required by (dev-python/docutils-0.16:0/0::gentoo, installed) USE="" 
ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 (-pypy3) -python3_6 
(-python3_8) (-python3_9)"





[SOLVED] Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-27 Thread Valmor F. de Almeida



On 6/26/20 10:08 AM, Andreas K. Huettel wrote:

Am Donnerstag, 25. Juni 2020, 22:13:46 CEST schrieb Valmor de Almeida:

Hello,
I had to enable ~amd64 to emerge jupyter so I know this is bound for
problems. However, anyone there able to use jupyter notebooks in
gentoo?
No matter what notebook I try to open, I get the internal server error.
Thank you.

Try updating dev-python/nbconvert to a version newer than the stable one.

You probably did this the same way as me, keywording only what was really
necessary on an otherwise stable system. Problem is, notebooks have an
internal versioning, and nbconvert-5.2 doesn't support recent versions
anymore. After updating nbconvert things worked fine for me.

(Time to fix this, I know, but there's only so many hours in the day...)


Thank you. It worked!

--

Vamor

Here is some info for reference:

*  dev-python/jupyter
  Latest version available: 1.0.0-r2
  Latest version installed: 1.0.0-r2
  Size of files: 15 KiB
  Homepage:  https://jupyter.org
  Description:   Jupyter metapackage. Install all the Jupyter 
components in one go

  License:   BSD

*  dev-python/jupyter_client
  Latest version available: 5.2.3-r1
  Latest version installed: 5.2.3-r1
  Size of files: 266 KiB
  Homepage:  https://jupyter.org
  Description:   Jupyter protocol implementation and client libraries
  License:   BSD

*  dev-python/jupyter_console
  Latest version available: 6.1.0
  Latest version installed: 6.1.0
  Size of files: 28 KiB
  Homepage:  https://jupyter.org
  Description:   A terminal-based console frontend for Jupyter kernels
  License:   BSD

*  dev-python/jupyter_core
  Latest version available: 4.6.1-r1
  Latest version installed: 4.6.1-r1
  Size of files: 66 KiB
  Homepage:  https://jupyter.org
  Description:   Core common functionality of Jupyter projects
  License:   BSD

*  dev-python/nbconvert
  Latest version available: 5.6.1
  Latest version installed: 5.5.0
  Size of files: 687 KiB
  Homepage:  https://nbconvert.readthedocs.io/
  Description:   Converting Jupyter Notebooks
  License:   BSD

/etc/portage/package.accept_keywords/jupyter

dev-python/jupyter ~amd64
dev-python/jupyter_console ~amd64
dev-python/nbconvert ~amd64

/etc/portage/package.use/jupyter

net-libs/zeromq drafts
dev-python/PyQt5 gui svg widgets
x11-libs/libxkbcommon X
dev-libs/libpcre pcre16
dev-libs/libpcre2 pcre16

emerge jupyter

emerge =nbconvert-5.5.0