uhulinux / ub-ubk3

64bit-only repo
1 stars 0 forks source link

mesa: meson build bug #4

Closed attuska closed 6 years ago

attuska commented 6 years ago

Az nvidia GPU-val a mesa nouveau az X-ben illegális utasítással elszáll, a sima configure make módszerrel létrejövő mesa használható csak. https://bugs.freedesktop.org/show_bug.cgi?id=106410

attuska commented 6 years ago

Egyelőre így jó csak: https://github.com/uhulinux/ub-ubk3/commit/d2f7e0e3a80d6868162feb2590eb899ca46d7621

attuska commented 6 years ago

A mesa-18.1.2 a https://github.com/uhulinux/ub-ubk3/commit/d2f7e0e3a80d6868162feb2590eb899ca46d7621 előtti ubével fordítva szintén illegális utasítást produkál az X -ben a próba telepítményen.

[ 187.302] (II) glamor: OpenGL accelerated X.org driver based. [ 187.386] (EE) [ 187.386] (EE) Backtrace: [ 187.386] (EE) 0: /usr/bin/X (OsLookupColor+0x139) [0x58f2d9] [ 187.387] (EE) 1: /lib/libpthread.so.0 (funlockfile+0x50) [0x7fa291218acf] [ 187.388] (EE) 2: /usr/lib/dri/nouveau_dri.so (nouveau_drm_screen_create+0x1970fb) [0x7fa28be4713b] [ 187.389] (EE) unw_get_proc_name failed: no unwind info found [-10] [ 187.389] (EE) 3: /usr/lib/dri/nouveau_dri.so (?+0x1970fb) [0x7fa28b8e836b] [ 187.390] (EE) 4: /lib64/ld-linux-x86-64.so.2 (_dl_rtld_di_serinfo+0x641a) [0x7fa29340d9aa] [ 187.391] (EE) 5: /lib64/ld-linux-x86-64.so.2 (_dl_rtld_di_serinfo+0x6516) [0x7fa29340dbc6] [ 187.392] (EE) 6: /lib64/ld-linux-x86-64.so.2 (_dl_find_dso_for_object+0x995) [0x7fa29340c1f5] [ 187.393] (EE) 7: /lib/libc.so.6 (_dl_catch_error+0x71) [0x7fa290f7fe21] [ 187.393] (EE) 8: /lib64/ld-linux-x86-64.so.2 (_dl_find_dso_for_object+0x187) [0x7fa29340b4d7] [ 187.394] (EE) unw_get_proc_name failed: no unwind info found [-10] [ 187.394] (EE) 9: /lib/libdl.so.2 (?+0x187) [0x7fa292b2e007] [ 187.395] (EE) 10: /lib/libc.so.6 (_dl_catch_error+0x71) [0x7fa290f7fe21] [ 187.396] (EE) 11: /lib/libdl.so.2 (dlerror+0x2b5) [0x7fa292b2e735] [ 187.397] (EE) 12: /lib/libdl.so.2 (dlopen+0x31) [0x7fa292b2df51] [ 187.398] (EE) 13: /usr/lib/libgbm.so.1 (gbm_surface_has_free_buffers+0x1c23) [0x7fa28d5eec33] [ 187.399] (EE) 14: /usr/lib/libgbm.so.1 (gbm_surface_has_free_buffers+0x1d4c) [0x7fa28d5eefcc] [ 187.399] (EE) 15: /usr/lib/libgbm.so.1 (gbm_surface_has_free_buffers+0x21f3) [0x7fa28d5ef763] [ 187.400] (EE) 16: /usr/lib/libgbm.so.1 (gbm_create_device+0x44) [0x7fa28d5eaea4] [ 187.401] (EE) 17: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x75) [0x7fa28d7ff2b5] [ 187.402] (EE) 18: /usr/lib/xorg/modules/drivers/modesetting_drv.so (_init+0x4a69) [0x7fa28e04a099] [ 187.402] (EE) 19: /usr/bin/X (InitOutput+0xa9c) [0x47ab4c] [ 187.402] (EE) 20: /usr/bin/X (InitFonts+0x1f5) [0x43adb5] [ 187.403] (EE) 21: /lib/libc.so.6 (__libc_start_main+0xee) [0x7fa290e775be] [ 187.403] (EE) 22: /usr/bin/X (_start+0x2a) [0x425d1a] [ 187.403] (EE) [ 187.403] (EE) Illegal instruction at address 0x7fa28bcb120b [ 187.403] (EE) Fatal server error: [ 187.403] (EE) Caught signal 4 (Illegal instruction). Server aborting [ 187.403] (EE) [ 187.403] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 187.403] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 187.403] (EE) [ 187.418] (EE) Server terminated with error (1). Closing log file.

Arch-Linux PKGBULD módján is. https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/mesa

És nekik ez nyilván jó így.

Fedora, Gentoo, Debian ellenben még mindig nem meson -al készíti a mostani 18.1.2 -t, nyilván nem véletlen.

Lehet, hogy a linker csak Arch-linuxnál jó? https://bugs.freedesktop.org/show_bug.cgi?id=106410#c7 Nem értem, hogy a mesa karbantartók miért nem ügyködnek rajta.

attuska commented 6 years ago

Ügyködtek a mesa upstream karbantartói. A mesa git forrása lefordítva, feltelepítve a próba telepítményre már jó. git://anongit.freedesktop.org/mesa/mesa.git@e9a77c3e96dab313f3bb85fe271d41f3bade01fa

A compile fájl opciók:

ub_compile \ -Dplatforms=x11,drm,wayland,surfaceless \ -Dswr-arches=avx,avx2 \ -Dri3=true \ -Dgallium-extra-hud=true \ -Dgallium-nine=true \ -Dgallium-opencl=icd \ -Dgallium-va=true \ -Dgallium-vdpau=true \ -Dgallium-xa=true \ -Dgallium-xvmc=false \ -Dgbm=true \ -Dglvnd=true \ -Dglx=dri \ -Dlibunwind=true \ -Dllvm=true \ -Dlmsensors=true \ -Dtexture-float=true \ -Dtools=all

attuska commented 6 years ago

workaround: https://github.com/uhulinux/ub-ubk3/commit/643a501652fe1b5985dbe9e6b0af01fe778d277e

attuska commented 6 years ago

Fullrebuild és mesa update megoldotta.