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:
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