Opened 7 months ago

Last modified 6 months ago

#68534 assigned defect

doxygen @1.9.8: fatal error: 'fmt/core.h' file not found

Reported by: kwolcott Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: michaellass (Michael Lass)
Port: doxygen

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

doxygen_port_update_build_from_source_failed.log.bz2 (8.6 KB) - added by kwolcott 7 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: doxygen update build from source fails: fmt/core.h' file not founddoxygen @1.9.8: fatal error: 'fmt/core.h' file not found
Version: 2.8.1

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 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

comment:2 Changed 7 months ago by kwolcott

Looks like the suggested workaround was successful. I'm quite impressed at the quality and response time of analysis of the problem and the resultant temporary fix.

comment:3 Changed 7 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

I'll tackle this one

comment:4 Changed 6 months ago by barracuda156

Another doxygen 1.9.8 and spdlog issue is #68581

Thanks Ryan for pointing to this.

comment:5 Changed 6 months ago by michaellass (Michael Lass)

Cc: michaellass added
Note: See TracTickets for help on using tickets.