Re: [gentoo-user] is a global use flag necessary for python?

2024-03-09 Thread Walter Dnes
  Sorry; that is over my head.  When did you last upgrade?  The error
messages talk about python 3.8.  But on my machine it looks like 3.11
and 3.12 are current...

[x8940][waltdnes][~] find /usr/bin -name python3\.*
/usr/bin/python3.12
/usr/bin/python3.12-config
/usr/bin/python3.11
/usr/bin/python3.11-config

  What do you get when you run...

find /usr/bin -name python3\.*

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Walter Dnes
On Sat, Mar 09, 2024 at 09:16:37PM +, Peter Humphrey wrote
> On Saturday, 9 March 2024 19:37:40 GMT Walter Dnes wrote:
> 
> > On Sat, Mar 09, 2024 at 02:45:02PM +, Peter Humphr
> > The real question is what else, besides clang and its libraries,
> are you building that requires clang?
> 
> Firefox.

  Upstream in this same thread...

On Sat, Mar 09, 2024 at 08:04:06AM +, Wols Lists wrote
> On 03/03/2024 23:13, Carsten Hauck wrote:
> >
> > Some time ago on one of my machines Thunderbird and Firefox stopped to
> > compile with USE="clang". As they can be build with gcc I never digged
> > too deep into that problem but maybe it's worth a shot.
>
> For anyone else who hits this sort of problem, I did an
>
> USE=-clang emerge --update @world
>
> (firefox and thunderbird were the only programs I thought this would
> touch), and it worked.
>
> There were a couple of other programs that I guess got pulled in by the
> changed use, but they've upgraded which is the main thing.
>
> Thank you very much

  So there are at least 2 people who've found out that Firefox can and
*MUST* be built with USE="-clang".

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] Musl custom initramfs kernel panic

2024-03-09 Thread Hoël Bézier

Am Sat, Mar 09, 2024 at 06:59:15PM +0100 schrieb efeizbudak:

How could I go about finding which library it is? lddtree is only giving
me libblkid and libmount, both of which are already inside the
initramfs. I will try to learn about busybox. Thank you.


You can try to run mount with strace on your host, and see which shared 
libraries are opened.


signature.asc
Description: PGP signature


Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Peter Humphrey
On Saturday, 9 March 2024 19:37:40 GMT Walter Dnes wrote:

> On Sat, Mar 09, 2024 at 02:45:02PM +, Peter Humphr
> The real question is what else, besides clang and its libraries, are you
> building that requires clang?

Firefox.

-- 
Regards,
Peter.






Re: [gentoo-user] is a global use flag necessary for python?

2024-03-09 Thread n952162

On 3/9/24 20:51, Walter Dnes wrote:

On Sat, Mar 09, 2024 at 07:55:13PM +0100, n952162 wrote

Hello all,

I just synced my system after a long delay,

   That's your problem right there.


Is there a way to do it globally?

   First of all python targets should not need to be mentioned in
make.conf or package.use.  Gentoo manages versions automatically... if
you update often enough.  First thing to do is update python so programs
have somthing up-to-date to build against.  Try...

emerge -1 python

...and then update world.




 * IMPORTANT: 2 config files in '/etc/portage' need updating.
Calculating dependencies   * See the CONFIGURATION FILES and
CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
.. ... ... done!
[ebuild  N ] dev-python/gentoo-common-1
[ebuild  N ] dev-python/ensurepip-pip-24.0
[ebuild U  ] dev-lang/python-exec-2.4.10 [2.4.8]
PYTHON_TARGETS="(python3_11%*) (python3_12%*)"
[ebuild U  ] app-arch/gzip-1.13 [1.11] USE="-verify-sig%"
[ebuild  N ] app-alternatives/gzip-1  USE="reference (split-usr) -pigz"
[ebuild U  ] dev-build/autoconf-2.71-r6 [2.71-r1]
[ebuild U  ] dev-build/automake-1.16.5-r2 [1.16.4]
[ebuild  NS    ] dev-lang/python-3.12.2_p1 [3.6.15, 3.7.12_p1, 3.8.13,
3.9.9-r1, 3.10.2_p1] USE="ensurepip%* -debug% -valgrind%"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-lang/python-exec:2

  (dev-lang/python-exec-2.4.10:2/2::gentoo, ebuild scheduled for merge)
