Add copilot-setup-steps.yml and update build system for Goby 3.4.0#13
Add copilot-setup-steps.yml and update build system for Goby 3.4.0#13
Conversation
…3.4.0 Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/a5e18f4d-28c9-432d-972f-4b46ea730455 Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/a5e18f4d-28c9-432d-972f-4b46ea730455 Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
…t for GobyTarget.cmake Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/ba70897d-9fe0-4158-8f73-85475349ef51 Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Fixed in 09cb626. The root cause was a missing Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…q headers) Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/6895a37c-0532-4dd6-a4fa-7795a2fd1340 Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Fixed in 5cf79dd. The build was failing because Goby 3.x headers ( Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
tsaubergine
left a comment
There was a problem hiding this comment.
Build still fails:
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting CMAKE_CXX_STANDARD to 17 as required by Goby 3.x
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so (found version "3.21.12")
Using DCCL in /usr/include
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.58.0") found components: system date_time program_options filesystem
-- Found the following Goby libraries:
-- goby
-- goby_zeromq
-- goby_zeromq
-- goby_moos
-- Goby headers in /usr/include
Using Goby in /usr/include
-- Found MOOS: /usr/lib/x86_64-linux-gnu/cmake/MOOS/UseMOOS.cmake (Required is at least version "10")
-- Found Threads: TRUE
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: serialization
-- Configuring done
CMake Error in src/lib/messages/CMakeLists.txt:
Target "netsim_messages" INTERFACE_INCLUDE_DIRECTORIES property contains
path:
"/root/netsim/build/include/netsim/messages"
which is prefixed in the build directory.
CMake Error in src/lib/messages/CMakeLists.txt:
Target "netsim_messages" INTERFACE_INCLUDE_DIRECTORIES property contains
path:
"/root/netsim/build/include/netsim/messages"
which is prefixed in the build directory.Target "netsim_messages"
INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/root/netsim/build/include/netsim/messages"
which is prefixed in the source directory.
CMake Error in src/lib/acousticstoolbox/CMakeLists.txt:
Target "netsim_acousticstoolbox" INTERFACE_INCLUDE_DIRECTORIES property
contains path:
"/root/netsim/build/include/netsim/acousticstoolbox"
which is prefixed in the build directory.
CMake Error in src/lib/acousticstoolbox/CMakeLists.txt:
Target "netsim_acousticstoolbox" INTERFACE_INCLUDE_DIRECTORIES property
contains path:
"/root/netsim/build/include/netsim/acousticstoolbox"
which is prefixed in the build directory.Target "netsim_acousticstoolbox"
INTERFACE_INCLUDE_DIRECTORIES property contains path:
"/root/netsim/build/include/netsim/acousticstoolbox"
which is prefixed in the source directory.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Exited with code exit status 1
…cmake Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/c4878756-9a69-47d5-a38f-e5efb1d2451e Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Fixed in 644493c. The |
tsaubergine
left a comment
There was a problem hiding this comment.
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting CMAKE_CXX_STANDARD to 17 as required by Goby 3.x
-- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so (found version "3.21.12")
Using DCCL in /usr/include
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.58.0") found components: system date_time program_options filesystem
-- Found the following Goby libraries:
-- goby
-- goby_zeromq
-- goby_zeromq
-- goby_moos
-- Goby headers in /usr/include
Using Goby in /usr/include
-- Found MOOS: /usr/lib/x86_64-linux-gnu/cmake/MOOS/UseMOOS.cmake (Required is at least version "10")
-- Found Threads: TRUE
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: serialization
-- Configuring done
-- Generating done
-- Build files have been written to: /root/netsim/build
[ 1%] Running dccl protocol buffer compiler on svp_request_response.proto
[ 3%] Building CXX object src/lib/tcp/CMakeFiles/netsim_tcp.dir/tcp_client.cpp.o
[ 4%] Running dccl protocol buffer compiler on environment.proto
[ 6%] Running dccl protocol buffer compiler on iBellhop_messages.proto
[ 8%] Building CXX object src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir/environment.cpp.o
[ 9%] Building CXX object src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir////include/netsim/acousticstoolbox/environment.pb.cc.o
[ 11%] Building CXX object src/lib/tcp/CMakeFiles/netsim_tcp.dir/tcp_server.cpp.o
[ 12%] Building CXX object src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir////include/netsim/acousticstoolbox/svp_request_response.pb.cc.o
/root/netsim/build/include/netsim/acousticstoolbox/svp_request_response.pb.cc:303:6: error: '::descriptor_table_netsim_2facousticstoolbox_2fenvironment_2eproto' has not been declared
303 | &::descriptor_table_netsim_2facousticstoolbox_2fenvironment_2eproto,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir/build.make:128: src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir///__/include/netsim/acousticstoolbox/svp_request_response.pb.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:643: src/lib/acousticstoolbox/CMakeFiles/netsim_acousticstoolbox.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 14%] Building CXX object src/lib/tcp/CMakeFiles/netsim_tcp.dir/tcp_session.cpp.o
[ 16%] Linking CXX shared library ../../../lib/libnetsim_tcp.so
[ 16%] Built target netsim_tcp
gmake: *** [Makefile:136: all] Error 2
…re invoking protoc Agent-Logs-Url: https://github.com/GobySoft/netsim/sessions/745b6c83-1b54-47d2-bfdc-9bf58c3b702d Co-authored-by: tsaubergine <732276+tsaubergine@users.noreply.github.com>
Fixed in b256e49. Root cause: Fix mirrors what the original |
.github/workflows/copilot-setup-steps.ymlcmake_modules/FindProtobufLocal.cmakewithcmake_modules/GobyTarget.cmakeCMakeLists.txtand all sub-CMakeLists.txtfilesfind_package(Protobuf REQUIRED)target_include_directories PUBLICin$<BUILD_INTERFACE:...>.prototoPROTOC_OUT_DIRbefore invoking protoc (mirroring the originalFindProtobufLocal.cmakebehaviour), and removeCMAKE_CURRENT_SOURCE_DIR/PROTOC_OUT_DIRfrom protoc import dirs so the canonical name (netsim/acousticstoolbox/environment.proto) is derived fromIMPORT_DIRSrather than just the basename