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

Rebuild for protobuf423 #9

Conversation

regro-cf-autotick-bot
Copy link
Contributor

This PR has been triggered in an effort to update protobuf423.

Notes and instructions for merging this PR:

  1. Please merge the PR only after the tests have passed.
  2. Feel free to push to the bot's branch to update this PR if needed.

Please note that if you close this PR we presume that the feedstock has been rebuilt, so if you are going to perform the rebuild yourself don't close this PR until the your rebuild has been merged.

If this PR was opened in error or needs to be updated please add the bot-rerun label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase @conda-forge-admin, please rerun bot in a PR comment to have the conda-forge-admin add it for you.

This PR was created by the regro-cf-autotick-bot. The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. Feel free to drop us a line if there are any issues! This PR was generated by https://github.com/regro/cf-scripts/actions/runs/5074214674, please use this URL for debugging.

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@traversaro
Copy link
Contributor

traversaro commented May 25, 2023

The build fails with:

2023-05-25T00:30:31.6303858Z [4/441] Linking CXX executable bin/gz_msgs_gen
2023-05-25T00:30:31.6304326Z FAILED: bin/gz_msgs_gen 
2023-05-25T00:30:31.6309063Z : && /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/x86_64-conda-linux-gnu-c++ -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/work=/usr/local/src/conda/libgz-msgs9-9.4.0 -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl=/usr/local/src/conda-prefix -O3 -DNDEBUG  -Wall -Wextra -Wno-long-long -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib -Wl,-rpath-link,/home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib -L/home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o src/CMakeFiles/gz_msgs_gen.dir/generator_main.cc.o -o bin/gz_msgs_gen  /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/libprotoc.so  /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/libprotobuf.so  -lpthread  -lpthread && :
2023-05-25T00:30:31.6312984Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `absl::lts_20230125::container_internal::raw_hash_set<absl::lts_20230125::container_internal::FlatHashMapPolicy<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > >, absl::lts_20230125::container_internal::StringHash, absl::lts_20230125::container_internal::StringEq, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, std::basic_string_view<char, std::char_traits<char> > > > >::hash_slot_fn(void*, void*)':
2023-05-25T00:30:31.6314415Z Generator.cc:(.text._ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_[_ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_]+0x10): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::kSeed'
2023-05-25T00:30:31.6316471Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: Generator.cc:(.text._ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_[_ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_]+0x2c): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::LowLevelHashImpl(unsigned char const*, unsigned long)'
2023-05-25T00:30:31.6318630Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: Generator.cc:(.text._ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_[_ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE12hash_slot_fnEPvSG_]+0x103): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::CombineLargeContiguousImpl64(unsigned long, unsigned char const*, unsigned long)'
2023-05-25T00:30:31.6321079Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `absl::lts_20230125::hash_internal::MixingHashState absl::lts_20230125::hash_internal::AbslHashValue<absl::lts_20230125::hash_internal::MixingHashState>(absl::lts_20230125::hash_internal::MixingHashState, std::basic_string_view<char, std::char_traits<char> >)':
2023-05-25T00:30:31.6322029Z Generator.cc:(.text._ZN4absl12lts_2023012513hash_internal13AbslHashValueINS1_15MixingHashStateEEET_S4_St17basic_string_viewIcSt11char_traitsIcEE[_ZN4absl12lts_2023012513hash_internal13AbslHashValueINS1_15MixingHashStateEEET_S4_St17basic_string_viewIcSt11char_traitsIcEE]+0x27): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::LowLevelHashImpl(unsigned char const*, unsigned long)'
2023-05-25T00:30:31.6323414Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: Generator.cc:(.text._ZN4absl12lts_2023012513hash_internal13AbslHashValueINS1_15MixingHashStateEEET_S4_St17basic_string_viewIcSt11char_traitsIcEE[_ZN4absl12lts_2023012513hash_internal13AbslHashValueINS1_15MixingHashStateEEET_S4_St17basic_string_viewIcSt11char_traitsIcEE]+0xf8): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::CombineLargeContiguousImpl64(unsigned long, unsigned char const*, unsigned long)'
2023-05-25T00:30:31.6325453Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `absl::lts_20230125::container_internal::raw_hash_set<absl::lts_20230125::container_internal::FlatHashMapPolicy<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > >, absl::lts_20230125::container_internal::StringHash, absl::lts_20230125::container_internal::StringEq, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, std::basic_string_view<char, std::char_traits<char> > > > >::resize(unsigned long)':
2023-05-25T00:30:31.6326652Z Generator.cc:(.text._ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE6resizeEm[_ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE6resizeEm]+0x68): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::kSeed'
2023-05-25T00:30:31.6329424Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `std::_Function_handler<std::optional<google::protobuf::io::Printer::ValueImpl<false> > (std::basic_string_view<char, std::char_traits<char> >), google::protobuf::io::Printer::WithVars<absl::lts_20230125::flat_hash_map<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >, absl::lts_20230125::container_internal::StringHash, absl::lts_20230125::container_internal::StringEq, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, std::basic_string_view<char, std::char_traits<char> > > > > >(absl::lts_20230125::flat_hash_map<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >, absl::lts_20230125::container_internal::StringHash, absl::lts_20230125::container_internal::StringEq, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, std::basic_string_view<char, std::char_traits<char> > > > > const*)::{lambda(std::basic_string_view<char, std::char_traits<char> >)#1}>::_M_invoke(std::_Any_data const&, std::basic_string_view<char, std::char_traits<char> >&&)':
2023-05-25T00:30:31.6331507Z Generator.cc:(.text._ZNSt17_Function_handlerIFSt8optionalIN6google8protobuf2io7Printer9ValueImplILb0EEEESt17basic_string_viewIcSt11char_traitsIcEEEZNS4_8WithVarsIN4absl12lts_2023012513flat_hash_mapISB_SB_NSF_18container_internal10StringHashENSH_8StringEqESaISt4pairIKSB_SB_EEEEEEDaPKT_EUlSB_E_E9_M_invokeERKSt9_Any_dataOSB_[_ZNSt17_Function_handlerIFSt8optionalIN6google8protobuf2io7Printer9ValueImplILb0EEEESt17basic_string_viewIcSt11char_traitsIcEEEZNS4_8WithVarsIN4absl12lts_2023012513flat_hash_mapISB_SB_NSF_18container_internal10StringHashENSH_8StringEqESaISt4pairIKSB_SB_EEEEEEDaPKT_EUlSB_E_E9_M_invokeERKSt9_Any_dataOSB_]+0x1e): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::kSeed'
2023-05-25T00:30:31.6333294Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `absl::lts_20230125::container_internal::raw_hash_set<absl::lts_20230125::container_internal::FlatHashMapPolicy<std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> > >, absl::lts_20230125::container_internal::StringHash, absl::lts_20230125::container_internal::StringEq, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, std::basic_string_view<char, std::char_traits<char> > > > >::prepare_insert(unsigned long)':
2023-05-25T00:30:31.6334873Z Generator.cc:(.text._ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE14prepare_insertEm[_ZN4absl12lts_2023012518container_internal12raw_hash_setINS1_17FlatHashMapPolicyISt17basic_string_viewIcSt11char_traitsIcEES7_EENS1_10StringHashENS1_8StringEqESaISt4pairIKS7_S7_EEE14prepare_insertEm]+0x198): undefined reference to `absl::lts_20230125::container_internal::DropDeletesWithoutResize(absl::lts_20230125::container_internal::CommonFields&, absl::lts_20230125::container_internal::PolicyFunctions const&, void*)'
2023-05-25T00:30:31.6336644Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: src/CMakeFiles/gz_msgs_gen.dir/Generator.cc.o: in function `void google::protobuf::io::Printer::Print<char [5], char [9]>(std::basic_string_view<char, std::char_traits<char> >, char const (&) [5], char const (&) [9])':
2023-05-25T00:30:31.6337405Z Generator.cc:(.text._ZN6google8protobuf2io7Printer5PrintIJA5_cA9_cEEEvSt17basic_string_viewIcSt11char_traitsIcEEDpRKT_[_ZN6google8protobuf2io7Printer5PrintIJA5_cA9_cEEEvSt17basic_string_viewIcSt11char_traitsIcEEDpRKT_]+0x63): undefined reference to `absl::lts_20230125::container_internal::kEmptyGroup'
2023-05-25T00:30:31.6338635Z /home/conda/feedstock_root/build_artifacts/gz-msgs9_1684974455795/_build_env/bin/../lib/gcc/x86_64-conda-linux-gnu/12.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: Generator.cc:(.text._ZN6google8protobuf2io7Printer5PrintIJA5_cA9_cEEEvSt17basic_string_viewIcSt11char_traitsIcEEDpRKT_[_ZN6google8protobuf2io7Printer5PrintIJA5_cA9_cEEEvSt17basic_string_viewIcSt11char_traitsIcEEDpRKT_]+0x96): undefined reference to `absl::lts_20230125::hash_internal::MixingHashState::kSeed'
2023-05-25T00:30:31.6339572Z collect2: error: ld returned 1 exit status

I need to check this in detail, but my intuition is that the new protobuf 4.23 added a depedency on abseil in the public headers, so it is necessary that all downstream users of protobuf link abseil. However, CMake's FindProtobuf (the one used by default if one calls find_package(Protobuf) ) has not been updated to handle that, so abseil is not linked.

Possible solutions:

  • Fix CMake's FindProtobuf
  • Switch to use find_package(Protobuf CONFIG) so that the protobuf-config.cmake file installed by protobuf is used
  • Link manually abseil

with the additional abseil dependency we now need to make sure that all compilation units are compiled with the same version of C++ used to compile abseil. Unfortunatly, CMake is not equipped to do this check automatically (see https://gitlab.kitware.com/cmake/cmake/-/issues/22592 and abseil/abseil-cpp#259).

xref: conda-forge/conda-forge-pinning-feedstock#4075

@traversaro
Copy link
Contributor

Actually the Protobuf gz-cmake machinery actually looks first for the protobuf with CONFIG, see https://github.com/gazebosim/gz-cmake/blob/d618dd70c0862d8e6c9ee9aa6d776bc30bf2f19c/cmake/FindGzProtobuf.cmake#L29 . However, that is failing (and hence falling back to the FindProtobuf cmake script) with error:

CMake Error at /home/traversaro/mambaforge/envs/gzmsgsdev/share/cmake/gz-cmake3/cmake3/FindGzProtobuf.cmake:29 (find_package):
  Could not find a configuration file for package "Protobuf" that is
  compatible with requested version "3".

  The following configuration files were considered but not accepted:

    /home/traversaro/mambaforge/envs/gzmsgsdev/lib/cmake/protobuf/protobuf-config.cmake, version: 23.2.0

Call Stack (most recent call first):
  /home/traversaro/mambaforge/envs/gzmsgsdev/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package)
  CMakeLists.txt:86 (gz_find_package)

@traversaro
Copy link
Contributor

Actually the Protobuf gz-cmake machinery actually looks first for the protobuf with CONFIG, see https://github.com/gazebosim/gz-cmake/blob/d618dd70c0862d8e6c9ee9aa6d776bc30bf2f19c/cmake/FindGzProtobuf.cmake#L29 . However, that is failing (and hence falling back to the FindProtobuf cmake script) with error:

CMake Error at /home/traversaro/mambaforge/envs/gzmsgsdev/share/cmake/gz-cmake3/cmake3/FindGzProtobuf.cmake:29 (find_package):
  Could not find a configuration file for package "Protobuf" that is
  compatible with requested version "3".

  The following configuration files were considered but not accepted:

    /home/traversaro/mambaforge/envs/gzmsgsdev/lib/cmake/protobuf/protobuf-config.cmake, version: 23.2.0

Call Stack (most recent call first):
  /home/traversaro/mambaforge/envs/gzmsgsdev/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package)
  CMakeLists.txt:86 (gz_find_package)

The reason is https://github.com/gazebosim/gz-msgs/blob/460d563c6437731e3c89df2342228a1889390902/CMakeLists.txt#L85 . Basically we pass 3 as required protobuf version. The related commits are from 5/6 years ago:

As the only Ubuntu distribution with protobuf 2 is Ubuntu 16.04 (in EOL since a long time ago), I guess we can just drop the requirement.

@traversaro
Copy link
Contributor

Cross-compilation is now failing on osx-arm64:

[7/441] Running protoc on /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/proto/gz/msgs/air_speed_sensor.proto
FAILED: include/gz/msgs/air_speed_sensor.pb.h include/gz/msgs/details/air_speed_sensor.pb.h include/ignition/msgs/air_speed_sensor.pb.h include/gz/msgs/air_speed_sensor.pb.cc ruby/gz/msgs/air_speed_sensor_pb.rb /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/include/gz/msgs/air_speed_sensor.pb.h /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/include/gz/msgs/details/air_speed_sensor.pb.h /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/include/ignition/msgs/air_speed_sensor.pb.h /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/include/gz/msgs/air_speed_sensor.pb.cc /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/ruby/gz/msgs/air_speed_sensor_pb.rb 
cd /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work && /Library/Frameworks/Python.framework/Versions/Current/bin/python3.11 tools/gz_msgs_generate.py --protoc-exec /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/protoc-23.2.0 --gz-generator-bin /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/_build_env/bin/gz_msgs_gen --proto-path /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/proto --input-path /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/proto/gz/msgs/air_speed_sensor.proto --generate-ignition --generate-cpp --output-cpp-path /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/include --generate-ruby --output-ruby-path /Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/build/ruby
Traceback (most recent call last):
  File "/Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/tools/gz_msgs_generate.py", line 150, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/work/tools/gz_msgs_generate.py", line 79, in main
    subprocess.check_call(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1917, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 86] Bad CPU type in executable: '/Users/runner/miniforge3/conda-bld/gz-msgs9_1685102300604/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/protoc-23.2.0'

@traversaro
Copy link
Contributor

Cross-compilation is now failing on osx-arm64:

From what I understand, the trick of passing the Protobuf_PROTOC_EXECUTABLE variable does not work anymore, either because it never worked with find_package(Protobuf CONFIG) or because something changed in recent releases in the protobuf-config.cmake file, I am not sure.

@traversaro
Copy link
Contributor

because something changed in recent releases in the protobuf-config.cmake file

I think the latter is the case, see:

@traversaro
Copy link
Contributor

Superseded by #10 .

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

Successfully merging this pull request may close these issues.

None yet

2 participants