[MacPorts] #68534: doxygen @1.9.8: fatal error: 'fmt/core.h' file not found (was: doxygen update build from source fails: fmt/core.h' file not found)

MacPorts noreply at macports.org
Mon Oct 23 02:00:49 UTC 2023


#68534: doxygen @1.9.8: fatal error: 'fmt/core.h' file not found
-----------------------+--------------------
  Reporter:  kwolcott  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:
      Port:  doxygen   |
-----------------------+--------------------
Changes (by ryandesign):

 * version:   => 2.8.1


Old description:

> doxygen update build from source fails: fmt/core.h' file not found
>
> make[2]: ***
> [src/CMakeFiles/doxymain.dir/__/generated_src/commentscan.cpp.o] Error 1
>
> arm64
>
> Sonoma 14.0

New description:

 doxygen update build from source fails:

 {{{
 fmt/core.h' file not found
 make[2]: ***
 [src/CMakeFiles/doxymain.dir/__/generated_src/commentscan.cpp.o] Error 1
 }}}

 arm64

 Sonoma 14.0

--

Comment:

 The log says:

 {{{
 :info:build /opt/local/include/spdlog/fmt/fmt.h:31:14: fatal error:
 'fmt/core.h' file not found
 :info:build #    include <fmt/core.h>
 :info:build              ^~~~~~~~~~~~
 }}}

 The doxygen port doesn't declare a dependency on the spdlog port and we
 have successful builds of doxygen on all buildbot workers that have tried
 to build this port (there isn't a Sonoma arm64 buildbot worker yet) so
 this may be an opportunistic use of spdlog. In fact it looks like doxygen
 includes a bundled copy of spdlog and is trying to use that but is
 inadvertently finding your MacPorts copy with which it is evidently not
 compatible.

 If trace mode worked on Sonoma you could use that to hide spdlog during
 the doxygen build. But [ticket:66358 since it doesn't], you could
 deactivate spdlog for the duration of the doxygen build:

 {{{
 sudo port clean doxygen
 sudo port -f deactivate spdlog
 sudo port upgrade doxygen
 sudo port activate spdlog
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68534#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list