Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Alternative Architectures
  • Search

meson causes system freeze, mips64el n32[Solved]

Post here for other supported architectures, or if you are interested in porting Gentoo to a currently unsupported architecture.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
XiaoaiX
n00b
n00b
Posts: 30
Joined: Sat May 30, 2015 11:53 am

meson causes system freeze, mips64el n32[Solved]

  • Quote

Post by XiaoaiX » Wed Jun 14, 2023 6:07 am

Dear friends,

I am using an Yeeloong netbook and it freezed when I was doing the
usual update of the world. I found that it was stoped at the step of
configuring the glib. The glib uses the meson to config it. Before
this freeze, it also froze at configuring the systemd-253.5 and I masked
the systemd. Systemd is also using the meson to do the configuration. I
suspect that the meson seems to conflict with something. I have tried
meson 1.1.1 and also downgrade the meson to 1.0.1, the same thing happens.

I have also an older gentoo installation on that netbook on another partition.
I remember that I tried "meson _build" for the same glib version in the older
gentoo, it passed the configuration. So I guess there could be some conflict
between meson and something else or meson uses some libs with conflicts.
The netbook is now busy in updating. I will provide the older gentoo system
configuration later.

Any help is appreciated. Thanks.

The "emerge --info" shows

Code: Select all

Portage 3.0.48.1 (python 3.11.4-final-0, default/linux/mips/17.0/mipsel/n32/systemd/merged-usr, gcc-13, glibc-2.37-r3, 6.3.4-gentoo-Yeeloong mips64)
=================================================================
System uname: Linux-6.3.4-gentoo-Yeeloong-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-glibc2.37
KiB Mem:     1025664 total,     65408 free
KiB Swap:    8388592 total,   8387568 free
Timestamp of repository gentoo: Mon, 12 Jun 2023 10:15:01 +0000
Head commit of repository gentoo: 6de146db15fb2000c53d0af5fb284a1d34f9ea3d
sh bash 5.2_p15-r3
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r3::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo, 3.12.0_beta2::gentoo
dev-util/ccache:           4.8-r2::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.4::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.3.1_p20230518::gentoo, 13.1.1_p20230520::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://mirrors.ustc.edu.cn/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="@FREE"
CBUILD="mips64el-unknown-linux-gnu"
CFLAGS="-O2 -march=loongson2f -mhard-float -mplt -Wa,-mfix-loongson2f-nop -pipe"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=loongson2f -mhard-float -mplt -Wa,-mfix-loongson2f-nop -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --with-bdeps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo  https://mirrors.163.com/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en zh"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl bzip2 cjk cli crypt gdbm iconv ipv6 mips ncurses nls nptl pam pcre readline seccomp ssl systemd test-rust udev unicode xattr zlib" ABI_MIPS="n32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30 ruby31" VIDEO_CARDS="video_cards_siliconmotion fbdev video_cards_dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
The build.log file for glib shows

