Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2016 14:20:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209549] devel/upp: Fix build with libc++ 3.8.0
Message-ID:  <bug-209549-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209549

            Bug ID: 209549
           Summary: devel/upp: 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: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: m.sund@arcor.de
                CC: m.sund@arcor.de
             Flags: maintainer-feedback?(m.sund@arcor.de)

Created attachment 170358
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170358&action=
=3Dedit
Disable abs() redefinions under libc++ in devel/upp

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

In file included from ide/BaseDlg.cpp:1:
In file included from ide/ide.h:4:
In file included from ./ide/Common/Common.h:4:
In file included from ./ide/Core/Core.h:4:
In file included from ./Esc/Esc.h:4:
./Core/Core.h:346:20: error: 'abs' is missing exception specification 'thro=
w()'
inline UPP::int64  abs(UPP::int64 x)          { return x < 0 ? -x : x; }
                   ^
                                     throw()

This is because Core/Core.h is attempting to redefine its own versions of
abs(), for int64 and double, respectively.  There is no need to do so with
libc++, so add checks for _LIBCPP_VERSION to disable the redefinitions, when
compiling under libc++.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_=
10h29m48s/logs/errors/upp-9251_1.log

--=20
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-209549-13>