Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

How can I install Mesa properly?

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
g3n0bus1
n00b
n00b
Posts: 11
Joined: Mon Jan 18, 2021 9:35 pm

How can I install Mesa properly?

  • Quote

Post by g3n0bus1 » Fri Sep 23, 2022 8:15 pm

Hi guys.

I built a Chromium OS that is almost similar with Gentoo.
But the OS UI got below error on Intel GPU PC.

Code: Select all

1 libEGL warning: MESA-LOADER: failed to open crocus: /usr/lib64/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)
2
3 2022-09-03T18:41:04.873085Z ERROR chrome[2548:2548]: [gl_display.cc(508)] EGL Driver message (Error) eglInitialize: DRI2: failed to load driver
And there is no crocus_dri.so in the path /usr/lib64/dri/
Only

Code: Select all

kms_swrast_dri.so
nouveau_dri.so
nouveau_drv_video.so
r300_dri.so
r600_dri.so
r600_drv_video.so
swrast_dri.so
are exist.

What causes the error?
I appreciate it if you guys give me some advices.

FYI below is what I installed mesa in the OS.

Code: Select all

(cr) ~/trunk/src/third_party/chromiumos-overlay/media-libs/mesa $ equery-amd64-generic uses mesa
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-libs/mesa-21.3.8-r2:
 U I
 - - X                     : Add support for X11
 + - classic               : Build drivers based on the classic architecture.
 - - cros_host             : <unknown>
 - - debug                 : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                             http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + dri                   : Enable direct rendering: used for accelerated 3D and some 2D, like DMA
 - - drm                   : <unknown>
 + - egl                   : Enable EGL support.
 + - gallium               : Build drivers based on Gallium3D, the new architecture for 3D graphics drivers.
 - - gbm                   : Enable the Graphics Buffer Manager for EGL on KMS.
 - - gles1                 : Enable GLESv1 support.
 + - gles2                 : Enable GLESv2 support.
 - - kvm_guest             : <unknown>
 - - libglvnd              : <unknown>
 + + llvm                  : Enable LLVM backend for Gallium3D.
 + + nptl                  : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better
                             usually)
 - - pic                   : disable optimized assembly code that is not PIC friendly
 - - selinux               : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage
                             will occur
 + - shared-glapi          : Enable sharing of common code for the OpenGL API.
 - - video_cards_amdgpu    : <unknown>
 - - video_cards_freedreno : VIDEO_CARDS setting to build reverse-engineered driver for Qualcomm Adreno cards
 + + video_cards_intel     : VIDEO_CARDS setting to build driver for Intel video cards
 + + video_cards_llvmpipe  : <unknown>
 - - video_cards_mach64    : VIDEO_CARDS setting to build driver for mach64 video cards
 - - video_cards_mga       : VIDEO_CARDS setting to build driver for mga video cards
 + + video_cards_nouveau   : VIDEO_CARDS setting to build reverse-engineered driver for nvidia cards
 - - video_cards_r128      : VIDEO_CARDS setting to build driver for ATI r128 video cards
 + + video_cards_radeon    : VIDEO_CARDS setting to build driver for ATI radeon video cards
 - - video_cards_radeonsi  : VIDEO_CARDS setting to build only Southern Islands based chips code for radeon
 - - video_cards_savage    : VIDEO_CARDS setting to build driver for savage video cards
 - - video_cards_sis       : VIDEO_CARDS setting to build driver for SiS video cards
 - - video_cards_softpipe  : <unknown>
 - - video_cards_tdfx      : VIDEO_CARDS setting to build driver for tdfx video cards
 - - video_cards_via       : VIDEO_CARDS setting to build driver for via video cards
 - - video_cards_virgl     : <unknown>
 - - video_cards_vmware    : VIDEO_CARDS setting to build driver for vmware video cards
 + + vulkan                : Build Vulkan drivers
 - - wayland               : Enable support for dev-libs/wayland
 - - xlib-glx              : <unknown>
 - - zstd                  : <unknown>
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Sep 23, 2022 9:10 pm

Would you please post your emerge --info?
Maybe you need

Code: Select all

VIDEO_CARDS="........intel i965........."
Also i see your mesa is lacking USE="X"
Are there profiles in chromeos?
Maybe choose a desktop profile
:)
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3538
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Sat Sep 24, 2022 7:50 am

Just populate your VIDEO_CARDS variable in make.conf properly. Portage will pull in everything you need.

Regards,
Georgi
Top
g3n0bus1
n00b
n00b
Posts: 11
Joined: Mon Jan 18, 2021 9:35 pm

  • Quote

Post by g3n0bus1 » Sat Sep 24, 2022 10:31 am