USE="(native-symlinks) -test" ABI_X86="(64)" PYTHON_TARGETS="(pypy3)
(python3_10) (python3_11) (python3_12)" pulled in by
    dev-lang/python-exec[python_targets_python3_12(-)] required by
(dev-lang/python-3.12.2_p1:3.12/3.12::gentoo, ebuild scheduled for
merge) USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build
-debug -examples -libedit -pgo -test -tk -valgrind -verify-sig"
ABI_X86="(64)"


  (dev-lang/python-exec-2.4.8:2/2::gentoo, installed)
USE="(native-symlinks) userland_GNU -test" ABI_X86="(64)"
PYTHON_TARGETS="(pypy3) (python3_10) python3_8 python3_9" pulled in by
>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/pyparsing-2.4.7-r1:0/0::gentoo, installed) USE="userland_GNU -examples" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(app-portage/gemato-16.2:0/0::gentoo, installed) USE="gpg userland_GNU -test -tools" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/namespace-sphinxcontrib-1.0:0/0::gentoo, installed) USE="userland_GNU" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/cython-0.29.24-r1:0/0::gentoo, installed) USE="userland_GNU -doc -emacs -test" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(x11-base/xcb-proto-1.14.1:0/0::gentoo, installed) USE="userland_GNU" ABI_X86="(64) -32 
(-x32)" PYTHON_TARGETS="python3_8 python3_9"

    dev-lang/python-exec[python_targets_python3_9(-)] required by
(dev-lang/python-3.9.9-r1:3.9/3.9::gentoo, installed) USE="gdbm ncurses
readline sqlite ssl userland_GNU xml -bluetooth -build -examples
-hardened -lto -pgo -test -tk -verify-sig -wininst" ABI_X86="(64)"

    >=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-)] required
by (dev-python/backports-zoneinfo-0.2.1-r1:0/0::gentoo, installed)
USE="userland_GNU -test" ABI_X86="(64)" PYTHON_TARGETS="python3_8 (-pypy3)"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/lxml-4.6.3-r1:0/0::gentoo, installed) USE="threads userland_GNU -doc -examples -test" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/sphinxcontrib-devhelp-1.0.2:0/0::gentoo, installed) USE="userland_GNU -test" 
ABI_X86="(64)" PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

>=dev-lang/python-exec-2:2/2=[python_targets_python3_8(-),python_targets_python3_9(-)] required by 
(dev-python/PySocks-1.7.1-r1:0/0::gentoo, installed) USE="userland_GNU" ABI_X86="(64)" 
PYTHON_TARGETS="python3_8 python3_9 (-pypy3) -python3_10"

    >=dev-lang/python-exec-2:2/2=[python_targets_python3_8] required by
(app-emulation/virtualbox-6.1.24:0/6.1::gentoo, installed) USE="alsa
opengl opus pam qt5 sdk udev userland_GNU vnc -debug -doc -dtrace
-headless -java -lvm (-pax-kernel) -pulseaudio -python 

Re: [gentoo-user] is a global use flag necessary for python?

2024-03-09 Thread Walter Dnes
On Sat, Mar 09, 2024 at 07:55:13PM +0100, n952162 wrote
> Hello all,
> 
> I just synced my system after a long delay,

  That's your problem right there.

> Is there a way to do it globally?

  First of all python targets should not need to be mentioned in
make.conf or package.use.  Gentoo manages versions automatically... if
you update often enough.  First thing to do is update python so programs
have somthing up-to-date to build against.  Try...

emerge -1 python

...and then update world.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Walter Dnes
On Sat, Mar 09, 2024 at 02:45:02PM +, Peter Humphrey wrote

