Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2019 21:23:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 239192] graphics/drm-legacy-kmod: fix build on CURRENT with clang
Message-ID:  <bug-239192-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239192

            Bug ID: 239192
           Summary: graphics/drm-legacy-kmod: fix build on CURRENT with
                    clang
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)
          Assignee: x11@FreeBSD.org

Created attachment 205757
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=205757&action=edit
patch

With powerpc64 switching to clang in head, I tried to compile drm-legacy with
clang.

It fails with many similar errors:
/tmp/usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-990f64b/src/dev/drm2/drm_crtc.c:229:63:
error: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      converts between pointers to integer types with different sign
[-Werror,-Wpointer-sign]
        ret = drm_gem_name_create(&dev->mode_config.crtc_names, obj, &new_id);
                                                                     ^~~~~~~
Add -Wno-error=pointer-sign to CFLAGS when using new clang.

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239192-7141>