alamahant wrote:Would you please post your emerge --info?
Maybe you need

Code: Select all

VIDEO_CARDS="........intel i965........."
Also i see your mesa is lacking USE="X"
Are there profiles in chromeos?
Maybe choose a desktop profile
alamahant. Thank you for your advice.
I have added 'i965' in the VIDEO_CARDS like below, and built the OS again with mesa.
But still there is no crocus_dri.so binary in the path (/usr/lib64/dri/).

Code: Select all

(cr) (overlay-disklayout_kernel_firmware-220814) ~/trunk/src/overlays/overlay-amd64-generic/profiles/base $ emerge-amd64-generic --info                                                                                                     Portage 2.3.75 (python 3.6.15-final-0, default/linux/amd64/10.0/chromeos, gcc-10.2.0, unavailable, 5.4.0-99-generic x86_64)                                                                                                                                                       =================================================================                                                                                                                                                                                                                 System uname: Linux-5.4.0-99-generic-x86_64-Intel-R-_Core-TM-_i7-8700_CPU_@_3.20GHz-with-glibc2.2.5                                                                                                                                                                               KiB Mem:    32653328 total,  22370228 free                                                                                                                                                                                                                                        KiB Swap:    2097148 total,   2033404 free
sh bash 5.1_p16
ld GNU ld (GNU Binutils) 2.36.1
ccache version 3.7.7 [disabled]
sys-kernel/linux-headers: 4.14-r53::chromiumos
Repositories:

portage-stable
    location: /mnt/host/source/src/third_party/portage-stable
    masters: eclass-overlay
    priority: -1000

chromiumos
    location: /mnt/host/source/src/third_party/chromiumos-overlay
    masters: portage-stable eclass-overlay
    priority: 0

eclass-overlay
    location: /mnt/host/source/src/third_party/eclass-overlay
    priority: 1

amd64-generic
    location: /mnt/host/source/src/overlays/overlay-amd64-generic
    masters: portage-stable chromiumos eclass-overlay
    priority: 2

ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                                                                  
ACCEPT_LICENSE="* -@EULA -@CHROMEOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -Os -pipe  -march=x86-64 -msse3 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections"
CHOST="x86_64-cros-linux-gnu"
CONFIG_PROTECT="/etc/hosts /etc/locale.gen /etc/localtime /etc/make.conf"
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 /etc/terminfo"
CXXFLAGS=" -Os -pipe  -march=x86-64 -msse3 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot --autounmask-backtrack=y --autounmask=n --with-bdepends=n"
FCFLAGS=""
FEATURES="allow-missing-manifests assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg clean-logs config-protect-if-modified distlocks fixlafiles force-mirror ipc-sandbox multilib-strict network-sandbox nodoc noinfo noman parallel-fetch parallel-install prot
ect-owned sandbox sfperms splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="https://commondatastorage.googleapis.com/chromeos-localmirror https://commondatastorage.googleapis.com/chromeos-mirror/gentoo"
INSTALL_MASK="   /usr/lib*/*.la   /etc/init.d /etc/conf.d   /etc/logrotate.d   /etc/sandbox.d   /usr/share/bash-completion   /usr/share/locale "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed  -Wl,--gc-sections -Wl,--icf=all"
MAKEOPTS="-j12"
PKGDIR="/build/amd64-generic/packages/"
PORTAGE_BINHOST="gs://chromeos-prebuilt/board/amd64-generic_vm-optimized/full-R106-15047.0.0-rc1/packages/ gs://chromeos-prebuilt/board/amd64-generic/postsubmit-R106-15046.0.0-38547-8805859452640624161/packages"
PORTAGE_BUNZIP2_COMMAND="lbzip2 -d"
PORTAGE_BZIP2_COMMAND="lbzip2 -z"
PORTAGE_COMPRESS="pigz"
PORTAGE_COMPRESS_FLAGS="-3"
PORTAGE_CONFIGROOT="/build/amd64-generic/"
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="/build/amd64-generic/tmp/"
USE="acpi acpi_ac amd64 arc-camera3 bindist bluetooth bt_deprecated_tools bzip2 cellular compupdates containers cras-ml cros-debug cros_p2p crosfonts crosvm-gpu crypt cups cxx diagnostics direncription_allow_v2 direncryption dlc dlp dns-proxy dri drm_atomic evdev_gestures e
xtra_japanese_fonts featured floss frecon fusebox fwupd hardened has_chromeos_config_bsp hps iconv iioservice ime include_vmlinuz ipv6 kerberos_daemon kernel-5_15 kvm_host lacros_rootfs legacy_firmware_ui legacy_keyboard legacy_power_button llvm mbim memd missive mist ml_be
nchmark_drivers ml_service mmx mmxext modules mojo_service_manager mosys_platform_generic mudflap multilib ncurses nnapi nptl nptlonly ondevice_document_scanner ondevice_grammar ondevice_handwriting ondevice_text_suggestions opengles pam perfetto pinweaver racc readline res
ourced rgbkbd scanner secanomalyd sirenia smartdim smbprovider spaced sse sse2 ssl sysfs system_proxy tpm2 tpm2_simulator tpm2_simulator_manufacturer transparent_hugepage udev unibuild unicode usb usb_bouncer usbguard vaapi virtio_gpu vivid vkms vlan vtpm_proxy vulkan wifi_
hostap_test xattr xkbcommon xorg zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 e
xt_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" BOARD_USE="amd64-generic" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbo
n braindump author" CAMERAS="ptp2" CHROMEOS_KERNEL_FAMILY="chromeos" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics cmt" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633
 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" LINUX_FIRMWARE="iwlwifi-all rt2870 rtl8153" LLVM_TARGETS="AMDGPU X86" OFFICE_IMPLEMENTATION="libreoffice" OZONE_PLATFORM="gbm headless default_gbm" OZ