> >>> Running pre-merge checks for sys-libs/compiler-rt-18.1.0
>  * Building using a compiler other than clang may result in broken atomics
>  * library. Enable USE=clang unless you have a very good reason not to.

  According to https://packages.gentoo.org/packages/sys-libs/compiler-rt
"sys-libs/compiler-rt" is a "Compiler runtime library for clang
(built-in part)" so like... dohhh.  Use clang to support clang.  The
real question is what else, besides clang and its libraries, are you
building that requires clang?

> Does the compiler-rt ebuild override USE in make.conf?

  You can build it with USE="-clang", but that defeats the entire
purpose of building compiler-rt.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



[gentoo-user] is a global use flag necessary for python?

2024-03-09 Thread n952162

Hello all,

I just synced my system after a long delay, and I want to emerge
firefox.  I got this, first, I think, for something called gemato:

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( python_targets_python3_10 python_targets_python3_11
python_targets_python3_12 )

  Not being sure exactly what was necessary, I put them all into the
use file for gemato.

Then, I got the same thing for meson, I think.  I'm thinking this might
go through all the packages.

Is there a way to do it globally?




Re: [gentoo-user] Musl custom initramfs kernel panic

2024-03-09 Thread efeizbudak
How could I go about finding which library it is? lddtree is only giving 
me libblkid and libmount, both of which are already inside the 
initramfs. I will try to learn about busybox. Thank you.


On 2024-03-09 17:23, Alexandru N. Barloiu wrote:

clearly mount is using a symbol not provided by one of those shared 
libraries, but no clue which it is. However you dont need dash and 
mount and umount. Reason its working for genkernel is because its using 
busybox instead of normal system mount/umount/dash. Might want to try 
that. Smaller too.


On 3/9/2024 4:03 PM, efeizbudak wrote:


Hi all,

After updating my musl, my custom initramfs had stopped working. Can 
anyone give me a hand with this? I recompiled util-linux and updated 
the related files in my initramfs and also tried building it with 
static-libs but neither of these helped. On the other hand, the 
initramfs I built using genkernel works just fine.


The init error:

Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

/init: 6: cannot create /proc/sys/kernel/printk: Directory nonexistent
Fatal error during RNG initialisation
Cannot initialize crypto RNG backend.
Device /dev/sda3 is not a valid LUKS device.
/init: 8: cannot create /proc/sys/kernel/printk: Directory nonexistent
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

umount: /dev: not mounted.
umount: /proc: not mounted.
umount: /sys: not mounted.
switch_root: failed to mount moving /mnt/root to /: Invalid argument
switch_root: failed. Sorry.
Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0100
Kernel Offset: 0x900 from 0x8100 (relocation range: 
0x8000-0xbfff)
---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode+0x0100 ]---


my init file in my initramfs:

#!/bin/dash

mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
echo 0 > /proc/sys/kernel/printk
cryptsetup luksOpen --allow-discards /dev/sda3 root
echo 1 > /proc/sys/kernel/printk
mount -o ro /dev/mapper/root /mnt/root
umount /dev /proc /sys
exec switch_root /mnt/root /sbin/init

my initramfs files:

.
├── bin
│   ├── dash
│   ├── mount
│   └── umount
├── dev
│   ├── console
│   ├── null
│   ├── sda3
│   └── tty
├── etc
├── init
├── lib
│   ├── ld-musl-x86_64.so.1
│   ├── libblkid.so.1
│   ├── libcap.so.2
│   ├── libdevmapper.so.1.02
│   ├── libmount.so.1
│   ├── libudev.so.1
│   └── libuuid.so.1
├── lib64
├── mnt
│   └── root
├── proc
├── root
├── run
├── sbin
│   ├── cryptsetup
│   └── switch_root
├── sys
├── trq.map
├── usr
│   ├── bin
│   └── lib
│   ├── libblkid.so.1
│   ├── libc.so
│   ├── libcap.so.2
│   ├── libcryptsetup.so.12
│   ├── libgcrypt.so.20
│   ├── libgpg-error.so.0
│   ├── libjson-c.so.5
│   ├── libmount.so.1
│   ├── libpopt.so.0
│   └── libuuid.so.1
└── var
├── log
└── run

