Hi!
As I’ve sorted out most of the problems with the gentoo installation on the vf2 I’ve tried to emerge mesa from @bing overlay. But the build process ends in this error:
[839/1108] riscv64-unknown-linux-gnu-gcc -Isrc/gallium/auxiliary/libgallium.a.p -Isrc/gallium/auxiliary -I../mesa-22.1.7/src/gallium/auxiliary -Isrc/loader -I../mesa-22.1.7/src/loader -I../mesa-22.1.7/src/gallium/include -Isrc -I../mesa-22.1.7/src -Iinclude -I../mesa-22.1.7/include -I../mesa-22.1.7/src/gallium/auxiliary/util -Isrc/compiler/nir -I../mesa-22.1.7/src/compiler/nir -Isrc/util -I../mesa-22.1.7/src/util -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 '-DPACKAGE_VERSION="22.1.7"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_SWRAST -DEGL_WITH_OPENGL -DHAVE_X11_PLATFORM -DHAVE_WAYLAND_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -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_GCC_ATOMIC_BUILTINS -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_QSORT_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_LIBUDEV -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="18.1.7"' -DLLVM_IS_SHARED=1 -DDRAW_LLVM_AVAILABLE -DUSE_LIBGLVND=1 -DMESA_EXECMEM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DVK_USE_PLATFORM_XLIB_XRANDR_EXT -DVK_USE_PLATFORM_DISPLAY_KHR -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -ffunction-sections -fdata-sections -march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe -fPIC -pthread -isystem/usr/lib/llvm/18/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Werror=pointer-arith -MD -MQ src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -MF src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o.d -o src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -c ../mesa-22.1.7/src/gallium/auxiliary/nir/nir_to_tgsi.c
ninja: build stopped: subcommand failed.
* ERROR: media-libs/mesa-22.1.7-r4::bingch failed (compile phase):
* ninja -v -j4 -l4 failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 4267: Called meson-multilib_src_compile
* environment, line 2761: Called multilib-minimal_src_compile
* environment, line 2955: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
* environment, line 3222: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2915: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2913: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
* environment, line 642: Called multilib-minimal_abi_src_compile
* environment, line 2949: Called multilib_src_compile
* environment, line 3442: Called meson_src_compile
* environment, line 2828: Called eninja
* environment, line 1704: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=media-libs/mesa-22.1.7-r4::bingch'`,
* the complete build log and the output of `emerge -pqv '=media-libs/mesa-22.1.7-r4::bingch'`.
* The complete build log is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'.
* The ebuild environment file is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/environment'.
* Working directory: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7-.lp64d'
* S: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7'
>>> Failed to emerge media-libs/mesa-22.1.7-r4, Log file:
>>> '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'
* Messages for package media-libs/mesa-22.1.7-r4:
* Ignoring USE=vulkan since VIDEO_CARDS does not contain freedreno, imagination, intel, radeonsi, or v3d
* Messages for package media-libs/mesa-22.1.7-r4:
* ERROR: media-libs/mesa-22.1.7-r4::bingch failed (compile phase):
* ninja -v -j4 -l4 failed
*
* Call stack:
* ebuild.sh, line 136: Called src_compile
* environment, line 4267: Called meson-multilib_src_compile
* environment, line 2761: Called multilib-minimal_src_compile
* environment, line 2955: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
* environment, line 3222: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2915: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
* environment, line 2913: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
* environment, line 642: Called multilib-minimal_abi_src_compile
* environment, line 2949: Called multilib_src_compile
* environment, line 3442: Called meson_src_compile
* environment, line 2828: Called eninja
* environment, line 1704: Called die
* The specific snippet of code:
* "$@" || die -n "${*} failed"
*
* If you need support, post the output of `emerge --info '=media-libs/mesa-22.1.7-r4::bingch'`,
* the complete build log and the output of `emerge -pqv '=media-libs/mesa-22.1.7-r4::bingch'`.
* The complete build log is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/build.log'.
* The ebuild environment file is located at '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/temp/environment'.
* Working directory: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7-.lp64d'
* S: '/data/portage_tmpdir/portage/media-libs/mesa-22.1.7-r4/work/mesa-22.1.7'
emerge --info ‘=media-libs/mesa-22.1.7-r4::bingch’ shows:
Portage 3.0.65 (python 3.12.4-final-0, default/linux/riscv/23.0/rv64/lp64d/desktop/plasma/systemd, gcc-14, glibc-2.39-r9, 6.6.20 riscv64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.20-riscv64-with-glibc2.39
KiB Mem: 8098028 total, 6404628 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Sun, 16 Jun 2024 17:00:00 +0000
Head commit of repository gentoo: e4505aa95e201287531af5ec4501cfda3f83dd33
Head commit of repository bingch: c177dbd57938a05ea86e1c8bb526063a23b32d28
sh bash 5.2_p26-r4
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r4::gentoo
dev-build/autoconf: 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.29.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.1::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.11.9-r1::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p5::gentoo
dev-lang/rust-bin: 1.78.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.7::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 14.1.1_p20240615::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/llvm: 15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.7::gentoo
sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r9::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
bingch
location: /var/db/repos/bingch
sync-type: git
sync-uri: https://gitlab.com/bingch/gentoo-overlay.git
masters: gentoo
volatile: True
ACCEPT_KEYWORDS="riscv ~riscv"
ACCEPT_LICENSE="@FREE"
CBUILD="riscv64-unknown-linux-gnu"
CFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
CHOST="riscv64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync merge-wait multilib-strict news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=rv64imafdc_zicsr_zba_zbb -mcpu=sifive-u74 -mtune=sifive-7-series -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
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="/data/portage_tmpdir/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa bluetooth branding bzip2 cairo cdda cdr crypt cups dbus declarative dri dts dvd dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline riscv screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
emerge -pqv ‘=media-libs/mesa-22.1.7-r4::bingch’ shows:
[ebuild UD] media-libs/mesa-22.1.7-r4 [24.1.1] USE="X gles2%* llvm vulkan wayland zstd (-d3d9) -debug -gles1% -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi (-valgrind) (-vdpau) -vulkan-overlay -xa -xvmc% (-zink) (-opengl%*) (-proprietary-codecs%*)" LLVM_SLOT="(-15%) (-16%) (-17%*) (-18%)" VIDEO_CARDS="(-freedreno) -imagination% (-intel) (-lima) -nouveau (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) (-vmware) (-d3d12%) (-lavapipe%) (-nvk%) (-zink%)"
The media-libs/mesa-22.1.7-r4/temp/build.log shows two errors:
../mesa-22.1.7/src/gallium/auxiliary/gallivm/lp_bld_arit.c:3714:10: error: implicit declaration of function ‘LLVMBuildLoad’; did you mean ‘LLVMBuildLoad2’? [-Wimplicit-function-declaration]
../mesa-22.1.7/src/gallium/auxiliary/gallivm/lp_bld_arit.c:3714:10: error: initialization of ‘LLVMValueRef’ {aka ‘struct LLVMOpaqueValue *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
Maybe someone has an idea why the compilation breaks?
Thanks!
Martin