Code: Select all

 * Package:    dev-libs/glib-2.76.3:2
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        abi_mips_n32 elf elibc_glibc kernel_linux mime mips xattr
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.3.4-gentoo-Yeeloong
 * Checking for suitable kernel configuration  [ ok ] ...
 * Checking whether python3_12 is suitable ...
 *   >=dev-lang/python-3.12.0_beta1:3.12[xml(+ [ ok ]
 * Using python3.12 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking glib-2.76.3.tar.xz to /var/tmp/portage/dev-libs/glib-2.76.3/work
>>> Source unpacked in /var/tmp/portage/dev-libs/glib-2.76.3/work
>>> Preparing source in /var/tmp/portage/dev-libs/glib-2.76.3/work/glib-2.76.3 ...
 * Applying glib-2.64.1-mark-gdbus-server-auth [ ok ]laky.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/glib-2.76.3/work/glib-2.76.3 ...
 * abi_mips_n32.n32: running multilib-minimal_abi_src_configure
meson setup --libdir lib32 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/dev-libs/glib-2.76.3/temp/python3.12/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/dev-libs/glib-2.76.3/temp/python3.12/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/dev-libs/glib-2.76.3/temp/meson.mips64el-unknown-linux-gnu.n32.ini -Db_pch=false -Dwerror=false --buildtype plain --buildtype plain -Ddefault_library=shared -Druntime_dir=/run -Dselinux=disabled -Dxattr=true -Dlibmount=enabled -Dman=true -Ddtrace=false -Dsystemtap=false -Dsysprof=disabled -Dgtk_doc=false -Dtests=false -Dinstalled_tests=false -Dnls=enabled -Doss_fuzz=disabled -Dlibelf=enabled -Dmultiarch=false /var/tmp/portage/dev-libs/glib-2.76.3/work/glib-2.76.3 /var/tmp/portage/dev-libs/glib-2.76.3/work/glib-2.76.3-abi_mips_n32.n32
I've also tried "meson _build" in the "/var/tmp/.../glib-2.76.3/work/glib-2.76.3/".
The meson caused the system freezing at:

Code: Select all

...
Dependency mount found: YES 2.38.1 (cached)
Found pkg-config: /usr/bin/pkg-config (1.8.1)
A previous run with a higher version meson (I forgot which version) just froze at the

Code: Select all

...
Run-time dependency mount found: YES 2.38.1
Last edited by XiaoaiX on Sun Mar 31, 2024 2:58 pm, edited 1 time in total.
Top
Thistled
Guru
Guru
User avatar
Posts: 572
Joined: Thu Jan 06, 2011 6:57 pm
Location: Scotland
Contact:
Contact Thistled
Website

  • Quote

Post by Thistled » Sat Jul 01, 2023 10:58 pm

Hello

First thing I would say is you are building using unstable packages.
Revert back to stable and see if that solves your problem, then take it from there.

Hope this helps.
Whatever you do, do it properly!
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sun Jul 02, 2023 3:16 pm

Thistled wrote:Hello

First thing I would say is you are building using unstable packages.
Revert back to stable and see if that solves your problem, then take it from there.

Hope this helps.
mips doesn't have stable keywords. As for meson: ... is your pkg-config calling itself recursively or something?
Top
XiaoaiX
n00b
n00b
Posts: 30
Joined: Sat May 30, 2015 11:53 am

  • Quote

Post by XiaoaiX » Mon Jul 10, 2023 1:33 am

sam_ wrote:
Thistled wrote:Hello

First thing I would say is you are building using unstable packages.
Revert back to stable and see if that solves your problem, then take it from there.

Hope this helps.
mips doesn't have stable keywords. As for meson: ... is your pkg-config calling itself recursively or something?

I found that when building the glib in the console, it will provide more information about the bug. I've uploaded the video here https://www.bilibili.com/video/BV1rW4y1 ... 18845c1ca1 .

The emerge also cause freeze when it is configuring the ccache which is using the cmake. Similarly, it provided more information in the console, and I've uploaded here https://www.bilibili.com/video/BV1XV4y1 ... 18845c1ca1 .

Any helpful comments are appreciated.
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Mon Jul 10, 2023 3:19 am

Your first video seems to show the kernel erroring out, saying "do_cpu invoked from kernel context!"

What kernel version is this (EDIT: oh I see it's 6.3.4)? Could you report it upstream?
Top
XiaoaiX
n00b
n00b
Posts: 30
Joined: Sat May 30, 2015 11:53 am

  • Quote

Post by XiaoaiX » Sat Jan 20, 2024 12:49 pm

sam_ wrote:Your first video seems to show the kernel erroring out, saying "do_cpu invoked from kernel context!"

What kernel version is this (EDIT: oh I see it's 6.3.4)? Could you report it upstream?
Report it to the kernel or the meson upstream? I haven't done this before.
Top
XiaoaiX
n00b
n00b
Posts: 30
Joined: Sat May 30, 2015 11:53 am

The problem is in cmake

  • Quote

Post by XiaoaiX » Sun Feb 25, 2024 3:51 am

I find that it is the cmake which is the origin of the problem. When I emerge the newest version cmake-3.28.3, it freezes somewhere at the installation stage. I reboot and go to /var/tmp/portage/dev-build/cmake-3.28.3/work/cmake-3.28.3_build/bin, and run ./cmake --version, it shows the version but followed with the backtraces ... and freezes. But when I run the ./bootstrap &&make &&make install in the /var/tmp/portage/dev-build/cmake-3.28.3/work/cmake-3.28.3/ directory, it finished successfully and installed the files in the /usr/local/. Now it seems that the cmake in the /usr/local can be used to install the other apps without any problems now. But the buggy one is still in the /usr/bin/.

So, it seems that the bug is introduced somewhere in the emerge process or some compilation switches causes the bug?
Top
XiaoaiX
n00b
n00b
Posts: 30
Joined: Sat May 30, 2015 11:53 am

  • Quote

Post by XiaoaiX » Sat Mar 02, 2024 6:30 am

It seems that after updating to the kernel-6.7.6, and cmake-3.28.3 and the latest world, the problem disappears.
Top
Hu
Administrator
Administrator
Posts: 24389
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Mar 02, 2024 3:28 pm

That kernel error appears to be a sanity check, so it is always a kernel bug if it triggers. The kernel should never allow userspace to provoke that error, no matter how badly userspace misbehaves.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Gentoo on Alternative Architectures”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic