Summary: | [libdrm build failure on 32 bit Ubuntu 16.04] libdrm_macros.h:79:4: error: size of unnamed array is negative | ||
---|---|---|---|
Product: | Mesa | Reporter: | Fabio Pedretti <pedretti.fabio> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | CC: | andrey.grodzovsky, michel |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Fabio Pedretti
2018-01-28 17:03:14 UTC
Hi, There are two different drivers, a 64 bit driver and a 32 bit driver. Please make sure you have the 32 bit one. This sounds like the 64 bit driver has been downloaded. There are different bis consumed by a 32 bit int and a 64 int and this messes with thread safety which in turn messages with signals given by the operating system. Note I am compiling the drm source from git. The same source builds fine on newer Ubuntu. Maybe it's something broken/old in the ubuntu 16.04 toolchain? I think you might be hitting a bug combining C++ compilers trying to compile C and autotools not being smart enough. What happens if you try to build using Meson? (If you've never used Meson before, Mesa has a good page describing how to use it: https://mesa3d.org/meson.html) (In reply to Eric Engestrom from comment #3) > I think you might be hitting a bug combining C++ compilers trying to compile > C and autotools not being smart enough. > What happens if you try to build using Meson? > > (If you've never used Meson before, Mesa has a good page describing how to > use it: https://mesa3d.org/meson.html) That's a lot of bull**** and you know it ;-) This is pre-processor stuff, where autotools or any build system doesn't care. Issue is a missing config.h include in the C file. I'll send a patch in a moment. The following commit should resolve it. Although we might want to consider using gcc/clang -include config.h and drop the explicit includes from the code. commit 10e85a8b7f28e80f5184919b2448ade18c19ca21 Author: Emil Velikov <emil.velikov@collabora.com> Date: Mon Jan 29 14:51:31 2018 +0000 tests/amdgpu: add missing config.h include |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.