ONE_PLATFORM_DEFAULT="gbm" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel llvmpipe nouveau radeon i965 fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p if
ace geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, ENV_UNSET, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
And when I put 'X' flag, I got other dependency errors for other pkg.
AFAIK Chromium OS doesn't use it anymore.
Top
pietinger
Administrator
Administrator
Posts: 6640
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Sat Sep 24, 2022 10:36 am

Moved from Kernel & Hardware to Unsupported Software because of using ChromiumOS
Top
g3n0bus1
n00b
n00b
Posts: 11
Joined: Mon Jan 18, 2021 9:35 pm

  • Quote

Post by g3n0bus1 » Sat Sep 24, 2022 10:55 am

logrusx wrote:Just populate your VIDEO_CARDS variable in make.conf properly. Portage will pull in everything you need.

Regards,
Georgi
Thank you for the advice. logrusx.
BTW my Intel GPU use i915 kernel driver.
So my make.conf includes

Code: Select all

VIDEO_CARDS="intel llvmpipe nouveau radeon"
Isn't enough?
Top
alamahant
Advocate
Advocate
Posts: 4034
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sat Sep 24, 2022 11:48 am

Ok your cpu has

Code: Select all

Intel® UHD Graphics 630
https://www.intel.com/content/www/us/en ... tions.html
It is not Iris.
Its an 8th generation one so normally it is not crocus(4-7th Gen).
Try to use

Code: Select all

VIDEO_CARDS="intel i915 i965 iris"

to brute force your way in.
And rebuild mesa.
Also what is the output of

Code: Select all

for i in $(lspci | grep -iE "3d|vga" | awk '{ print $1 }');do lspci -nkk | grep $i -A3;done
:)
Top
g3n0bus1
n00b
n00b
Posts: 11
Joined: Mon Jan 18, 2021 9:35 pm

  • Quote

Post by g3n0bus1 » Sat Sep 24, 2022 11:47 pm

alamahant wrote:Ok your cpu has

Code: Select all

Intel® UHD Graphics 630
https://www.intel.com/content/www/us/en ... tions.html
It is not Iris.
Its an 8th generation one so normally it is not crocus(4-7th Gen).
Try to use

Code: Select all

VIDEO_CARDS="intel i915 i965 iris"

to brute force your way in.
And rebuild mesa.
Also what is the output of

Code: Select all

for i in $(lspci | grep -iE "3d|vga" | awk '{ print $1 }');do lspci -nkk | grep $i -A3;done

I do cross compile.
So the OS/mesa build PC and the test-bed PC are different.
My test-bed PC is
https://www.intel.com/content/www/us/en ... tions.html
and It has 2 GPUs.

Code: Select all

localhost ~ # for i in $(lspci | grep -iE "3d|vga" | awk '{print $1}');do lspci -nkk | grep $i -A3;done
00:02.0 0300: 8086:0a16 (rev 09)
        Subsystem: 1043:131d
        Kernel driver in use: i915
00:03.0 0403: 8086:0a0c (rev 09)
04:00.0 0302: 10de:1341 (rev a2)
        Subsystem: 1043:131d
        Kernel driver in use: nouveau
So when I run the OS on the test-bed PC, It complains about crocus_dri.so
As your advise I added

Code: Select all

VIDEO_CARDS="intel i915 i965 iris"
and built it again, but still crocus_dri.so is not appeared.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Unsupported Software”

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