Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] postinst-qa-check.d/50xdg-utils trap invalid opcode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 632
Location: Ásgarðr

PostPosted: Fri Jul 19, 2024 12:07 pm    Post subject: [SOLVED] postinst-qa-check.d/50xdg-utils trap invalid opcode Reply with quote

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
View user's profile Send private message
sdauth
l33t
l33t


Joined: 19 Sep 2018
Posts: 632
Location: Ásgarðr

PostPosted: Fri Jul 19, 2024 12:26 pm    Post subject: Reply with quote

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.. :lol:

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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