[MacPorts] #68420: scrcpy @2.1.1: build fails on OS X 10.10
MacPorts
noreply at macports.org
Tue Oct 10 19:17:52 UTC 2023
#68420: scrcpy @2.1.1: build fails on OS X 10.10
----------------------+--------------------
Reporter: aprovera | Owner: (none)
Type: defect | Status: new
Priority: Low | Milestone:
Component: ports | Version: 2.8.1
Keywords: yosemite | Port: scrcpy
----------------------+--------------------
I've recently submitted a PR which successfully added support for old OS X
versions (10.6 x86_64, 10.7, 10.8, 10.9, 10.11).
However the build still fails on 10.10 (which uses compiler clang
700.1.81), with the following error:
{{{
use of unknown builtin '__builtin_mul_overflow' [-Wimplicit-function-
declaration]
}}}
Through a quick search on the GitHub repository, I've found out this exact
issue [https://github.com/macports/macports-
ports/blob/0e4e22da033d380dedbd6676765c7406f7df1c56/devel/ld64/Portfile#L225
was addressed in port ld64], as follows:
{{{
# clang 700.1.81 (10.10) fails with error: use of undeclared identifier
'__builtin_mul_overflow'
compiler.blacklist-append *gcc* {clang < 701}
}}}
This could therefore almost certainly be fixed in scrcpy by changing the
current blacklist of 700 to 701.
I've marked it as low priority, as there's a good chance the number of
affected users at this time is close to zero, so it can probably wait
until the next version update to be fixed.
--
Ticket URL: <https://trac.macports.org/ticket/68420>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list