staticnet
staticnet copied to clipboard
Fix compile error
Something something ITCM, inline, noinline, I'm not sure
[ 13%] Built target embedded-cli
[ 23%] Built target microkvs
[ 33%] Built target embedded-utils
[ 33%] Built target bsp
[ 33%] Built target common-embedded-platform-cli
[ 33%] Built target common-embedded-platform-bootloader
[ 35%] Built target common-embedded-platform-tcpip
[ 42%] Built target common-embedded-platform-boilerplate-h735
[ 42%] Built target common-embedded-platform-core
[ 37%] Built target common-embedded-platform-fpga
[ 58%] Built target stm32-cpp
[ 59%] Building CXX object common-embedded-platform/services/CMakeFiles/common-embedded-platform-services.dir/Iperf3Server.cpp.o
[ 61%] Building CXX object staticnet/CMakeFiles/staticnet.dir/sftp/SFTPServer.cpp.o
[ 61%] Building CXX object staticnet/CMakeFiles/staticnet.dir/ssh/SSHTransportServer.cpp.o
/home/juh/sro/dumptruck/staticnet/sftp/SFTPServer.cpp: In member function 'bool SFTPServer::OnRxData(int, SFTPConnectionState*, TCPTableEntry*, uint8_t*, uint16_t)':
/home/juh/sro/dumptruck/staticnet/sftp/SFTPServer.cpp:74:6: error: 'bool SFTPServer::OnRxData(int, SFTPConnectionState*, TCPTableEntry*, uint8_t*, uint16_t)' causes a section type conflict with 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 4096]'
74 | bool SFTPServer::OnRxData(int id, SFTPConnectionState* state, TCPTableEntry* socket, uint8_t* data, uint16_t len)
| ^~~~~~~~~~
In file included from /home/juh/sro/dumptruck/staticnet/sftp/SFTPServer.h:42,
from /home/juh/sro/dumptruck/staticnet/sftp/SFTPServer.cpp:31:
/home/juh/sro/dumptruck/staticnet/sftp/../util/CircularFIFO.h:167:18: note: 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 4096]' was declared here
167 | uint8_t* Rewind()
| ^~~~~~
make[2]: *** [staticnet/CMakeFiles/staticnet.dir/build.make:401: staticnet/CMakeFiles/staticnet.dir/sftp/SFTPServer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/juh/sro/dumptruck/staticnet/ssh/SSHTransportServer.cpp: In member function 'virtual bool SSHTransportServer::OnRxData(TCPTableEntry*, uint8_t*, uint16_t)':
/home/juh/sro/dumptruck/staticnet/ssh/SSHTransportServer.cpp:148:6: error: 'virtual bool SSHTransportServer::OnRxData(TCPTableEntry*, uint8_t*, uint16_t)' causes a section type conflict with 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 2048]'
148 | bool SSHTransportServer::OnRxData(TCPTableEntry* socket, uint8_t* payload, uint16_t payloadLen)
| ^~~~~~~~~~~~~~~~~~
In file included from /home/juh/sro/dumptruck/staticnet/ssh/SSHTransportServer.h:38,
from /home/juh/sro/dumptruck/staticnet/ssh/SSHTransportServer.cpp:35:
/home/juh/sro/dumptruck/staticnet/ssh/../util/CircularFIFO.h:167:18: note: 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 2048]' was declared here
167 | uint8_t* Rewind()
| ^~~~~~
make[2]: *** [staticnet/CMakeFiles/staticnet.dir/build.make:485: staticnet/CMakeFiles/staticnet.dir/ssh/SSHTransportServer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:786: staticnet/CMakeFiles/staticnet.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/juh/sro/dumptruck/common-embedded-platform/services/Iperf3Server.cpp: In member function 'virtual void Iperf3Server::Iteration()':
/home/juh/sro/dumptruck/common-embedded-platform/services/Iperf3Server.cpp:523:6: error: 'virtual void Iperf3Server::Iteration()' causes a section type conflict with 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 256]'
523 | void Iperf3Server::Iteration()
| ^~~~~~~~~~~~
In file included from /home/juh/sro/dumptruck/common-embedded-platform/services/Iperf3Server.h:43,
from /home/juh/sro/dumptruck/common-embedded-platform/services/Iperf3Server.cpp:33:
/home/juh/sro/dumptruck/staticnet/util/CircularFIFO.h:167:18: note: 'uint8_t* CircularFIFO<SIZE>::Rewind() [with short unsigned int SIZE = 256]' was declared here
167 | uint8_t* Rewind()
| ^~~~~~
make[2]: *** [common-embedded-platform/services/CMakeFiles/common-embedded-platform-services.dir/build.make:79: common-embedded-platform/services/CMakeFiles/common-embedded-platform-services.dir/Iperf3Server.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:530: common-embedded-platform/services/CMakeFiles/common-embedded-platform-services.dir/all] Error 2
make: *** [Makefile:91: all] Error 2