how I update my initramfs:

lddtree.py --copy-to-tree /usr/src/initramfs /bin/mount 
/sbin/cryptsetup /bin/dash /sbin/switch_root /bin/umount

cd /usr/src/initramfs
find . -print0 | cpio --null --create --verbose --format=newc > 
/boot/custom-initramfs.img




Re: [gentoo-user] Musl custom initramfs kernel panic

2024-03-09 Thread Alexandru N. Barloiu
can also chroot into the environment where you prepared the initramfs 
image to test stuff, which will save you rebooting time.


On 3/9/2024 4:03 PM, efeizbudak wrote:

Hi all,

After updating my musl, my custom initramfs had stopped working. Can 
anyone give me a hand with this? I recompiled util-linux and updated 
the related files in my initramfs and also tried building it with 
static-libs but neither of these helped. On the other hand, the 
initramfs I built using genkernel works just fine.


The init error:

Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

/init: 6: cannot create /proc/sys/kernel/printk: Directory nonexistent
Fatal error during RNG initialisation
Cannot initialize crypto RNG backend.
Device /dev/sda3 is not a valid LUKS device.
/init: 8: cannot create /proc/sys/kernel/printk: Directory nonexistent
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

umount: /dev: not mounted.
umount: /proc: not mounted.
umount: /sys: not mounted.
switch_root: failed to mount moving /mnt/root to /: Invalid argument
switch_root: failed. Sorry.
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0100
Kernel Offset: 0x900 from 0x8100 (relocation range: 
0x8000-0xbfff)
---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode+0x0100 ]---


my init file in my initramfs:

#!/bin/dash

mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
echo 0 > /proc/sys/kernel/printk
cryptsetup luksOpen --allow-discards /dev/sda3 root
echo 1 > /proc/sys/kernel/printk
mount -o ro /dev/mapper/root /mnt/root
umount /dev /proc /sys
exec switch_root /mnt/root /sbin/init

my initramfs files:

.
├── bin
│   ├── dash
│   ├── mount
│   └── umount
├── dev
│   ├── console
│   ├── null
│   ├── sda3
│   └── tty
├── etc
├── init
├── lib
│   ├── ld-musl-x86_64.so.1
│   ├── libblkid.so.1
│   ├── libcap.so.2
│   ├── libdevmapper.so.1.02
│   ├── libmount.so.1
│   ├── libudev.so.1
│   └── libuuid.so.1
├── lib64
├── mnt
│   └── root
├── proc
├── root
├── run
├── sbin
│   ├── cryptsetup
│   └── switch_root
├── sys
├── trq.map
├── usr
│   ├── bin
│   └── lib
│   ├── libblkid.so.1
│   ├── libc.so
│   ├── libcap.so.2
│   ├── libcryptsetup.so.12
│   ├── libgcrypt.so.20
│   ├── libgpg-error.so.0
│   ├── libjson-c.so.5
│   ├── libmount.so.1
│   ├── libpopt.so.0
│   └── libuuid.so.1
└── var
    ├── log
    └── run

how I update my initramfs:

lddtree.py --copy-to-tree /usr/src/initramfs /bin/mount 
/sbin/cryptsetup /bin/dash /sbin/switch_root /bin/umount

cd /usr/src/initramfs
find . -print0 | cpio --null --create --verbose --format=newc > 
/boot/custom-initramfs.img







Re: [gentoo-user] Musl custom initramfs kernel panic

2024-03-09 Thread Alexandru N. Barloiu
clearly mount is using a symbol not provided by one of those shared 
libraries, but no clue which it is. However you dont need dash and mount 
and umount. Reason its working for genkernel is because its using 
busybox instead of normal system mount/umount/dash. Might want to try 
that. Smaller too.


On 3/9/2024 4:03 PM, efeizbudak wrote:

