From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106561] ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defined, evaluates to 0 [-Werror,-Wundef] Date: Fri, 18 May 2018 07:25:59 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1120091621==" 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 2EE546EC61 for ; Fri, 18 May 2018 07:25:59 +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 --===============1120091621== Content-Type: multipart/alternative; boundary="15266283590.2D81B.9628" Content-Transfer-Encoding: 7bit --15266283590.2D81B.9628 Date: Fri, 18 May 2018 07:25:59 +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=3D106561 Bug ID: 106561 Summary: ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defined, evaluates to 0 [-Werror,-Wundef] Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: All Status: NEW Severity: critical Priority: medium Component: libdrm Assignee: dri-devel@lists.freedesktop.org Reporter: tpgxyz@gmail.com I'm compiling libdrm-2.4.92 with LLVM/Clang-7.0.0-git full logs: http://file-store.openmandriva.org/api/v1/file_stores/4bcfed586cf82d265277f= 3612dcb7f9cb20e3caf.log?show=3Dtrue BUILDSTDERR: In file included from xf86drm.c:68: BUILDSTDERR: ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not define= d, evaluates to 0 [-Werror,-Wundef] BUILDSTDERR: #if HAVE_VISIBILITY BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:293:6: error: 'UDEV' is not defined, evaluates to 0 [-Werror,-Wundef] BUILDSTDERR: #if !UDEV BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:332:6: error: 'UDEV' is not defined, evaluates to 0 [-Werror,-Wundef] BUILDSTDERR: #if !UDEV BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:361:6: error: 'UDEV' is not defined, evaluates to 0 [-Werror,-Wundef] BUILDSTDERR: #if !UDEV BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:414:6: error: 'UDEV' is not defined, evaluates to 0 [-Werror,-Wundef] BUILDSTDERR: #if !UDEV BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:1110:19: warning: implicit conversion from enumerati= on type 'drmMapType' to different enumeration type 'enum drm_map_type' [-Wenum-conversion] BUILDSTDERR: map.type =3D type; BUILDSTDERR: ~ ^~~~ BUILDSTDERR: xf86drm.c:1111:19: warning: implicit conversion from enumerati= on type 'drmMapFlags' to different enumeration type 'enum drm_map_flags' [-Wenum-conversion] BUILDSTDERR: map.flags =3D flags; BUILDSTDERR: ~ ^~~~~ BUILDSTDERR: xf86drm.c:1433:36: warning: implicit conversion from enumerati= on type 'drmDMAFlags' to different enumeration type 'enum drm_dma_flags' [-Wenum-conversion] BUILDSTDERR: dma.flags =3D request->flags; BUILDSTDERR: ~ ~~~~~~~~~^~~~~ BUILDSTDERR: xf86drm.c:2364:19: warning: implicit conversion from enumerati= on type 'enum drm_map_type' to different enumeration type 'drmMapType' [-Wenum-conversion] BUILDSTDERR: *type =3D map.type; BUILDSTDERR: ~ ~~~~^~~~ BUILDSTDERR: xf86drm.c:2365:19: warning: implicit conversion from enumerati= on type 'enum drm_map_flags' to different enumeration type 'drmMapFlags' [-Wenum-conversion] BUILDSTDERR: *flags =3D map.flags; BUILDSTDERR: ~ ~~~~^~~~~ BUILDSTDERR: xf86drm.c:2922:11: error: implicit declaration of function 'vasprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration] BUILDSTDERR: num =3D vasprintf(&key, fmt, ap); BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:2922:11: note: did you mean 'vsprintf'? BUILDSTDERR: /usr/include/bits/stdio2.h:43:8: note: 'vsprintf' declared here BUILDSTDERR: __NTH (vsprintf (char *__restrict __s, const char *__restrict __fmt, BUILDSTDERR: ^ BUILDSTDERR: /usr/include/sys/cdefs.h:57:59: note: expanded from macro '__N= TH' BUILDSTDERR: # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) f= ct BUILDSTDERR: ^ BUILDSTDERR: xf86drm.c:2922:11: warning: this function declaration is not a prototype [-Wstrict-prototypes] BUILDSTDERR: num =3D vasprintf(&key, fmt, ap); BUILDSTDERR: ^ BUILDSTDERR: 6 warnings and 6 errors generated. BUILDSTDERR: make[2]: *** [Makefile:757: libdrm_la-xf86drm.lo] Error 1 --=20 You are receiving this mail because: You are the assignee for the bug.= --15266283590.2D81B.9628 Date: Fri, 18 May 2018 07:25:59 +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 106561
Summary ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defin= ed, evaluates to 0 [-Werror,-Wundef]
Product DRI
Version DRI git
Hardware x86-64 (AMD64)
OS All
Status NEW
Severity critical
Priority medium
Component libdrm
Assignee dri-devel@lists.freedesktop.org
Reporter tpgxyz@gmail.com

