Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow のビルドが失敗する #443

Closed
kenjihiranabe opened this issue Dec 17, 2024 · 6 comments
Closed

workflow のビルドが失敗する #443

kenjihiranabe opened this issue Dec 17, 2024 · 6 comments

Comments

@kenjihiranabe
Copy link
Collaborator

drone_physics 最新をコミット
#434 (comment)

した流れのビルド結果が失敗。

https://github.com/toppers/hakoniwa-px4sim/actions/runs/12366402155

考察:

  1. win/ubuntu/macos の順に走る。先頭がこけたら、あとはキャンセル ----> 二人がまずビルドするであろう macos を先頭にしては?
  2. cmake の警告が必ず出るのが気になる。直してしまいたい。
  3. win で warning が多くでるが、できれば、クリーンに潰してしまうか、理由があって出るものは warning 番号で殺してしまい、ログをクリーンにしたい。
  4. 本質的に、なぜビルドが失敗しているのか、僕にはわからなかった。。。。 HELP!! @tmori

よく出る cmake の警告(自分でビルドしても必ず出る):

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


CMake Deprecation Warning at third-party/hakoniwa-core-cpp-client/core/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
@tmori
Copy link
Contributor

tmori commented Dec 17, 2024

Macでビルドしたらエラー出ました。

ビルド方法:

cd drone_contrl
bash build.bash

エラー:

[ 37%] Linking CXX shared module libFlightController.so
ld: Undefined symbols:
  hako::drone_physics::body_vector_from_ground(hako::drone_physics::VectorType const&, hako::drone_physics::EulerType const&), referenced from:
      DronePosController::run_pos(DronePosInputType&) in hako_module_drone_controller_impl.cpp.o
  hako::drone_physics::ground_vector_from_body(hako::drone_physics::VectorType const&, hako::drone_physics::EulerType const&), referenced from:
      DroneAltController::run_spd(DroneAltSpdInputType&) in hako_module_drone_controller_impl.cpp.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [workspace/FlightController/libFlightController.so] Error 1
make[1]: *** [workspace/FlightController/CMakeFiles/FlightController.dir/all] Error 2

body_vector_from_ground()が見つからないのが原因のようですね。。

@tmori
Copy link
Contributor

tmori commented Dec 17, 2024

直してみました。

@kenjihiranabe
Copy link
Collaborator Author

ありがとう、他のことは喫緊ではないので、安心しました。

@kenjihiranabe
Copy link
Collaborator Author

kenjihiranabe commented Dec 22, 2024

cmake の警告を直してみました。ダウンロードのタイムスタンプ抽出を明示的に ON しました。
推奨らしい。参考記事( https://qiita.com/kai-tokei/items/ecab1a2c78f8bb3cfe1f
506fb37

CMake Warning (dev) at /opt/hostedtoolcache/cmake/3.31.3/x64/cmake-3.31.3-linux-x86_64/share/cmake-3.31/Modules/FetchContent.cmake:1373 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  third-party/hakoniwa-core-cpp-client/core/src/CMakeLists.txt:16 (FetchContent_Declare)
This warning is for project developers.  Use -Wno-dev to suppress it.

@kenjihiranabe
Copy link
Collaborator Author

kenjihiranabe commented Dec 23, 2024

合わせて、こちらも対応(HAKO_CMAKE_VERSION -> 3.20)
70d2bbb

https://github.com/toppers/hakoniwa-px4sim/actions/runs/12450438239/job/34757250754

Run cd drone_physics && cmake -D HAKO_CLIENT_OPTION_FILEPATH=../cmake-options/linux-cmake-options.cmake . && make  && make test
CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

@kenjihiranabe
Copy link
Collaborator Author

森さんに修正お願いして、新環境にて対応。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants