[Bug 208908] lang/beignet: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 18 20:15:35 UTC 2016


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

            Bug ID: 208908
           Summary: lang/beignet: Fix build with libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11 at FreeBSD.org
          Reporter: dim at FreeBSD.org
             Flags: maintainer-feedback?(x11 at FreeBSD.org)
          Assignee: x11 at FreeBSD.org

Created attachment 169455
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=169455&action=edit
Replace abs() on unsigned arguments in lang/beignet

During the exp-run in bug 208158, it was found that lang/beignet gives errors
with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/lang/beignet/work/Beignet-1.1.1-Source/backend/src/backend/gen_insn_selection.cpp:1156:27:
error: call to 'abs' is ambiguous
    insn->extra.longjmp = abs(index - origin) > 800;
                          ^~~

This is because abs() is being called with unsigned arguments.  Fix this by
calculating the unsigned difference in a safe manner.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/beignet-1.1.1.log

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


More information about the freebsd-x11 mailing list