All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.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	[thread overview]
Message-ID: <bug-104819-502@http.bugs.freedesktop.org/> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2051 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104819

            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 ‘amdgpu_userptr_test’:
../../../tests/amdgpu/basic_tests.c:1397:2: warning: ignoring return value of
‘posix_memalign’, declared with attribute warn_unused_result [-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 ‘drm_munmap’:
../../../libdrm_macros.h:79:4: error: size of unnamed array is negative
    STATIC_ASSERT(LARGE_OFF_T % 2147483629 == 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://launchpadlibrarian.net/354844704/buildlog_ubuntu-xenial-i386.libdrm_2.4.89+git1801270630.6f0f6c~oibaf~x_BUILDING.txt.gz

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3693 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2018-01-28 17:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 17:03 bugzilla-daemon [this message]
2018-01-29  1:32 ` [Bug 104819] [libdrm build failure on 32 bit Ubuntu 16.04] libdrm_macros.h:79:4: error: size of unnamed array is negative bugzilla-daemon
2018-01-29 14:30 ` bugzilla-daemon
2018-01-29 14:45 ` bugzilla-daemon
2018-01-29 14:52 ` bugzilla-daemon
2018-01-31 16:04 ` bugzilla-daemon
2018-02-01 11:15   ` [PATCH libdrm] meson,configure: include config.h automatically Eric Engestrom
2018-02-01 12:10     ` [PATCH libdrm v2] " Eric Engestrom
2018-03-20 12:06       ` [PATCH libdrm v2] meson, configure: " Emil Velikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-104819-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.