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

[package] grpc-proto/cci.20220627: "list index out of range" on build #15647

Closed
EstebanDugueperoux2 opened this issue Feb 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@EstebanDugueperoux2
Copy link
Contributor

Description

Hi conan community,

Using https://github.com/EstebanDugueperoux2/grpc_server_example example, I try to cross compile my simple project using grpc and protobuf.
It works fine without cross compilation but failed with following message in cross compilation:

grpc-proto/cci.20220627: Calling build()
grpc-proto/cci.20220627: 
grpc-proto/cci.20220627: ERROR: Package 'a7a777aaf7fbb80eead3cefb6f93d9f6a2e651b9' build failed
grpc-proto/cci.20220627: WARN: Build folder /home/conan/.conan/data/grpc-proto/cci.20220627/_/_/build/a7a777aaf7fbb80eead3cefb6f93d9f6a2e651b9
ERROR: grpc-proto/cci.20220627: Error in build() method, line 97
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 63
        cmake.definitions["GOOGLEAPIS_PROTO_DIRS"] = self.dependencies["googleapis"].cpp_info.resdirs[0].replace("\\", "/")
        IndexError: list index out of range

This seems occurs since recent commits on googleapis recipe (97721f5 or f4a5162)

@jcar87 @coryan are you are of that issue?

Regards.

Package and Environment Details

  • Package Name/Version: zlib/1.2.8
  • Operating System+version: Linux Ubuntu 18.04
  • Compiler+version: GCC 8
  • Docker image: conanio/gcc8
  • Conan version: conan 1.18.0
  • Python version: Python 3.7.4

Conan profile

toolchain=/usr/arm-linux-gnueabihf
target_host=arm-linux-gnueabihf
cc_compiler=gcc
cxx_compiler=g++

[settings]
os=Linux
arch=armv7hf
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++11
build_type=Release

[env]
CONAN_CMAKE_FIND_ROOT_PATH=$toolchain
CONAN_CMAKE_SYSROOT=$toolchain
CONAN_CMAKE_SYSTEM_NAME=Linux
CONAN_CMAKE_SYSTEM_PROCESSOR=armv7
CONAN_CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=Never

CHOST=$target_host
AR=$target_host-ar
AS=$target_host-as
CC=$target_host-$cc_compiler
CXX=$target_host-$cxx_compiler
LD=$target_host-ld
NM=$target_host-nm
OBJCOPY=$target_host-objcopy
OBJDUMP=$target_host-objdump
RANLIB=$target_host-ranlib
STRIP=$target_host-strip

Steps to reproduce

docker run --rm -ti -v ${PWD}:/home/conan/project conanio/gcc8-ubuntu18.04
sudo apt -y update && sudo apt install -y crossbuild-essential-armhf
cd project

conan create . --profile:build .conan/profiles/gcc8 --profile:host .conan/profiles/linux-armv7hf-gcc7 --build missing -s grpc_server_example:build_type=Debug

Logs

Click to expand log
grpc-proto/cci.20220627: Calling build()
grpc-proto/cci.20220627: 
grpc-proto/cci.20220627: ERROR: Package 'a7a777aaf7fbb80eead3cefb6f93d9f6a2e651b9' build failed
grpc-proto/cci.20220627: WARN: Build folder /home/conan/.conan/data/grpc-proto/cci.20220627/_/_/build/a7a777aaf7fbb80eead3cefb6f93d9f6a2e651b9
ERROR: grpc-proto/cci.20220627: Error in build() method, line 97
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 63
        cmake.definitions["GOOGLEAPIS_PROTO_DIRS"] = self.dependencies["googleapis"].cpp_info.resdirs[0].replace("\\", "/")
        IndexError: list index out of range
@EstebanDugueperoux2 EstebanDugueperoux2 added the bug Something isn't working label Feb 1, 2023
@SpaceIm
Copy link
Contributor

SpaceIm commented Feb 1, 2023

duplicate of #15599, it will be fixed soon by #15451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants