View previous topic :: View next topic |
Author |
Message |
sdauth l33t
Joined: 19 Sep 2018 Posts: 645 Location: Ásgarðr
|
Posted: Fri Jul 19, 2024 12:07 pm Post subject: [SOLVED] postinst-qa-check.d/50xdg-utils trap invalid opcode |
|
|
Hello,
So I have a gentoo musl installation using -march=bdver2 (amd) and I wanted to use it on an old atom (-march=bonnell) motherboard.
I first started by changing :
Code: | COMMON_FLAGS="-march=bdver2 -O2 -pipe"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" |
to
Code: | COMMON_FLAGS="-march=x86-64 -O2 -pipe"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" # (instructions supported by the atom motherboard) |
then rebuilt @system and moved the rootfs to a new subvolume on the atom motherboard (it has a working gentoo glibc installation)
Then from the atom box, I chrooted in the musl rootfs subvolume then changed :
Code: | COMMON_FLAGS="-march=x86-64 -O2 -pipe" |
to
Code: | COMMON_FLAGS="-march=bonnell -O2 -pipe" |
then started a full system rebuild (to be followed by @world after that) :
Code: | emerge -aq --emptytree --usepkg=n @system |
Rebuild is going smoothly at the moment but I'm seeing a ton of trap invalid opcode in my dmesg related to update-desktop-database.
Code: | traps: update-desktop-[19882] trap invalid opcode ip:62e511caf50d sp:7fffee01fc90 error:0 in update-desktop-database[62e511caf000+2000] |
After looking around briefly, it seems related to : /usr/lib/portage/python3.12/postinst-qa-check.d/50xdg-utils and the fact I use qa in PORTAGE_ELOG_CLASSES because each time a package is installed and update-desktop-database called then a new trap code is issued. Strangely, I don't have xdg-utils installed so it seems independent from xdg-utils.
Will it go away when @system (and @world) is fully rebuilt ?
Thanks
Last edited by sdauth on Fri Jul 19, 2024 12:32 pm; edited 2 times in total |
|
Back to top |
|
|
sdauth l33t
Joined: 19 Sep 2018 Posts: 645 Location: Ásgarðr
|
Posted: Fri Jul 19, 2024 12:26 pm Post subject: |
|
|
I found the issue..
In fact, it is not related to xdg-utils (I was confused by the name : /usr/lib/portage/python3.12/postinst-qa-check.d/50xdg-utils ) but to dev-util/desktop-file-utils
In /usr/lib/portage/python3.12/postinst-qa-check.d/50xdg-utils
Code: | # Check for missing calls to xdg-utils regen functions
xdg_desktop_database_check() {
type -P update-desktop-database &>/dev/null || return
[...] |
So after rebuilding dev-util/desktop-file-utils :
Code: | /usr/bin/desktop-file-validate
/usr/bin/desktop-file-install
/usr/bin/update-desktop-database |
then no more trap invalid opcode. Rebuild with -march=bonnell still in progress. Will likely end in days..
I guess that's because I only rebuilt @system (I was lazy and wanted to save time) when I switched from bdver2 to x86-64 (before moving the installation) and since this package is not part of @system, that's why I was receiving those trap invalid opcode. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|