Hi all,

After updating my musl, my custom initramfs had stopped working. Can 
anyone give me a hand with this? I recompiled util-linux and updated 
the related files in my initramfs and also tried building it with 
static-libs but neither of these helped. On the other hand, the 
initramfs I built using genkernel works just fine.


The init error:

Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

/init: 6: cannot create /proc/sys/kernel/printk: Directory nonexistent
Fatal error during RNG initialisation
Cannot initialize crypto RNG backend.
Device /dev/sda3 is not a valid LUKS device.
/init: 8: cannot create /proc/sys/kernel/printk: Directory nonexistent
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

umount: /dev: not mounted.
umount: /proc: not mounted.
umount: /sys: not mounted.
switch_root: failed to mount moving /mnt/root to /: Invalid argument
switch_root: failed. Sorry.
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0100
Kernel Offset: 0x900 from 0x8100 (relocation range: 
0x8000-0xbfff)
---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode+0x0100 ]---


my init file in my initramfs:

#!/bin/dash

mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
echo 0 > /proc/sys/kernel/printk
cryptsetup luksOpen --allow-discards /dev/sda3 root
echo 1 > /proc/sys/kernel/printk
mount -o ro /dev/mapper/root /mnt/root
umount /dev /proc /sys
exec switch_root /mnt/root /sbin/init

my initramfs files:

.
├── bin
│   ├── dash
│   ├── mount
│   └── umount
├── dev
│   ├── console
│   ├── null
│   ├── sda3
│   └── tty
├── etc
├── init
├── lib
│   ├── ld-musl-x86_64.so.1
│   ├── libblkid.so.1
│   ├── libcap.so.2
│   ├── libdevmapper.so.1.02
│   ├── libmount.so.1
│   ├── libudev.so.1
│   └── libuuid.so.1
├── lib64
├── mnt
│   └── root
├── proc
├── root
├── run
├── sbin
│   ├── cryptsetup
│   └── switch_root
├── sys
├── trq.map
├── usr
│   ├── bin
│   └── lib
│   ├── libblkid.so.1
│   ├── libc.so
│   ├── libcap.so.2
│   ├── libcryptsetup.so.12
│   ├── libgcrypt.so.20
│   ├── libgpg-error.so.0
│   ├── libjson-c.so.5
│   ├── libmount.so.1
│   ├── libpopt.so.0
│   └── libuuid.so.1
└── var
    ├── log
    └── run

how I update my initramfs:

lddtree.py --copy-to-tree /usr/src/initramfs /bin/mount 
/sbin/cryptsetup /bin/dash /sbin/switch_root /bin/umount

cd /usr/src/initramfs
find . -print0 | cpio --null --create --verbose --format=newc > 
/boot/custom-initramfs.img







Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Peter Humphrey
On Saturday, 9 March 2024 12:49:33 GMT Walter Dnes wrote:

>   I have "-clang" in USE in make.conf and no problems resulting from it.
> clang seems to be another "solution in search of a problem" along the
> lines of rust and cups and systemd and hatbuzz, etc, which keep trying
> to worm their way into everybody's linux system.

When I tried USE=-clang emerge -uaDvN @world, I got this:

[...]
>>> Running pre-merge checks for sys-libs/compiler-rt-18.1.0
 * Building using a compiler other than clang may result in broken atomics
 * library. Enable USE=clang unless you have a very good reason not to.

Does the compiler-rt ebuild override USE in make.conf?

-- 
Regards,
Peter.






[gentoo-user] Musl custom initramfs kernel panic

2024-03-09 Thread efeizbudak

Hi all,

After updating my musl, my custom initramfs had stopped working. Can 
anyone give me a hand with this? I recompiled util-linux and updated the 
related files in my initramfs and also tried building it with 
static-libs but neither of these helped. On the other hand, the 
initramfs I built using genkernel works just fine.


The init error:

Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

