From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 107990] Got Dying Light working in Arch by changing Mesa's compile steps, how to get it working Out Of the Box? Date: Wed, 19 Sep 2018 14:25:21 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1182807012==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D105892F8 for ; Wed, 19 Sep 2018 14:25:23 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1182807012== Content-Type: multipart/alternative; boundary="15373671230.CdEEed3ef.30077" Content-Transfer-Encoding: 7bit --15373671230.CdEEed3ef.30077 Date: Wed, 19 Sep 2018 14:25:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D107990 Bug ID: 107990 Summary: Got Dying Light working in Arch by changing Mesa's compile steps, how to get it working Out Of the Box? Product: Mesa Version: 18.2 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: john.ettedgui@gmail.com QA Contact: dri-devel@lists.freedesktop.org Hello, I've been looking for a while on how to get DL running on Arch and I finally found it. Now I'd like this to be possible by default, but I don't know if the issue = lies in Arch or Mesa and I'm hopeful someone here will be able to help. Arch's default compiler flags are: CFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-stro= ng -fno-plt" CXXFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-st= rong -fno-plt" LDFLAGS=3D"-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" "-fno-plt" in C/CXXFLAGS and ",-z,now" in LDFLAGS need to be unset when compiling Mesa to get DL to not crash. The other change required is to not use glvnd, with "-D glvnd=3Dfalse". I t= ried building libglvnd with the same flags as Mesa, or none at all, but it didn't help. Here's the original 18.2.0 PKGBUILD in case it helps: https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=3Dpac= kages/mesa The behavior is the same with Mesa 18.2.0 or master, with LLVM 6.0 or maste= r. I haven't tried with autoconf though, only Meson, but I can try if you think it'd be helpful. I don't have any helpful log, as the game segfaults without these, a backtr= ace in gdb doesn't show me anything useful, and there's nothing in dmesg. I'm using a 280X but people with 5xx seem to have the same behavior, so I d= on't think it depends on the model. We're all on amdgpu. I'd be happy to try / provide whatever would help. Current versions: Linux 4.18.8, GCC 8.2.1, glibc 2.28, but it failed in previous ones too. Thank you! --=20 You are receiving this mail because: You are the assignee for the bug.= --15373671230.CdEEed3ef.30077 Date: Wed, 19 Sep 2018 14:25:23 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 107990
Summary Got Dying Light working in Arch by changing Mesa's compile st= eps, how to get it working Out Of the Box?
Product Mesa
Version 18.2
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter john.ettedgui@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Hello,

I've been looking for a while on how to get DL running on Arch and I finally
found it.

Now I'd like this to be possible by default, but I don't know if the issue =
lies
in Arch or Mesa and I'm hopeful someone here will be able to help.

Arch's default compiler flags are:

CFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector=
-strong
-fno-plt"
CXXFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protect=
or-strong
-fno-plt"
LDFLAGS=3D"-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"

"-fno-plt" in C/CXXFLAGS and ",-z,now" in LDFLAGS need =
to be unset when
compiling Mesa to get DL to not crash.

The other change required is to not use glvnd, with "-D glvnd=3Dfalse&=
quot;. I tried
building libglvnd with the same flags as Mesa, or none at all, but it didn't
help.

Here's the original 18.2.0 PKGBUILD in case it helps:
https://git.archlinux.org/svntogit/packages.git/tree=
/trunk/PKGBUILD?h=3Dpackages/mesa

The behavior is the same with Mesa 18.2.0 or master, with LLVM 6.0 or maste=
r.
I haven't tried with autoconf though, only Meson, but I can try if you think
it'd be helpful.

I don't have any helpful log, as the game segfaults without these, a backtr=
ace
in gdb doesn't show me anything useful, and there's nothing in dmesg.

I'm using a 280X but people with 5xx seem to have the same behavior, so I d=
on't
think it depends on the model. We're all on amdgpu.

I'd be happy to try / provide whatever would help.

Current versions: Linux 4.18.8, GCC 8.2.1, glibc 2.28, but it failed in
previous ones too.

Thank you!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15373671230.CdEEed3ef.30077-- --===============1182807012== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1182807012==--