I'm compiling libdrm-2.4.92 with LLVM/Clang-7.0.0-git
full logs:
http://file-store.openmandr=
iva.org/api/v1/file_stores/4bcfed586cf82d265277f3612dcb7f9cb20e3caf.log?sho=
w=3Dtrue

BUILDSTDERR: In file included from xf86drm.c:68:
BUILDSTDERR: ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not define=
d,
evaluates to 0 [-Werror,-Wundef]
BUILDSTDERR: #if HAVE_VISIBILITY
BUILDSTDERR:     ^
BUILDSTDERR: xf86drm.c:293:6: error: 'UDEV' is not defined, evaluates to 0
[-Werror,-Wundef]
BUILDSTDERR: #if !UDEV
BUILDSTDERR:      ^
BUILDSTDERR: xf86drm.c:332:6: error: 'UDEV' is not defined, evaluates to 0
[-Werror,-Wundef]
BUILDSTDERR: #if !UDEV
BUILDSTDERR:      ^
BUILDSTDERR: xf86drm.c:361:6: error: 'UDEV' is not defined, evaluates to 0
[-Werror,-Wundef]
BUILDSTDERR: #if !UDEV
BUILDSTDERR:      ^
BUILDSTDERR: xf86drm.c:414:6: error: 'UDEV' is not defined, evaluates to 0
[-Werror,-Wundef]
BUILDSTDERR: #if !UDEV
BUILDSTDERR:      ^
BUILDSTDERR: xf86drm.c:1110:19: warning: implicit conversion from enumerati=
on
type 'drmMapType' to different enumeration type 'enum drm_map_type'
[-Wenum-conversion]
BUILDSTDERR:     map.type    =3D type;
BUILDSTDERR:                 ~ ^~~~
BUILDSTDERR: xf86drm.c:1111:19: warning: implicit conversion from enumerati=
on
type 'drmMapFlags' to different enumeration type 'enum drm_map_flags'
[-Wenum-conversion]
BUILDSTDERR:     map.flags   =3D flags;
BUILDSTDERR:                 ~ ^~~~~
BUILDSTDERR: xf86drm.c:1433:36: warning: implicit conversion from enumerati=
on
type 'drmDMAFlags' to different enumeration type 'enum drm_dma_flags'
[-Wenum-conversion]
BUILDSTDERR:     dma.flags           =3D request->flags;
BUILDSTDERR:                         ~ ~~~~~~~~~^~~~~
BUILDSTDERR: xf86drm.c:2364:19: warning: implicit conversion from enumerati=
on
type 'enum drm_map_type' to different enumeration type 'drmMapType'
[-Wenum-conversion]
BUILDSTDERR:     *type   =3D map.type;
BUILDSTDERR:             ~ ~~~~^~~~
BUILDSTDERR: xf86drm.c:2365:19: warning: implicit conversion from enumerati=
on
type 'enum drm_map_flags' to different enumeration type 'drmMapFlags'
[-Wenum-conversion]
BUILDSTDERR:     *flags  =3D map.flags;
BUILDSTDERR:             ~ ~~~~^~~~~
BUILDSTDERR: xf86drm.c:2922:11: error: implicit declaration of function
'vasprintf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
BUILDSTDERR:     num =3D vasprintf(&key, fmt, ap);
BUILDSTDERR:           ^
BUILDSTDERR: xf86drm.c:2922:11: note: did you mean 'vsprintf'?
BUILDSTDERR: /usr/include/bits/stdio2.h:43:8: note: 'vsprintf' declared here
BUILDSTDERR: __NTH (vsprintf (char *__restrict __s, const char *__restrict
__fmt,
BUILDSTDERR:        ^
BUILDSTDERR: /usr/include/sys/cdefs.h:57:59: note: expanded from macro '__N=
TH'
BUILDSTDERR: #  define __NTH(fct)    __attribute__ ((__nothrow__ __LEAF)) f=
ct
BUILDSTDERR:                                                              ^
BUILDSTDERR: xf86drm.c:2922:11: warning: this function declaration is not a
prototype [-Wstrict-prototypes]
BUILDSTDERR:     num =3D vasprintf(&key, fmt, ap);
BUILDSTDERR:           ^
BUILDSTDERR: 6 warnings and 6 errors generated.
BUILDSTDERR: make[2]: *** [Makefile:757: libdrm_la-xf86drm.lo] Error 1


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