More NetBSD-current fun at Linveo!

Not_OlesNot_Oles Hosting ProviderContent Writer

Hello!

  • VPS Share

Would anybody be interested in sharing my free Linveo AMD Ryzen 9 9950X NetBSD VPS in Arizona? It's open to friends who want to help me learn.

  • Goals

Tonight I decided to (1) try some method of rolling release updates of NetBSD pkgsrc. For example, please see pkg_rolling-replace (mailing list, 2008 introduction), please see also the man page. I could use help figuring out the best method of rolling updates with pkgsrc.

Also, I think it might be fun to (2) see whether I can get 9vx working. I could use help with the code and the compiling on 64 bit NetBSD of the vx32 sandboxing library used by 9vx.

Maybe I could (3) try the X Windows installation from pkgsrc instead of the xsrc version, but I haven't looked into pkgsrc X, very much as yet.

  • Procedure

I'm beginning by wiping and reinstalling my NetBSD-current VPS at Linveo. <3 The reinstall is from Linveo vmcontrol, which offers @cmeerw's <3 NetBSD 10.1 image.

The process is installing NetBSD 10.1, then, with changes appropriate for 10.1, following the simple NetBSD 10 to NetBSD-current steps in Quick Recipe For Self-Compiled NetBSD-current On A Linveo VPS.

linveo# ftp -o - https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.1/amd64/binary/sets/comp.tar.xz | progress -z tar xpf - -C /
linveo# which gcc
/usr/bin/gcc
linveo# cd /usr
linveo# mkdir obj src tools
linveo# mkdir /home
linveo# useradd -m -G wheel tom
linveo# passwd tom
Changing password for tom.
New Password:
Retype New Password:
linveo# chown tom obj src tools
linveo# su tom
linveo# 
linveo$ pwd
/usr
linveo$ export CVSROOT="[email protected]:/cvsroot"
linveo$ export CVS_RSH="ssh"
linveo$ cvs checkout -A -P src
linveo$ cd src
linveo$ nohup ./build.sh -j 2 -O ../obj -T ../tools -U distribution && \
> nohup ./build.sh -j 2 -O ../obj -T ../tools -U kernel=GENERIC

I like nohup because it gives me a full transcript of all the terminal output and because I don't have to stay connected. Back in the old days I used to start a NetBSD-current build and then sleep. I don't remember a build which failed to complete, but there might have been one.

I will post again, later, or maybe tomorrow, about whether this build completes.

I hope everyone gets the servers they want!

Tagged:

