View previous topic :: View next topic |
Author |
Message |
XiaoaiX n00b
Joined: 30 May 2015 Posts: 30
|
Posted: Wed Jun 14, 2023 6:07 am Post subject: meson causes system freeze, mips64el n32[Solved] |
|
|
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: |
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: |
* 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: |
...
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: |
...
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 |
|
Back to top |
|
|
Thistled Guru
Joined: 06 Jan 2011 Posts: 572 Location: Scotland
|
Posted: Sat Jul 01, 2023 10:58 pm Post subject: |
|
|
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! |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1938
|
Posted: Sun Jul 02, 2023 3:16 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
XiaoaiX n00b
Joined: 30 May 2015 Posts: 30
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1938
|
Posted: Mon Jul 10, 2023 3:19 am Post subject: |
|
|
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? |
|
Back to top |
|
|
XiaoaiX n00b
Joined: 30 May 2015 Posts: 30
|
Posted: Sat Jan 20, 2024 12:49 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
XiaoaiX n00b
Joined: 30 May 2015 Posts: 30
|
Posted: Sun Feb 25, 2024 3:51 am Post subject: The problem is in cmake |
|
|
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? |
|
Back to top |
|
|
XiaoaiX n00b
Joined: 30 May 2015 Posts: 30
|
Posted: Sat Mar 02, 2024 6:30 am Post subject: |
|
|
It seems that after updating to the kernel-6.7.6, and cmake-3.28.3 and the latest world, the problem disappears. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22578
|
Posted: Sat Mar 02, 2024 3:28 pm Post subject: |
|
|
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. |
|
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
|
|