FileHandlingCfdp subtopology does not compile: cfdpManager.configure called with 1 of 2 required arguments
| F´ Version | v4.3.0, and current devel (0d60d5a4fb) |
| Affected Component | Svc/Subtopologies/FileHandlingCfdp |
Problem Description
Any deployment that imports FileHandlingCfdp.Subtopology fails to compile its generated TopologyAc.cpp.
The subtopology's configComponents phase (FileHandlingCfdp.fpp#L12-L14) emits:
FileHandlingCfdp::cfdpManager.configure(FileHandlingCfdp::Allocation::memAllocator);but CfdpManager::configure (CfdpManager.hpp#L53) is declared:
void configure(Fw::MemAllocator& allocator, FwSizeType fileQueueDepth, FwEnumStoreType memId = 0);fileQueueDepth has no default and there is no second overload, so one argument can never match:
build/.../Top/TopologyAc.cpp:404:44: error: no matching function for call to
'Svc::Ccsds::Cfdp::CfdpManager::configure(Fw::MemAllocator&)'
404 | FileHandlingCfdp::cfdpManager.configure(FileHandlingCfdp::Allocation::memAllocator);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CfdpManager.hpp:53:10: note: candidate expects 3 arguments, 1 providedNote that FPP itself passes — the model, connections and packet set all check out. A phase block is an opaque string to FPP, so the mismatch only surfaces when a deployment splices it into configComponents() and a C++ compiler sees it.
git blame puts both the call and the declaration in the same commit, 20b39184fa (#5138), so the subtopology appears to have never been usable. It looks like this was not caught because nothing compiles that string: building Svc_Subtopologies_FileHandlingCfdp on its own produces no .cpp at all, no deployment in this repository imports the subtopology, and the CfdpManager unit test calls configure(m_allocator, 10) correctly, so component coverage does not exercise the subtopology's copy of the call.
The other two calls in the same file (fileManager.configure("/") and prmDb.configureSandbox("/"), added by #5833/#5850) do match their declarations. cfdpManager.configure is the only mismatch.
Context / Environment
Operating System: Linux
CPU Architecture: x86_64
Platform: Linux-7.0.0-30-generic-x86_64-with-glibc2.43
Python version: 3.14.4
CMake version: 3.30.0
Pip version: 26.2.1
Pip packages:
fprime-tools==4.3.0
fprime-gds==4.3.0
fprime-fpp==3.3.0
Project submodules:
https://github.com/nasa/fprime.git @ v4.3.0Also reproduced by inspection against devel at 0d60d5a4fb, where the cfdpManager.configure line is byte-identical to v4.3.0.
How to Reproduce
- In any deployment's
topology.fpp, addimport FileHandlingCfdp.Subtopology. - Add the matching
FileHandlingCfdp::SubtopologyStatemember andPingEntries/SubtopologyTopologyDefsincludes to<Deployment>TopologyDefs.hpp. fprime-util build— FPP succeeds, thenTopologyAc.cppfails to compile with the error above.
Expected Behavior
FileHandlingCfdp.Subtopology compiles when imported, the way FileHandling.Subtopology does.
The fix is to pass a queue depth, mirroring what the sibling subtopology already does for FileDownlink via FileHandlingConfig::DownlinkConfig::fileQueueDepth. PR to follow.
Separately, it may be worth a regression guard so this class of defect is caught: today a subtopology's phase code is not compiled by anything in CI unless some deployment imports it, and FileHandlingCfdp is imported by none. Happy to raise that as its own issue if useful.
Generative AI was used in this contribution. Claude Opus 5 (via Claude Code) investigated the failure, traced it to the phase string, and drafted this report; a human reviewed and submitted it.
IAMAI
Source: nasa/fprime