Closed jgaeddert closed 2 years ago
Hello Joe,
I have pushed a fix for that. Thank you for identifying.
Best regards Kumar
Now I'm getting the following error:
/usr/bin/ld: CMakeFiles/enb_metrics_test.dir/__/src/metrics_stdout.cc.o:(.bss+0x0): multiple definition of `srsenb::pdcp_kpm'; CMakeFiles/enb_metrics_test.dir/enb_metrics_test.cc.o:(.bss+0x20): first defined here
/usr/bin/ld: CMakeFiles/enb_metrics_test.dir/__/src/metrics_csv.cc.o:(.bss+0x0): multiple definition of `srsenb::pdcp_kpm'; CMakeFiles/enb_metrics_test.dir/enb_metrics_test.cc.o:(.bss+0x20): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [srsenb/test/CMakeFiles/enb_metrics_test.dir/build.make:121: srsenb/test/enb_metrics_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:12388: srsenb/test/CMakeFiles/enb_metrics_test.dir/all] Error 2
This is a linker error that is showing duplicate symbols. I'm guessing we need to remove either metrics_std.cc
or metrics_csv.cc
Fixed the issue. Please try to rebuild and let me know if you face any issues.
[ 84%] Building CXX object srsenb/src/ric/CMakeFiles/srsenb_ric.dir/e2ap_encode.cc.o
In file included from /home/srsran1/src/oaic/srsRAN-e2/srsenb/src/ric/e2ap_encode.cc:2:
/home/srsran1/src/oaic/srsRAN-e2/srsenb/hdr/ric/e2ap_encode.h:4:10: fatal error: E2AP_E2AP-PDU.h: No such file or directory
4 | #include "E2AP_E2AP-PDU.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [srsenb/src/ric/CMakeFiles/srsenb_ric.dir/build.make:63: srsenb/src/ric/CMakeFiles/srsenb_ric.dir/e2ap_encode.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:12358: srsenb/src/ric/CMakeFiles/srsenb_ric.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
This is odd because it's clearly visible in e2_bindings/E2AP-v01.01/E2AP_E2AP-PDU.h
I'm also getting a warning when running cmake
:
CMake Warning:
Manually-specified variables were not used by the project:
RIC_GENERATED_E2SM_NI_BINDING_DIR
-- Build files have been written to: /home/srsran1/src/oaic/srsRAN-e2/build
For the CMake Warning: We can remove the parameter -DRIC_GENERATED_E2SM_NI_BINDING_DIR=${SRS}/e2_bindings/E2SM-NI \ when doing cmake
Well, I re-built it successfully. Not sure what the issue was. Closing this out. Will open new issues as they arise
When running with 37577922475aa50c625999d997a4a1e1ccbea786 and compiling with the following cmake config,
I am hitting this error:
Tagging @pratheeksu for support.