Open hoaaosnw opened 1 year ago
Hi @hoaaosnw,
Thank you for your interest in Hermit. As shown by the log you posted, it seems this redeclaration error is because you have multiple sets of OFED headers, which indicates there are probably some issues with your installed driver. Since the error is not in Hermit's code, I would suggest clearing duplicated OFED headers if any, and then reinstalling the driver.
I hope this helps and feel free to follow up if you have any further issue.
Thanks, Yifan
Thanks Yifan,
I try to remove other ofa_kernel files under /usr/src/
, but the errors remain.
Hi @hoaaosnw,
If so I would suggest doing a complete reinstallation by (1) uninstalling current MLNX_OFED drivers; (2) reinstalling Hermit kernel and kernel header files (see build_kernel.sh
for more details); (3) rebooting machine and switching to the newly compiled kernel; (4) re-compiling and installing MLNX_OFED driver on new kernel; and (5) rebooting machine again, cleaning up any compiled Hermit remoteswap files, and compiling remoteswap again.
These will ensure you work in a fresh environment and should resolve any header conflicts.
Thanks, Yifan
same issue as https://github.com/uclasystem/hermit/issues/4
multiple redeclaration, an example as followed:
In file included from ./include/net/flow.h:14:0, from ./include/net/net_namespace.h:15, from ./include/linux/inet.h:42, from /usr/src/ofa_kernel/default/include/linux/inet.h:7, from /home/hermit/remoteswap/client/rswap_client.c:6: /usr/src/ofa_kernel/default/include/net/flow_dissector.h:66:2: error: redeclaration of enumerator ‘FLOW_DISSECTOR_KEY_ENC_IP’ FLOW_DISSECTOR_KEY_ENC_IP = FLOW_DISSECTOR_KEY_MAX, / struct flow_dissector_key_ip / ^
~~~~~~~~ In file included from /usr/src/ofa_kernel/default/include/net/flow_dissector.h:8:0, from ./include/net/flow.h:14, from ./include/net/net_namespace.h:15, from ./include/linux/inet.h:42, from /usr/src/ofa_kernel/default/include/linux/inet.h:7, from /home/hermit/remoteswap/client/rswap_client.c:6: ./include/net/flow_dissector.h:278:2: note: previous definition of ‘FLOW_DISSECTOR_KEY_ENC_IP’ was here FLOW_DISSECTOR_KEY_ENC_IP, / struct flow_dissector_key_ip /