From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104819] [libdrm build failure on 32 bit Ubuntu 16.04] libdrm_macros.h:79:4: error: size of unnamed array is negative Date: Sun, 28 Jan 2018 17:03:14 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2087994487==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 36E846E14B for ; Sun, 28 Jan 2018 17:03:15 +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 --===============2087994487== Content-Type: multipart/alternative; boundary="15171589952.dd2B38e.1190" Content-Transfer-Encoding: 7bit --15171589952.dd2B38e.1190 Date: Sun, 28 Jan 2018 17:03:15 +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=3D104819 Bug ID: 104819 Summary: [libdrm build failure on 32 bit Ubuntu 16.04] libdrm_macros.h:79:4: error: size of unnamed array is negative Product: Mesa Version: git Hardware: x86 (IA32) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: pedretti.fabio@gmail.com QA Contact: dri-devel@lists.freedesktop.org CC: andrey.grodzovsky@amd.com, michel@daenzer.net One of latest libdrm commits make libdrm fails to build on 32 bit Ubuntu 16= .06. Builds fine on 64 bit and newer Ubuntus. Error: make[4]: Entering directory '/<>/libdrm-2.4.89+git1801270630.6f0f6c~oibaf~x/build/tests/amdgp= u' ../../../tests/amdgpu/basic_tests.c: In function =E2=80=98amdgpu_userptr_te= st=E2=80=99: ../../../tests/amdgpu/basic_tests.c:1397:2: warning: ignoring return value = of =E2=80=98posix_memalign=E2=80=99, declared with attribute warn_unused_resul= t [-Wunused-result] posix_memalign(&ptr, sysconf(_SC_PAGE_SIZE), BUFFER_SIZE); ^ In file included from ../../../amdgpu/amdgpu_internal.h:35:0, from ../../../tests/amdgpu/vm_tests.c:28: ../../../libdrm_macros.h: In function =E2=80=98drm_munmap=E2=80=99: ../../../libdrm_macros.h:79:4: error: size of unnamed array is negative STATIC_ASSERT(LARGE_OFF_T % 2147483629 =3D=3D 721 && ^ Makefile:616: recipe for target 'amdgpu_test-vm_tests.o' failed make[4]: *** [amdgpu_test-vm_tests.o] Error 1 make[4]: Leaving directory '/<>/libdrm-2.4.89+git1801270630.6f0f6c~oibaf~x/build/tests/amdgp= u' Full build log including configure flags: https://launchpadlibrarian.net/354844704/buildlog_ubuntu-xenial-i386.libdrm= _2.4.89+git1801270630.6f0f6c~oibaf~x_BUILDING.txt.gz --=20 You are receiving this mail because: You are the assignee for the bug.= --15171589952.dd2B38e.1190 Date: Sun, 28 Jan 2018 17:03:15 +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 104819
Summary [libdrm build failure on 32 bit Ubuntu 16.04] libdrm_macros.h= :79:4: error: size of unnamed array is negative
Product Mesa
Version git
Hardware x86 (IA32)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter pedretti.fabio@gmail.com
QA Contact dri-devel@lists.freedesktop.org
CC andrey.grodzovsky@amd.com, michel@daenzer.net

One of latest libdrm commits make libdrm fails to build on 32 =
bit Ubuntu 16.06.
Builds fine on 64 bit and newer Ubuntus. Error:

make[4]: Entering directory
'/<<BUILDDIR>>/libdrm-2.4.89+git1801270630.6f0f6c~oibaf~x/build=
/tests/amdgpu'
../../../tests/amdgpu/basic_tests.c: In function =E2=80=98amdgpu_userptr_te=
st=E2=80=99:
../../../tests/amdgpu/basic_tests.c:1397:2: warning: ignoring return value =
of
=E2=80=98posix_memalign=E2=80=99, declared with attribute warn_unused_resul=
t [-Wunused-result]
  posix_memalign(&ptr, sysconf(_SC_PAGE_SIZE), BUFFER_SIZE);
  ^
In file included from ../../../amdgpu/amdgpu_internal.h:35:0,
                 from ../../../tests/amdgpu/vm_tests.c:28:
../../../libdrm_macros.h: In function =E2=80=98drm_munmap=E2=80=99:
../../../libdrm_macros.h:79:4: error: size of unnamed array is negative
    STATIC_ASSERT(LARGE_OFF_T % 2147483629 =3D=3D 721 &&
    ^
Makefile:616: recipe for target 'amdgpu_test-vm_tests.o' failed
make[4]: *** [amdgpu_test-vm_tests.o] Error 1
make[4]: Leaving directory
'/<<BUILDDIR>>/libdrm-2.4.89+git1801270630.6f0f6c~oibaf~x/build=
/tests/amdgpu'

Full build log including configure flags:
https://la=
unchpadlibrarian.net/354844704/buildlog_ubuntu-xenial-i386.libdrm_2.4.89+gi=
t1801270630.6f0f6c~oibaf~x_BUILDING.txt.gz


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