Comments

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Wow! This VPS is fast! Both builds seem to have completed successfully!

    So, sleep now, and install tomorrow.

    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U distribution
             build.sh started:    Fri Feb 21 04:34:35 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.1 amd64
             HOST_SH:             /bin/sh
             No $TOOLDIR/bin/nbmake, needs building.
             Bootstrapping nbmake
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Created /usr/src/../tools/bin/nbmake
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful make distribution
             build.sh ended:      Fri Feb 21 05:41:37 UTC 2025
    ===> .
    
    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U kernel=GENERIC
             build.sh started:    Fri Feb 21 05:41:37 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.1 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Building kernel without building new tools
             Building kernel:     GENERIC
             Build directory:     /usr/src/../obj/sys/arch/amd64/compile/GENERIC
             Kernels built from GENERIC:
              /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
             build.sh ended:      Fri Feb 21 05:46:55 UTC 2025
    ===> .
    
    Thanked by (3)linveo Amadex cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Here is the new kernel install, followed by a reboot to run the new kernel.

    Then, with the new kernel running, we install the new userland and reboot again so that we are running both the new kernel and the new userland.

    The new kernel needs to be running before we try to run the new userland because some on the new userland binaries may require features from the new kernel, whereas the new kernel should be capable of running both the old and the new userland binaries.

    • New Kernel Install
    linveo# mv /netbsd /netbsd.old
    linveo# ls -l netbsd*
    ls: netbsd*: No such file or directory
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 root  wheel  29528360 Dec 16 13:08 /netbsd.old
    linveo# mv /usr/obj/sys/arch/amd64/compile/GENERIC/netbsd /
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 tom   wheel  29585768 Feb 21 05:46 /netbsd
    -rwxr-xr-x  1 root  wheel  29528360 Dec 16 13:08 /netbsd.old
    linveo# date
    Fri Feb 21 19:26:10 UTC 2025
    linveo# 
    
    • Reboot To Run The New Kernel
    linveo# reboot
      [ . . . ]
    linveo# date
    Fri Feb 21 19:27:39 UTC 2025
    linveo# uptime
     7:27PM  up 1 min, 1 user, load averages: 0.00, 0.00, 0.00
    linveo# 
    
    • New Userland Install
    linveo# cd /usr/src
    linveo# ls
    BUILDING     README.md    common       distrib      games        nohup.out    share        usr.bin
    CVS          UPDATING     compat       doc          include      regress      sys          usr.sbin
    Makefile     bin          crypto       etc          lib          rescue       tests
    Makefile.inc build.sh     dist         external     libexec      sbin         tools
    linveo# mv nohup.out nohup-20250221-build.out
    linveo# nohup ./build.sh -j 2 -O ../obj -T ../tools -U install=/
    sending output to nohup.out
    
    # From nohup.out:
    
    make installworld started at:  Fri Feb 21 19:31:25 UTC 2025
    make installworld finished at: Fri Feb 21 19:31:37 UTC 2025
    ===> Successful installworld to /
    ===> build.sh ended:      Fri Feb 21 19:31:37 UTC 2025
    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U install=/
             build.sh started:    Fri Feb 21 19:31:25 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful installworld to /
             build.sh ended:      Fri Feb 21 19:31:37 UTC 2025
    ===> .
    
    linveo# 
    
    • Reboot To Run The New Userland Under The New Kernel
    linveo# date
    Fri Feb 21 19:34:19 UTC 2025
    linveo# reboot
      [ . . . ]
    linveo# date
    Fri Feb 21 19:35:42 UTC 2025
    linveo# uptime
     7:35PM  up 1 min, 1 user, load averages: 0.00, 0.00, 0.00
    linveo# 
    
    • Results

    It seems that this VPS is running self-compiled NetBSD-current!

    linveo# uname -r
    10.99.12
    linveo# ls -l /bin | head
    total 1934
    -r-xr-xr-x  2 root  wheel   22056 Feb 21 05:40 [
    -r-xr-xr-x  1 root  wheel   22024 Feb 21 05:40 cat
    lrwxr-xr-x  1 root  wheel      11 Feb 21 05:40 chgrp -> /sbin/chown
    -r-xr-xr-x  1 root  wheel   22232 Feb 21 05:40 chio
    -r-xr-xr-x  1 root  wheel   17584 Feb 21 05:40 chmod
    -r-xr-xr-x  1 root  wheel   33528 Feb 21 05:40 cp
    -r-xr-xr-x  1 root  wheel   57720 Feb 21 05:40 cpio
    -r-xr-xr-x  1 root  wheel  190888 Feb 21 05:40 csh
    -r-xr-xr-x  1 root  wheel   27264 Feb 21 05:40 date
    linveo# 
    
    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    NetBSD uses pkgsrc to compile and install self-compiled binaries for approximately 28,000 third-party programs which are not part of the NetBSD core. For quick reference, besides the pkgsrc.org site, there also is the pkgsrc section of the NetBSD wiki, a mailing list, and an IRC channel.

    Besides the current version of pkgsrc, called HEAD, there are quarterly branch releases.

    Remarkably, pkgsrc runs on many other operating systems besides NetBSD!

    Besides self-compiling, there are pre-compiled binaries available for SmartOS/Illumos, MacOS, NetBSD-current, and Enterprise Linux.

    Here, on our Linveo VPS, is the install via CVS of pkgsrc HEAD, plus downloading of the current package vulnerability list.

    linveo# cd /usr
    linveo# export CVS_RSH=ssh
    linveo# echo $CVS_RSH
    ssh
    linveo# nohup cvs [email protected]:/cvsroot checkout -P pkgsrc
    sending output to nohup.out
    linveo# ls bin       include   libdata   local     nohup.out pkg       sbin      src       tools
    games     lib       libexec   mdec      obj       pkgsrc    share     tests
    linveo# cd pkgsrc
    linveo# ls
    CVS           bootstrap     distfiles     geography     mbone         parallel      sysutils
    Makefile      cad           doc           graphics      meta-pkgs     pkglocate     templates
    README.md     chat          editors       ham           misc          pkgtools      textproc
    _NetBSD-pkgdb comms         emulators     inputmethod   mk            print         time
    archivers     converters    filesystems   lang          multimedia    regress       wm
    audio         cross         finance       licenses      net           science       www
    benchmarks    databases     fonts         mail          news          security      x11
    biology       devel         games         math          packages      shells
    linveo# pkg_admin fetch-pkg-vulnerabilities
    pkg_admin: Cannot create pkg-vulnerability file /usr/pkg/pkgdb/pkg-vulnerabilities: No such file or directory
    linveo# ls /usr
    bin       include   libdata   local     nohup.out pkgsrc    share     tests
    games     lib       libexec   mdec      obj       sbin      src       tools
    linveo# mkdir /usr/pkg /usr/pkg/pkgdb
    linveo# pkg_admin fetch-pkg-vulnerabilities
    linveo# 
    
    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited February 23

    Just found two articles from the pkgsrc section of the NetBSD wiki:

    and

    I have been wanting to see good tutorials on these subjects for a while! Yaaay! :)

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Not_Oles said:

    • VPS Share

    Would anybody be interested in sharing my free Linveo AMD Ryzen 9 9950X NetBSD VPS in Arizona? It's open to friends who want to help me learn.


    Just finished updating, re-compiling, re-installing, and rebooting NetBSD-current.

    Plus I made a new backup.

    Next up is pkgsrc.

    @Not_Oles said: Just found two articles from the pkgsrc section of the NetBSD wiki:

    and

    Still hope to try the pkgsrc rolling release updating and modular xorg. . . . And 9vx.

    Thanks again to @linveo for the amazingly fast VPS! <3 Thanks to @cmeerw for the NetBSD 10.1 boot image from which I started.

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    While NetBSD was compiling I was messing with the NetBSD evbaarm-aarch64 install ISO on another VPS at netcup.

    I didn't succeed in getting the Netcup VPS to fully boot the NetBSD aarch64 ISO. I could see the initial boot messages and 1,2 install from,boot from option. And I could choose option 1. But, as soon as the boot went into graphic mode, netcup's HTML viewer disconnected and did not reconnect when the viewer was restarted.

    Just for fun, I decided to try cross compiling an aarch64 Qemu image on the Linveo VPS. I am following the NetBSD Guide Chapter 33 on Cross-compiling.

    The first step is building the tool chain, which seems to have succeeded.

    ===> build.sh ended:      Tue Mar 11 21:47:50 UTC 2025
    ===> Summary of results:
             build.sh command:    ./build.sh -U -O /home/tom/obj -j2 -m evbarm -a aarch64 tools
             build.sh started:    Tue Mar 11 21:40:36 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             evbarm
             MACHINE_ARCH:        aarch64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             No $TOOLDIR/bin/nbmake, needs building.
             Bootstrapping nbmake
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /home/tom/obj/tooldir.NetBSD-10.99.12-amd64
             DESTDIR path:        /home/tom/obj/destdir.evbarm
             RELEASEDIR path:     /home/tom/obj/releasedir
             Created /home/tom/obj/tooldir.NetBSD-10.99.12-amd64/bin/nbmake
             Updated makewrapper: /home/tom/obj/tooldir.NetBSD-10.99.12-amd64/bin/nbmake-evbarm
             Tools built to /home/tom/obj/tooldir.NetBSD-10.99.12-amd64
             build.sh ended:      Tue Mar 11 21:47:50 UTC 2025
    ===> .
    

    The next step is to build the kernel, which also seems to have succeeded.

    ===> Summary of results:
             build.sh command:    ./build.sh -U -u -j2 -O /home/tom/obj -m evbarm -a aarch64 kernel=GENERIC64
             build.sh started:    Tue Mar 11 22:02:53 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             evbarm
             MACHINE_ARCH:        aarch64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /home/tom/obj/tooldir.NetBSD-10.99.12-amd64
             DESTDIR path:        /home/tom/obj/destdir.evbarm
             RELEASEDIR path:     /home/tom/obj/releasedir
             Updated makewrapper: /home/tom/obj/tooldir.NetBSD-10.99.12-amd64/bin/nbmake-evbarm
             Building kernel without building new tools
             Building kernel:     GENERIC64
             Build directory:     /home/tom/obj/sys/arch/evbarm/compile/GENERIC64
             Kernels built from GENERIC64:
              /home/tom/obj/sys/arch/evbarm/compile/GENERIC64/netbsd
             build.sh ended:      Tue Mar 11 22:06:32 UTC 2025
    ===> .
    

    Next is building the userland, which again seems to have succeeded.

    ===> Summary of results:
             build.sh command:    ./build.sh -U -u -j2 -O /home/tom/obj -m evbarm -a aarch64 release
             build.sh started:    Tue Mar 11 22:14:01 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             evbarm
             MACHINE_ARCH:        aarch64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf (File not found)
             TOOLDIR path:        /home/tom/obj/tooldir.NetBSD-10.99.12-amd64
             DESTDIR path:        /home/tom/obj/destdir.evbarm
             RELEASEDIR path:     /home/tom/obj/releasedir
             Updated makewrapper: /home/tom/obj/tooldir.NetBSD-10.99.12-amd64/bin/nbmake-evbarm
             Successful make release
             build.sh ended:      Tue Mar 11 23:12:25 UTC 2025
    ===> .
    

    Now it seems like I have the needed image.

    linveo$ pwd
    /home/tom/obj
    linveo$ ls -l releasedir/evbarm-aarch64/binary/gzimg/
    total 645088
    -rw-r--r--  1 tom  users  330088205 Mar 11 23:09 arm64.img.gz
    -rw-r--r--  1 tom  users  330116470 Mar 11 23:09 arm64mbr.img.gz
    linveo$ 
    

    Next step is to convert arm64.img.gz to qcow2, upload it, and see if it boots over at netcup. A hint on how to do the conversion is in NetBSD Arm on Oracle Cloud. It's unclear to me exactly how netcup's situation differs from the situation at Oracle. So, I'n not sure if the image will run at netcup. We will see!

    Thanks @linveo! <3

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Not_Oles said:

    Next up is pkgsrc.

    @Not_Oles said: Just found two articles from the pkgsrc section of the NetBSD wiki:

    I started by updating and auditing the package vulnerabilities database as explained on the pkgsrc.org home page.

    linveo# pkg_admin fetch-pkg-vulnerabilities
    linveo# pkg_admin audit
    Package perl-5.40.1 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
    Package wget-1.25.0 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
    linveo#
    

    Not very many packages are installed. As mentioned in the above linked NetBSD wiki page (linked again here for convenience), it's possible to get a list of installed packages:

    linveo# pkg_info -Q PKGPATH -a
    pkgtools/libnbcompat
    pkgtools/cwrappers
    pkgtools/mktools
    pkgtools/pkg_chk
    pkgtools/pkg_tarup
    pkgtools/digest
    devel/m4
    devel/libtool-base
    lang/perl5
    devel/pkgconf
    textproc/libunistring
    devel/libidn2
    devel/gmake
    textproc/xmlcatmgr
    textproc/libxml2
    www/nghttp2
    www/curl
    pkgtools/pkg_rolling-replace
    devel/gettext-lib
    devel/gettext-tools
    www/lynx
    archivers/lzip
    devel/libffi
    devel/libuuid
    devel/readline
    databases/sqlite3
    lang/python312
    www/libpsl
    net/wget
    editors/elvis
    linveo# 
    

    I read, again, the entire pkg_rolling-replace wiki section and also the pkg_rolling-replace man page.

    I picked the -rsuv options.

    The command I ran and it's result seemed to show that no updates were needed. It's only been a few weeks, and there are only a few packages, so maybe it's unsurprising that the resulting action is "nothing." :)

    The top six lines were added to the nohup.out file with vi and the name of the file was changed to add the description and the date.

    linveo# cat nohup-pkg_rolling-replace-rsuv-20250312.out 
    linveo# date
    Wed Mar 12 21:07:26 UTC 2025
    linveo# pwd
    /usr/pkgsrc
    linveo# nohup pkg_rolling-replace -rsuv
    
    RR> Checking for mismatched installed packages using pkg_chk
    RR> Excluding the following mismatched packages:
    rr> EXCLUDE=[]
    RR> Checking for rebuild-requested installed packages (rebuild=YES)
    RR> Checking for unsafe installed packages (unsafe_depends_strict=YES)
    RR> Packages to rebuild:
    rr> MISMATCH_TODO=[]
    rr> REBUILD_TODO=[]
    rr> UNSAFE_TODO=[]
    RR> No more packages to replace; done.
    linveo# 
    

    What are my mistakes? :) Thanks @linveo! <3

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Not_Oles said: Next up is pkgsrc.

    @Not_Oles said: Just found two articles from the pkgsrc section of the NetBSD wiki:

    how to upgrade packages

    and

    how to install modular xorg

    Here we go with modular xorg.

    Initially, I made a backup of the server with the newly recompiled NetBSD-current plus the newly refreshed pkgsrc.

    Following the above linked NetBSD wiki instructions, I added /etc/mk.conf:

    linveo# cd /etc/
    linveo# ed mk.conf
    mk.conf: No such file or directory
    a
    X11_TYPE=modular
    .
    w
    17
    q
    linveo# ls -l mk.conf
    -rw-r--r--  1 root  wheel  17 Mar 14 20:09 mk.conf
    linveo# cat mk.conf
    X11_TYPE=modular
    linveo# 
    

    Let's try compiling and installing modular xorg.

    linveo# cd /usr/pkgsrc/meta-pkgs/modular-xorg
    linveo# ls
    CVS                DESCR              Makefile           avoid-duplicate.mk hacks.mk
    linveo# cat DESCR 
    This is the modular Xorg meta-package for installing the various
    libs, drivers, fonts, and apps from the modular Xorg project.
    linveo# linveo# nohup make
    sending output to nohup.out
    

    I'm watching what happens in another terminal with tail -f nohup.out. I'm also googling around about modular xorg. I will post again about whether the compile completes, whether the install completes, and about configuration. I'd be grateful for any hints about mistakes I am making. Thanks everyone! Thanks @linveo for the fast, free VPS! <3

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Okay, the build broke.

    FAILED: src/util/libmesa_util.a.p/u_qsort.cpp.o 
    c++ -Isrc/util/libmesa_util.a.p -Isrc/util -I../src/util -Iinclude -I../include -Isrc -I../src -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -I/usr/pkg/include/libelf -I/usr/pkg/include/libLLVM -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/python3.12 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++14 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.3.9"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS -DHAVE_X11_PLATFORM -DHAVE_XCB_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DHAS_SCHED_H -DHAVE_SYS_SYSCTL_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_R -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="13.0.1"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DMESA_EXECMEM -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_OPENMP -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DVK_USE_PLATFORM_DISPLAY_KHR -Werror=return-type -Werror=empty-body -Wno-non-virtual-dtor -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -flifetime-dse=1 -Werror=format -Wformat-security -O2 -Dalloca=__builtin_alloca -DHAVE_NOATEXIT -DSYSCONFDIR=/usr/pkg/etc -fPIC -pthread -MD -MQ src/util/libmesa_util.a.p/u_qsort.cpp.o -MF src/util/libmesa_util.a.p/u_qsort.cpp.o.d -o src/util/libmesa_util.a.p/u_qsort.cpp.o -c ../src/util/u_qsort.cpp
    In file included from ../src/util/u_qsort.cpp:24:
    ../src/util/u_qsort.h: In function 'void util_qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)':
    ../src/util/u_qsort.h:68:31: error: cannot convert 'util_qsort_adapter_data*' to 'int (*)(const void*, const void*, void*)'
       68 |    qsort_r(base, nmemb, size, &data, util_qsort_adapter);
          |                               ^~~~~
          |                               |
          |                               util_qsort_adapter_data*
    In file included from ../src/util/u_qsort.h:27:
    /usr/include/stdlib.h:408:13: note:   initializing argument 4 of 'void qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)'
      408 |             int (*)(const void *, const void *, void *), void *);
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    *** Error code 1
    
    Stop.
    make[3]: stopped making "reinstall" in /usr/pkgsrc/graphics/MesaLib
    *** Error code 1
    
    Stop.
    make[2]: stopped making "reinstall" in /usr/pkgsrc/graphics/MesaLib
    *** Error code 1
    
    Stop.
    make[1]: stopped making "reinstall" in /usr/pkgsrc/x11/modular-xorg-server
    *** Error code 1
    
    Stop.
    make: stopped making "all" in /usr/pkgsrc/meta-pkgs/modular-xorg
    

    Googling the error

    error: cannot convert 'util_qsort_adapter_data*' to 'int (*)(const void*, const void*, void*)'

    does produce results. . . .

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    While the compile was running, I was looking around and trying to understand basic questions about X and NetBSD, such as why are there two versions of X (the main /usr/xsrc version and the pkgsrc modular xorg version), the advantages and disadvantages of each version, and why someone might use each of the two versions.

    I skimmed three helpful blog posts by Nia Alarie:

    I need to look at all this some more. . . . :) Thanks @Linveo! <3

    Thanked by (2)cainyxues linveo

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited March 14

    @Not_Oles said:

    In function 'void util_qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)'


    Found https://pkgsrc.se/[email protected]

    Subject: CVS commit: pkgsrc/graphics/MesaLib
    From: Thomas Klausner
    Date: 2025-03-07 07:56:21
    Message id: [email protected]
    Log Message:
    MesaLib: fix build on NetBSD-current (qsort_r)
    Files:
    Revision Action file
    1.167 modify pkgsrc/graphics/MesaLib/distinfo
    1.1 add pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h


    I am wondering if the issue might have been touched on March 07, a few days before I last updated pkgsrc on March 12.

    Thanked by (2)cainyxues linveo

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited March 15

    Hmm. Why don't I have that patch? :)

    linveo# cd /usr/pkgsrc/graphics/MesaLib/patches
    linveo# cat patch-src_util_u__qsort.h
    cat: patch-src_util_u__qsort.h: No such file or directory
    linveo# 
    

    Why is this stuff dated February 23? :)

    linveo# cd CVS
    linveo# ls -l
    total 8
    -rw-r--r--  1 root  wheel  2758 Feb 23 03:23 Entries
    -rw-r--r--  1 root  wheel    32 Feb 23 03:23 Repository
    -rw-r--r--  1 root  wheel    36 Feb 23 03:23 Root
    linveo# 
    

    Did I make a mistake picking the -rsuv options with pkg_rolling-replace? No, because this package wasn't installed then, so it didn't receive attention from pkg_rolling replace?

    And pkg_rolling-replace doesn't update all the rest of pkgsrc (the uninstalled packages)?

    So, after pkg_rolling-replace, one has to update all the rest of pkgsrc? Or, did I misunderstand when I thought that a full pkgsrc update was not required prior to calling pkg_rolling-replace? :) Yaaay!? :)

    Thanked by (2)cainyxues linveo

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited March 15

    Updating all of pkgsrc. Unsure if that's wise, given being in the middle of a make and install. But, I can easily revert to the backup from just prior to today's shenanigans. :)

    linveo# export CVS_RSH="ssh"
    linveo# date
    Sat Mar 15 00:51:16 UTC 2025
    linveo# pwd
    /usr/pkgsrc
    linveo# nohup cvs up -dP
    sending output to nohup.out
    linveo# mv nohup.out nohup-cvs-up-dP-20250315.out
    linveo# grep qsort.h nohup-cvs-up-dP-20250315.out 
    U graphics/MesaLib/patches/patch-src_util_u__qsort.h # Got the patch!
    linveo# cd graphics/MesaLib/
    linveo# make clean 
    ===> Cleaning for MesaLib-21.3.9nb4
    linveo# 
    

    Now, return to the build of modular-xorg.

    linveo# pwd
    /usr/pkgsrc/meta-pkgs/modular-xorg
    linveo# ls no*
    nohup-build-20250314.out
    linveo# date
    Sat Mar 15 01:03:51 UTC 2025
    linveo# nohup make
    sending output to nohup.out
    

    From tail -f nohup.out, the build seems like it's cooking along. More soon. . . . :)


    Edit to add the great news that the build seems to have completed! This VPS is fast! Thanks @linveo! <3

    linveo# nohup date
    sending output to nohup.out
    linveo# nohup make install
    sending output to nohup.out
    linveo# echo $?
    0
    linveo# 
    

    Here is the install portion of the nohup.out modular xorg build log:

    Sat Mar 15 01:36:39 UTC 2025
    ===> Checking for vulnerabilities in modular-xorg-1.12.4nb1
    ===> Installing for modular-xorg-1.12.4nb1
    => Generating pre-install file lists
    => Automatic manual page handling
    => Generating post-install file lists
    => Checking file-check results for modular-xorg-1.12.4nb1
    => Creating binary package /usr/pkgsrc/meta-pkgs/modular-xorg/work/.packages/modular-xorg-1.12.4nb1.tgz
    ===> Building binary package for modular-xorg-1.12.4nb1
    => Creating binary package /usr/pkgsrc/packages/All/modular-xorg-1.12.4nb1.tgz
    ===> Installing binary package of modular-xorg-1.12.4nb1
    
    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Lots of new packages! (Compare with before modular xorg was built and installed!)

    What happens if I run pkg_rolling-relace now?

    linveo# cd /usr/pkgsrc
    linveo# pkg_admin fetch-pkg-vulnerabilities
    linveo# pkg_admin audit
    Package perl-5.40.1 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
    Package wget-1.25.0 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
    Package modular-xorg-server-21.1.16 has a use-after-free vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2023-5574
    linveo# pkg_info -Q PKGPATH -a
    pkgtools/libnbcompat
    pkgtools/cwrappers
    pkgtools/mktools
    pkgtools/pkg_chk
    pkgtools/pkg_tarup
    pkgtools/digest
    devel/m4
    devel/libtool-base
    lang/perl5
    devel/pkgconf
    textproc/libunistring
    devel/libidn2
    devel/gmake
    textproc/xmlcatmgr
    textproc/libxml2
    www/nghttp2
    www/curl
    pkgtools/pkg_rolling-replace
    devel/gettext-lib
    devel/gettext-tools
    www/lynx
    archivers/lzip
    devel/libffi
    devel/libuuid
    devel/readline
    databases/sqlite3
    lang/python312
    www/libpsl
    net/wget
    editors/elvis
    devel/tradcpp
    x11/xcb-proto
    x11/xorgproto
    x11/xtrans
    x11/libXau
    x11/libXdmcp
    textproc/docbook-xml
    textproc/docbook-xsl
    security/libgpg-error
    security/libgcrypt
    textproc/libxslt
    x11/py-xcbgen
    x11/libxcb
    x11/libX11
    devel/py-flit_core
    misc/py-installer
    devel/py-pyparsing
    devel/py-packaging
    devel/py-pyproject_hooks
    devel/py-build
    devel/py-setuptools
    textproc/py-libxml2
    textproc/itstool
    devel/p5-gettext
    converters/help2man
    devel/autoconf
    devel/automake
    devel/libuv
    misc/rhash
    archivers/lz4
    archivers/zstd
    devel/cmake
    devel/bison
    devel/re2c
    devel/ninja-build
    devel/meson
    x11/libxkbfile
    x11/xkbcomp
    x11/xkeyboard-config
    textproc/py-markupsafe
    devel/py-mako
    lang/libLLVM
    x11/libXfixes
    x11/libXdamage
    x11/libXext
    x11/libXrender
    x11/libXrandr
    x11/libXxf86vm
    math/py-roman
    devel/py-pathspec
    devel/py-typing-extensions
    devel/py-setuptools_scm
    devel/py-pluggy
    devel/py-calver
    misc/py-trove-classifiers
    devel/py-hatchling
    textproc/py-pygments
    textproc/py-docutils
    misc/pciids
    sysutils/libpciaccess
    x11/libSM
    x11/libdrm
    devel/libelf
    multimedia/libva
    multimedia/libvdpau
    devel/xorg-util-macros
    x11/libxshmfence
    devel/libepoll-shim
    devel/wayland
    devel/wayland-protocols
    graphics/MesaLib
    x11/libICE
    x11/libXt
    x11/libXmu
    x11/libXpm
    x11/libXaw
    archivers/brotli
    graphics/png
    graphics/freetype2
    fonts/libfontenc
    x11/libXfont2
    x11/libXinerama
    graphics/libepoxy
    x11/libxcvt
    devel/ncurses
    x11/pixman
    x11/xcb-util-keysyms
    x11/modular-xorg-server
    x11/xf86-input-elographics
    x11/xf86-input-joystick
    x11/xf86-input-keyboard
    x11/xf86-input-mouse
    x11/xf86-input-void
    x11/xf86-input-vmmouse
    x11/xf86-input-ws
    x11/libXScrnSaver
    x11/xf86-video-dummy
    x11/xf86-video-wsfb
    x11/xf86-video-amdgpu
    x11/xf86-video-ast
    x11/xf86-video-ati
    x11/xf86-video-chips
    x11/xf86-video-cirrus
    x11/xf86-video-i128
    x11/xf86-video-i740
    x11/libXcursor
    x11/libXi
    x11/libXtst
    x11/libXv
    x11/libXvMC
    devel/gperf
    x11/xcb-util
    x11/xf86-video-mga
    x11/xf86-video-intel
    x11/xf86-video-mach64
    x11/xf86-video-neomagic
    x11/xf86-video-nv
    x11/xf86-video-nouveau
    x11/xf86-video-openchrome
    x11/xf86-video-s3virge
    x11/xf86-video-savage
    x11/xf86-video-siliconmotion
    x11/xf86-video-sis
    x11/xf86-video-tdfx
    x11/xf86-video-trident
    x11/xf86-video-tseng
    mail/xbiff
    x11/xf86-video-vboxvideo
    x11/xf86-video-vesa
    x11/xf86-video-vmware
    x11/xf86-video-voodoo
    meta-pkgs/modular-xorg-drivers
    x11/libFS
    x11/libXaw3d
    x11/libXcomposite
    fonts/fontconfig
    x11/libXft
    x11/libXpresent
    x11/libXres
    x11/libXxf86dga
    meta-pkgs/modular-xorg-libs
    x11/xbitmaps
    wm/twm
    x11/appres
    fonts/bdftopcf
    x11/beforelight
    x11/bitmap
    x11/editres
    fonts/font-util
    x11/iceauth
    x11/ico
    x11/listres
    x11/luit
    x11/mkcomposecache
    x11/xcb-util-image
    x11/xcb-util-renderutil
    x11/xcb-util-wm
    x11/modular-xorg-xephyr
    time/oclock
    x11/setxkbmap
    x11/transset
    x11/viewres
    x11/x11perf
    x11/xauth
    x11/xbacklight
    x11/xcalc
    x11/xclipboard
    time/xclock
    x11/xcmsdb
    x11/xconsole
    x11/xcursorgen
    x11/xcursor-themes
    x11/xditview
    x11/sessreg
    x11/xrdb
    x11/xdm
    x11/xdpyinfo
    x11/xedit
    x11/xev
    x11/xeyes
    x11/xf86dga
    x11/xfd
    x11/xfontsel
    x11/xfsinfo
    x11/xgamma
    graphics/xgc
    x11/xhost
    x11/mcookie
    x11/xinit
    x11/xkbevd
    x11/xkbprint
    x11/xkbutils
    x11/xkill
    x11/xload
    x11/xlogo
    x11/xlsatoms
    x11/xlsclients
    x11/xlsfonts
    x11/xmag
    x11/xman
    x11/xmessage
    x11/xmh
    x11/xmodmap
    x11/xmore
    x11/xpr
    x11/xprop
    math/nickle
    x11/xrandr
    x11/xrefresh
    x11/xscope
    x11/xset
    x11/xsetroot
    x11/xsm
    x11/xstdcmap
    x11/xterm
    x11/xvinfo
    x11/xcb-util-errors
    x11/xwininfo
    x11/xwd
    x11/xwud
    meta-pkgs/modular-xorg-apps
    fonts/mkfontscale
    fonts/encodings
    fonts/font-adobe-100dpi
    fonts/font-adobe-75dpi
    fonts/font-adobe-utopia-100dpi
    fonts/font-adobe-utopia-75dpi
    fonts/font-adobe-utopia-type1
    fonts/font-alias
    fonts/font-bh-100dpi
    fonts/font-bh-75dpi
    fonts/font-bh-lucidatypewriter-100dpi
    fonts/font-bh-lucidatypewriter-75dpi
    fonts/font-bh-ttf
    fonts/font-bh-type1
    fonts/font-bitstream-100dpi
    fonts/font-bitstream-75dpi
    fonts/font-bitstream-type1
    fonts/font-cursor-misc
    fonts/font-daewoo-misc
    fonts/font-dec-misc
    fonts/font-ibm-type1
    fonts/font-isas-misc
    fonts/font-jis-misc
    fonts/font-misc-misc
    fonts/font-mutt-misc
    fonts/font-sony-misc
    fonts/vera-ttf
    meta-pkgs/modular-xorg-fonts
    x11/xorg-cf-files
    devel/gccmakedep
    devel/makedepend
    devel/imake
    meta-pkgs/modular-xorg-utils
    misc/xorg-docs
    meta-pkgs/modular-xorg
    linveo# linveo# export CVS_RSH=ssh
    linveo# echo $CVS_RSH
    ssh
    linveo# pwd
    /usr/pkgsrc
    linveo# ls no*
    nohup-cvs-up-dP-20250315.out                     nohup-pkg_rolling-replace-rsuv-20250312.out
    linveo# nohup pkg_rolling-replace -rsuv # Wow! Lots of output this time! .  .  .  .
    
    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    So, pkg_rolling-replace finished successfully. Quite a few packages were recompiled and reinstalled.

    I also hand installed x11vnc from pkgsrc. Just headed over to /use/pkgsrc/x11vnc/x11vnc, make, and make install.

    The pkg_rolling-replace output and the x11vnc compile output will be available for a short time. If anyone wants to see them, please let me know.

    Tomorrow, or sometime, I need to:

    • Go through the pkg_rolling-replace log; try to figure out what was rebuilt and why.
    • Look into the mysteries of the qsort_r patch, why the patch was not installed, and why the patch was needed.
    • When I last updated the NetBSD-current kernel and userland a few days ago, I completely forgot to run postinstall.sh or etcupdate to check /etc. So I might need to do both postinstall.sh and etcupdate.
    • Re-read Nia's above linked posts and try to understand more about the differences between xsrc and pkgsrc versions of X.
    • Actually try the newly built X. :)
    • Probably more.

    Just now I was over looking at the LES BSD thread to review a few topics. Wow! I miss @FrankCastle and @Crab! Those guys were so helpful! @cmeerw too, of course! <3 A few more of you too! <3 Thanks! <3 Special thanks to @linveo for the great, free VPS! <3

    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Not_Oles said: Actually try the newly built X.

    Well, X does seem to work:

    Thanked by (1)linveo

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    linveo# which wireshark
    /usr/pkg/bin/wireshark
    linveo# ls -l /usr/pkg/bin/wireshark 
    -rwxr-xr-x  1 root  wheel  10364096 Mar 16 14:26 /usr/pkg/bin/wireshark
    linveo# 
    
    Thanked by (1)cainyxues

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    @Not_Oles said:

    @Not_Oles said:

    In function 'void util_qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)'


    Found https://pkgsrc.se/[email protected]

    Subject: CVS commit: pkgsrc/graphics/MesaLib
    From: Thomas Klausner
    Date: 2025-03-07 07:56:21
    Message id: [email protected]
    Log Message:
    MesaLib: fix build on NetBSD-current (qsort_r)
    Files:
    Revision Action file
    1.167 modify pkgsrc/graphics/MesaLib/distinfo
    1.1 add pkgsrc/graphics/MesaLib/patches/patch-src_util_u__qsort.h


    I am wondering if the issue might have been touched on March 07, a few days before I last updated pkgsrc on March 12.

    Here's the patch:

    linveo# pwd
    /usr/pkgsrc/graphics/MesaLib/patches
    linveo# cat patch-src_util_u__qsort.h
    $NetBSD: patch-src_util_u__qsort.h,v 1.1 2025/03/07 06:56:20 wiz Exp $
    
    Fix for POSIX qsort_r on NetBSD.
    (FreeBSD before 14 had the qsort_r argument order different than Linux.)
    
    --- src/util/u_qsort.h.orig     2025-03-07 06:52:32.373984663 +0000
    +++ src/util/u_qsort.h
    @@ -57,7 +57,7 @@ util_qsort_r(void *base, size_t nmemb, s
                  void *arg)
     {
     #if HAVE_QSORT_R
    -#  if DETECT_OS_APPLE || DETECT_OS_BSD
    +#  if DETECT_OS_APPLE || DETECT_OS_BSD && !defined(__NetBSD__)
        /* BSD/macOS qsort_r takes "arg" before the comparison function and it
         * pass the "arg" before the elements.
         */
    linveo# 
    

    And here, again is the error:

    @Not_Oles said: Okay, the build broke.

    FAILED: src/util/libmesa_util.a.p/u_qsort.cpp.o 
    c++ -Isrc/util/libmesa_util.a.p -Isrc/util -I../src/util -Iinclude -I../include -Isrc -I../src -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -I/usr/pkg/include/libelf -I/usr/pkg/include/libLLVM -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/python3.12 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++14 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.3.9"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS -DHAVE_X11_PLATFORM -DHAVE_XCB_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DHAS_SCHED_H -DHAVE_SYS_SYSCTL_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_R -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="13.0.1"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DMESA_EXECMEM -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_OPENMP -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DVK_USE_PLATFORM_DISPLAY_KHR -Werror=return-type -Werror=empty-body -Wno-non-virtual-dtor -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -flifetime-dse=1 -Werror=format -Wformat-security -O2 -Dalloca=__builtin_alloca -DHAVE_NOATEXIT -DSYSCONFDIR=/usr/pkg/etc -fPIC -pthread -MD -MQ src/util/libmesa_util.a.p/u_qsort.cpp.o -MF src/util/libmesa_util.a.p/u_qsort.cpp.o.d -o src/util/libmesa_util.a.p/u_qsort.cpp.o -c ../src/util/u_qsort.cpp
    In file included from ../src/util/u_qsort.cpp:24:
    ../src/util/u_qsort.h: In function 'void util_qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)':
    ../src/util/u_qsort.h:68:31: error: cannot convert 'util_qsort_adapter_data*' to 'int (*)(const void*, const void*, void*)'
       68 |    qsort_r(base, nmemb, size, &data, util_qsort_adapter);
          |                               ^~~~~
          |                               |
          |                               util_qsort_adapter_data*
    In file included from ../src/util/u_qsort.h:27:
    /usr/include/stdlib.h:408:13: note:   initializing argument 4 of 'void qsort_r(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*)'
      408 |             int (*)(const void *, const void *, void *), void *);
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    *** Error code 1
    
    >Stop.
    make[3]: stopped making "reinstall" in /usr/pkgsrc/graphics/MesaLib
    *** Error code 1
    
    >Stop.
    make[2]: stopped making "reinstall" in /usr/pkgsrc/graphics/MesaLib
    *** Error code 1
    
    >Stop.
    make[1]: stopped making "reinstall" in /usr/pkgsrc/x11/modular-xorg-server
    *** Error code 1
    
    >Stop.
    make: stopped making "all" in /usr/pkgsrc/meta-pkgs/modular-xorg
    

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited 5:22AM

    Today's update and rebuild seemed to work fine! Thanks @linveo! <3

    ===> Summary of results:
             build.sh command:    ./build.sh -O ../obj -T ../tools -U distribution
             build.sh started:    Sun Mar 30 02:31:00 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             /usr/src/../tools/bin/nbmake outdated (older than usr.bin/make/make.h), needs building.
             Bootstrapping nbmake
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Created /usr/src/../tools/bin/nbmake
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful make distribution
             build.sh ended:      Sun Mar 30 04:40:42 UTC 2025
    ===> .
    

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer

    Kernel build seemed to work okay too:

    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U kernel=GENERIC
             build.sh started:    Sun Mar 30 22:33:18 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Building kernel without building new tools
             Building kernel:     GENERIC
             Build directory:     /usr/src/../obj/sys/arch/amd64/compile/GENERIC
             Kernels built from GENERIC:
              /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
             build.sh ended:      Sun Mar 30 22:39:05 UTC 2025
    ===> .
    

    I still think probably I am making some mistakes, here and there, and it sure would be great if people would kindly point them out, please! <3

    Thanks to @linveo for the super fast VPS! <3

    I hope everyone gets the servers they want!

  • Not_OlesNot_Oles Hosting ProviderContent Writer
    edited 11:06PM

    Installing the new kernel and rebooting:

    linveo# ls -l /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
    -rwxr-xr-x  1 tom  wheel  29587392 Mar 30 22:38 /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 tom  wheel  29586128 Mar 11 04:41 /netbsd
    -rwxr-xr-x  1 tom  wheel  29585768 Feb 21 05:46 /netbsd.old
    linveo# cp -p /netbsd /netbsd.old 
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 tom  wheel  29586128 Mar 11 04:41 /netbsd
    -rwxr-xr-x  1 tom  wheel  29586128 Mar 11 04:41 /netbsd.old
    linveo# cp -p /usr/src/../obj/sys/arch/amd64/compile/GENERIC/netbsd /netbsd
    linveo# ls -l /netbsd*
    -rwxr-xr-x  1 tom  wheel  29587392 Mar 30 22:38 /netbsd
    -rwxr-xr-x  1 tom  wheel  29586128 Mar 11 04:41 /netbsd.old
    linveo# 
    

    Reboot to run new kernel:

    chronos@penguin:~/servers/linveo$ `head -n 1 login`
    Last login: Sun Mar 30 22:33:25 2025 from 187.189.238.2
    NetBSD 10.99.12 (GENERIC) #2: Sun Mar 30 22:38:48 UTC 2025
    
    Welcome to NetBSD!
    
    linveo# uptime
    10:54PM  up 4 mins, 1 user, load averages: 0.00, 0.00, 0.00
    linveo# 
    

    Install new userland:

    ===> Summary of results:
             build.sh command:    ./build.sh -j 2 -O ../obj -T ../tools -U install=/
             build.sh started:    Sun Mar 30 22:58:48 UTC 2025
             NetBSD version:      10.99.12
             MACHINE:             amd64
             MACHINE_ARCH:        x86_64
             Build platform:      NetBSD 10.99.12 amd64
             HOST_SH:             /bin/sh
             share/mk MAKECONF:   /etc/mk.conf
             MAKECONF file:       /etc/mk.conf
             TOOLDIR path:        /usr/src/../tools
             DESTDIR path:        /usr/src/../obj/destdir.amd64
             RELEASEDIR path:     /usr/src/../obj/releasedir
             Updated makewrapper: /usr/src/../tools/bin/nbmake-amd64
             Successful installworld to /
             build.sh ended:      Sun Mar 30 22:59:01 UTC 2025
    ===> .
    

    Reboot again to run both new kernel and new userland:

    chronos@penguin:~/servers/linveo$ `head -n 1 login`
    Last login: Sun Mar 30 22:54:10 2025 from 187.189.238.2
    NetBSD 10.99.12 (GENERIC) #2: Sun Mar 30 22:38:48 UTC 2025
    
    Welcome to NetBSD!
    
    linveo# uptime
    11:02PM  up 1 min, 1 user, load averages: 0.05, 0.01, 0.00
    linveo# ls -l /bin | head
    total 1934
    -r-xr-xr-x  2 root  wheel   22056 Mar 30 04:39 [
    -r-xr-xr-x  1 root  wheel   22024 Mar 30 04:39 cat
    lrwxr-xr-x  1 root  wheel      11 Feb 21 05:40 chgrp -> /sbin/chown
    -r-xr-xr-x  1 root  wheel   22232 Mar 30 04:39 chio
    -r-xr-xr-x  1 root  wheel   17584 Mar 30 04:39 chmod
    -r-xr-xr-x  1 root  wheel   33528 Mar 30 04:39 cp
    -r-xr-xr-x  1 root  wheel   57720 Mar 30 04:39 cpio
    -r-xr-xr-x  1 root  wheel  190888 Mar 30 04:39 csh
    -r-xr-xr-x  1 root  wheel   27264 Mar 30 04:39 date
    linveo# 
    

    Thanks @linveo! <3

    I hope everyone gets the servers they want!

Sign In or Register to comment.