/init: 6: cannot create /proc/sys/kernel/printk: Directory nonexistent
Fatal error during RNG initialisation
Cannot initialize crypto RNG backend.
Device /dev/sda3 is not a valid LUKS device.
/init: 8: cannot create /proc/sys/kernel/printk: Directory nonexistent
Error relocating /bin/mount: mnt_context_enable_noautofs: symbol not 
found
Error relocating /bin/mount: mnt_context_enable_onlyonce: symbol not 
found

umount: /dev: not mounted.
umount: /proc: not mounted.
umount: /sys: not mounted.
switch_root: failed to mount moving /mnt/root to /: Invalid argument
switch_root: failed. Sorry.
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0100
Kernel Offset: 0x900 from 0x8100 (relocation range: 
0x8000-0xbfff)
---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode+0x0100 ]---


my init file in my initramfs:

#!/bin/dash

mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
echo 0 > /proc/sys/kernel/printk
cryptsetup luksOpen --allow-discards /dev/sda3 root
echo 1 > /proc/sys/kernel/printk
mount -o ro /dev/mapper/root /mnt/root
umount /dev /proc /sys
exec switch_root /mnt/root /sbin/init

my initramfs files:

.
├── bin
│   ├── dash
│   ├── mount
│   └── umount
├── dev
│   ├── console
│   ├── null
│   ├── sda3
│   └── tty
├── etc
├── init
├── lib
│   ├── ld-musl-x86_64.so.1
│   ├── libblkid.so.1
│   ├── libcap.so.2
│   ├── libdevmapper.so.1.02
│   ├── libmount.so.1
│   ├── libudev.so.1
│   └── libuuid.so.1
├── lib64
├── mnt
│   └── root
├── proc
├── root
├── run
├── sbin
│   ├── cryptsetup
│   └── switch_root
├── sys
├── trq.map
├── usr
│   ├── bin
│   └── lib
│   ├── libblkid.so.1
│   ├── libc.so
│   ├── libcap.so.2
│   ├── libcryptsetup.so.12
│   ├── libgcrypt.so.20
│   ├── libgpg-error.so.0
│   ├── libjson-c.so.5
│   ├── libmount.so.1
│   ├── libpopt.so.0
│   └── libuuid.so.1
└── var
├── log
└── run

how I update my initramfs:

lddtree.py --copy-to-tree /usr/src/initramfs /bin/mount /sbin/cryptsetup 
/bin/dash /sbin/switch_root /bin/umount

cd /usr/src/initramfs
find . -print0 | cpio --null --create --verbose --format=newc > 
/boot/custom-initramfs.img





Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Walter Dnes
On Sat, Mar 09, 2024 at 08:04:06AM +, Wols Lists wrote

> For anyone else who hits this sort of problem, I did an
> 
> USE=-clang emerge --update @world
> 
> (firefox and thunderbird were the only programs I thought this would 
> touch), and it worked.

  I have "-clang" in USE in make.conf and no problems resulting from it.
clang seems to be another "solution in search of a problem" along the
lines of rust and cups and systemd and hatbuzz, etc, which keep trying
to worm their way into everybody's linux system.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you



Re: [gentoo-user] Emerge trouble with firefox and thunderbird ...

2024-03-09 Thread Wols Lists

On 03/03/2024 23:13, Carsten Hauck wrote:

So I don't know what's going on, but basically Mozilla won't emerge,
and I don't know why ...

Cheers,
Wol



Did the other 19 package emerge OK?  Are the mozilla progs crashing
when running, or when emerging?  If emerging, the log is just console
output, as indecipherable as we know it sometimes can be.  If they
crash when running, try running from command line.



Some time ago on one of my machines Thunderbird and Firefox stopped to
compile with USE="clang". As they can be build with gcc I never digged
too deep into that problem but maybe it's worth a shot.


For anyone else who hits this sort of problem, I did an

USE=-clang emerge --update @world

(firefox and thunderbird were the only programs I thought this would 
touch), and it worked.


There were a couple of other programs that I guess got pulled in by the 
changed use, but they've upgraded which is the main thing.


Thank you very much

Cheers,
Wol