From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104034] Mesa/Radeonsi does not compile on musl due to endianess check Date: Sat, 02 Dec 2017 11:23:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1502135689==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 88C7C6E1CB for ; Sat, 2 Dec 2017 11:23:10 +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 --===============1502135689== Content-Type: multipart/alternative; boundary="15122137900.A1B0c2a32.17767"; charset="UTF-8" --15122137900.A1B0c2a32.17767 Date: Sat, 2 Dec 2017 11:23:10 +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=3D104034 Bug ID: 104034 Summary: Mesa/Radeonsi does not compile on musl due to endianess check Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: lucas.francesco93@gmail.com QA Contact: dri-devel@lists.freedesktop.org https://lists.freedesktop.org/archives/mesa-dev/2016-November/134355.html used to need to apply this patch and everything went fine(mainline still wa= snt compiling patchless anyway) but recently the source files changed and the patch does not work anymore the patch fails to apply and if i build it without the patch i get=20 In file included from /var/tmp/portage/media-libs/mesa-9999/work/mesa-9999/src/amd/addrlib/gfx9/g= fx9addrlib.cpp:36:0: /var/tmp/portage/media-libs/mesa-9999/work/mesa-9999/src/amd/addrlib/inc/ch= ip/gfx9/gfx9_gb_reg.h:44:2: error: #error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined" #error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined" ^~~~~ which is the behavior i was having already w/o the patch since 2016 would you guys mindig fixing endianess dectection on musl libc? --=20 You are receiving this mail because: You are the assignee for the bug.= --15122137900.A1B0c2a32.17767 Date: Sat, 2 Dec 2017 11:23:10 +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 104034
Summary Mesa/Radeonsi does not compile on musl due to endianess check
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter lucas.francesco93@gmail.com
QA Contact dri-devel@lists.freedesktop.org

https://lists.freedesktop.org/archives/mesa-dev/201=
6-November/134355.html

used to need to apply this patch and everything went fine(mainline still wa=
snt
compiling patchless anyway)
but recently the source files changed and the patch does not work anymore
the patch fails to apply and if i build it without the patch i get=20

In file included from
/var/tmp/portage/media-libs/mesa-9999/work/mesa-9999/src/amd/addrlib/gfx9/g=
fx9addrlib.cpp:36:0:
/var/tmp/portage/media-libs/mesa-9999/work/mesa-9999/src/amd/addrlib/inc/ch=
ip/gfx9/gfx9_gb_reg.h:44:2:
error: #error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"
 #error "BIGENDIAN_CPU or LITTLEENDIAN_CPU must be defined"
  ^~~~~


which is the behavior i was having already w/o the patch since 2016

would you guys mindig fixing endianess dectection on musl libc?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15122137900.A1B0c2a32.17767-- --===============1502135689== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1502135689==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104034] Mesa/Radeonsi does not compile on musl due to endianess check Date: Sat, 02 Dec 2017 22:40:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0887334937==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 160536E28A for ; Sat, 2 Dec 2017 22:40:45 +0000 (UTC) In-Reply-To: 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 --===============0887334937== Content-Type: multipart/alternative; boundary="15122544440.8f91D.24979"; charset="UTF-8" --15122544440.8f91D.24979 Date: Sat, 2 Dec 2017 22:40:44 +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=3D104034 --- Comment #1 from Lucas Francesco --- Created attachment 135881 --> https://bugs.freedesktop.org/attachment.cgi?id=3D135881&action=3Dedit the updated hack/fix well, it seems the inclusion of /addrlib/gfx9/chip on /Makefile.addrlib.am broke the old patch, so this is the new, updated patch, it would still be n= ice to have dectection mainline while using musl anyways --=20 You are receiving this mail because: You are the assignee for the bug.= --15122544440.8f91D.24979 Date: Sat, 2 Dec 2017 22:40:44 +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

Commen= t # 1 on bug 10403= 4 from Lucas Francesco
Created attachment 135881 [details] [review]
the updated hack/fix

well, it seems the inclusion of /addrlib/gfx9/chip on /Makefile.addrlib.am
broke the old patch, so this is the new, updated patch, it would still be n=
ice
to have dectection mainline while using musl anyways


You are receiving this mail because:
  • You are the assignee for the bug.
= --15122544440.8f91D.24979-- --===============0887334937== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0887334937==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104034] Mesa/Radeonsi does not compile on musl due to endianess check Date: Thu, 05 Apr 2018 00:39:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0139205956==" 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 3611E6E66A for ; Thu, 5 Apr 2018 00:39:54 +0000 (UTC) In-Reply-To: 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 --===============0139205956== Content-Type: multipart/alternative; boundary="15228887940.aB08D27e4.24949" Content-Transfer-Encoding: 7bit --15228887940.aB08D27e4.24949 Date: Thu, 5 Apr 2018 00:39:54 +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=3D104034 Timothy Arceri changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #2 from Timothy Arceri --- Should be fixed by: commit cbee1bfb34274668a05995b9d4c78ddec9e5ea4c Author: Eric Engestrom Date: Wed Mar 21 17:04:06 2018 +0000 meson/configure: detect endian.h instead of trying to guess when it's available Cc: Maxin B. John Cc: Khem Raj Cc: Rob Herring Suggested-by: Jon Turney Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Reviewed-by: Dylan Baker Cc: --=20 You are receiving this mail because: You are the assignee for the bug.= --15228887940.aB08D27e4.24949 Date: Thu, 5 Apr 2018 00:39:54 +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 Timothy Arceri changed bug 10403= 4
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Commen= t # 2 on bug 10403= 4 from Timothy Arceri
Should be fixed by:

commit cbee1bfb34274668a05995b9d4c78ddec9e5ea4c
Author: Eric Engestrom <eric.engestrom@imgtec.com>
Date:   Wed Mar 21 17:04:06 2018 +0000

    meson/configure: detect endian.h instead of trying to guess when it's
available

    Cc: Maxin B. John <maxin=
.john@gmail.com>
    Cc: Khem Raj <raj.khem@=
;gmail.com>
    Cc: Rob Herring <robh@ker=
nel.org>
    Suggested-by: Jon Turney <jon.turney@dronecode.org.uk>
    Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
    Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
    Cc: <mesa-s=
table@lists.freedesktop.org>


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