[MacPorts] #64593: hugin-app-2019.2.0_4+accelerate+python39: build failure on macOS 12.2 arm64
MacPorts
noreply at macports.org
Wed Feb 2 20:43:26 UTC 2022
#64593: hugin-app-2019.2.0_4+accelerate+python39: build failure on macOS 12.2 arm64
--------------------------------+-----------------------
Reporter: bal-agates | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: hugin build finite | Port: hugin-app
--------------------------------+-----------------------
Attempt to build hugin-app failed on macOS 12.2 arm64. See enclosed
main.log.
If I am interpreting the log correctly it looks like an error generated by
implicitly used function finite() from lm_core.c and compiler.h.
{{{
_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_hugin-app/hugin-
app/work/hugin-2019.2.0/src/foreign/levmar/lm_core.c:182:7: error:
implicitly declaring library function 'finite' with type 'int (double)'
[-Werror,-Wimplicit-function-declaration]
:info:build if(!LM_FINITE(p_eL2)) stop=7;
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_graphics_hugin-app/hugin-
app/work/hugin-2019.2.0/src/foreign/levmar/compiler.h:36:19: note:
expanded from macro 'LM_FINITE'
:info:build #define LM_FINITE finite // ICC, GCC
:info:build ^
}}}
In compiler.h it seems to be selecting conditional
{{{
#elif defined(__ICC) || defined(__INTEL_COMPILER) || defined(__GNUC__)
#define LM_FINITE finite // ICC, GCC
}}}
The #else clause is the same so different set of compiler #define's would
still produce the same error.
From the build log on my system it seems to be selecting "clang
1300.0.29.30".
Possible fixes I can think of are
- Turn off implicit function errors.
- See if adding "#include <math.h>" fixes the problem without creating new
problems.
- Add a prototype for finite() in compiler.h.
Not sure which one would be better or it finite() is actually in standard
library.
This port uses a pretty outdated version of hugin sources. Possible fixed
in newer sources? I wanted to get existing Portfile working before trying
to upgrade sources.
--
Ticket URL: <https://trac.macports.org/ticket/64593>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list