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] c-ares/1.18.1: cross-build failures on mac #13251

Open
vvarma opened this issue Oct 1, 2022 · 3 comments
Open

[package] c-ares/1.18.1: cross-build failures on mac #13251

vvarma opened this issue Oct 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@vvarma
Copy link
Contributor

vvarma commented Oct 1, 2022

Description

Please don't forget to update the issue title.

Missing profile or a short log will make extremely difficult to investigate your case or provide any help,
please, include all applicable information with details to help us reproduce your problem.

When cross compiling c-ares to arm on my mac i get the following error:

c-ares/1.18.1: Calling package()
c-ares/1.18.1: Copied 1 '.md' file: LICENSE.md
c-ares/1.18.1: CMake command: cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"
-- Install configuration: "Release"
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-targets.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-targets-release.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-config.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-config-version.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/pkgconfig/libcares.pc
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_version.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_build.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_rules.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_dns.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_nameser.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/libcares.a
CMake Error at src/tools/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release/src/tools/CMakeFiles/CMakeRelink.dir/ahost":
  No such file or directory.
Call Stack (most recent call first):
  src/cmake_install.cmake:48 (include)
  cmake_install.cmake:78 (include)


ERROR: c-ares/1.18.1: Error in package() method, line 76
        cmake.install()
        ConanException: Error 1 while executing cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"
(conan) ➜  work conan install c-ares/1.18.1@ --build --profile:host armhf --profile:build default > /tmp/c-ares/log
zsh: no such file or directory: /tmp/c-ares/log
(conan) ➜  work conan install c-ares/1.18.1@ --build --profile:host armhf --profile:build default > /tmp/c-ares.log
CMake Error at src/tools/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release/src/tools/CMakeFiles/CMakeRelink.dir/ahost":
  No such file or directory.
Call Stack (most recent call first):
  src/cmake_install.cmake:48 (include)
  cmake_install.cmake:78 (include)


ERROR: c-ares/1.18.1: Error in package() method, line 76
        cmake.install()
        ConanException: Error 1 while executing cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"

Based on what was changed in this commit that originally addressed cross-building on mac and this thread on a similar issue, i think the issue is related to rpaths.

Potential fix here

Package and Environment Details

  • Package Name/Version: c-ares/1.18.1
  • Operating System+version: macOS 12.5
  • Compiler+version: GCC 12.2.0
  • Arm Compiler+version: GCC 10.3.0
  • Docker image: NA
  • Conan version: conan 1.52.0
  • Python version: Python 3.9.1

Conan profile

default profile:

[settings]
os=Macos
os_build=Macos
arch=armv8
arch_build=armv8
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
[options]
[conf]
[build_requires]
[env]
CC=/opt/homebrew/bin/gcc-12
CXX=/opt/homebrew/bin/g++-12
CMAKE_C_COMPILER=/opt/homebrew/bin/gcc-12
CMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-12

armhf:

Configuration for profile armhf:

[settings]
os=Linux
arch=armv7
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]
CC=armv7-unknown-linux-gnueabihf-gcc
CXX=armv7-unknown-linux-gnueabihf-g++
CMAKE_C_COMPILER=armv7-unknown-linux-gnueabihf-gcc
CMAKE_CXX_COMPILER=armv7-unknown-linux-gnueabihf-g++
STRIP=armv7-unknown-linux-gnueabihf-strip
RANLIB=armv7-unknown-linux-gnueabihf-ranlib
AS=armv7-unknown-linux-gnueabihf-as
AR=armv7-unknown-linux-gnueabihf-ar
LD=armv7-unknown-linux-gnueabihf-ld
FC=armv7-unknown-linux-gnueabihf-gfortran-6
CONAN_CMAKE_SYSTEM_PROCESSOR=arm
CMAKE_SYSTEM_PROCESSOR=arm

Steps to reproduce

conan install c-ares/1.18.1@ --build --profile:host armhf --profile:build default

Logs

Click to expand log
Configuration (profile_host):
[settings]
arch=armv7
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=10
os=Linux
[options]
[build_requires]
[env]
AR=armv7-unknown-linux-gnueabihf-ar
AS=armv7-unknown-linux-gnueabihf-as
CC=armv7-unknown-linux-gnueabihf-gcc
CMAKE_CXX_COMPILER=armv7-unknown-linux-gnueabihf-g++
CMAKE_C_COMPILER=armv7-unknown-linux-gnueabihf-gcc
CMAKE_SYSTEM_PROCESSOR=arm
CONAN_CMAKE_SYSTEM_PROCESSOR=arm
CXX=armv7-unknown-linux-gnueabihf-g++
FC=armv7-unknown-linux-gnueabihf-gfortran-6
LD=armv7-unknown-linux-gnueabihf-ld
RANLIB=armv7-unknown-linux-gnueabihf-ranlib
STRIP=armv7-unknown-linux-gnueabihf-strip
Configuration (profile_build):
[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
os=Macos
os_build=Macos
[options]
[build_requires]
[env]
CC=/opt/homebrew/bin/gcc-12
CMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-12
CMAKE_C_COMPILER=/opt/homebrew/bin/gcc-12
CXX=/opt/homebrew/bin/g++-12
c-ares/1.18.1: Not found in local cache, looking in remotes...
c-ares/1.18.1: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [4.31k]
Downloading conan_export.tgz completed [0.25k]
Decompressing conan_export.tgz completed [0.00k]
c-ares/1.18.1: Downloaded recipe revision 0
c-ares/1.18.1: Forced build from source
Installing package: c-ares/1.18.1
Requirements
    c-ares/1.18.1 from 'conancenter' - Downloaded
Packages
    c-ares/1.18.1:2091615c0a3aac96a800d7728cd62ef397c449d3 - Build

Cross-build from 'Macos:armv8' to 'Linux:armv7'
Installing (downloading, building) binaries...
[HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
c-ares/1.18.1: Configuring sources in /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/source/src
Downloading c-ares-1.18.1.tar.gz completed [1523.60k]                                    c-ares/1.18.1: res/1.18.1:
c-ares/1.18.1:
[HOOK - conan-center.py] post_source(): [LIBCXX MANAGEMENT (KB-H011)] OK
[HOOK - conan-center.py] post_source(): [CPPSTD MANAGEMENT (KB-H022)] OK
c-ares/1.18.1: Copying sources to build folder
c-ares/1.18.1: Building your package in /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3
c-ares/1.18.1: Generator txt created conanbuildinfo.txt
c-ares/1.18.1: Calling generate()
c-ares/1.18.1: Aggregating env generators
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK. 'fPIC' option found and apparently well managed
[HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
c-ares/1.18.1: Calling build()
c-ares/1.18.1: apply_conandata_patches(): No patches defined in conandata
c-ares/1.18.1: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/src"
-- Using Conan toolchain: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/bin/armv7-unknown-linux-gnueabihf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for res_servicename
-- Looking for res_servicename - not found
-- Looking for res_servicename in resolv
-- Looking for res_servicename in resolv - not found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for socket
-- Looking for socket - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file sys/sockio.h
-- Looking for include file sys/sockio.h - not found
-- Looking for include file arpa/inet.h
-- Looking for include file arpa/inet.h - found
-- Looking for include file arpa/nameser_compat.h
-- Looking for include file arpa/nameser_compat.h - found
-- Looking for include file arpa/nameser.h
-- Looking for include file arpa/nameser.h - found
-- Looking for include file assert.h
-- Looking for include file assert.h - found
-- Looking for include file errno.h
-- Looking for include file errno.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file netdb.h
-- Looking for include file netdb.h - found
-- Looking for include file netinet/in.h
-- Looking for include file netinet/in.h - found
-- Looking for include file net/if.h
-- Looking for include file net/if.h - found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file socket.h
-- Looking for include file socket.h - not found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file stropts.h
-- Looking for include file stropts.h - found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/uio.h
-- Looking for include file sys/uio.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include files sys/types.h, netinet/tcp.h
-- Looking for include files sys/types.h, netinet/tcp.h - found
-- Performing Test HAVE_SOCKLEN_T
-- Performing Test HAVE_SOCKLEN_T - Success
-- Performing Test HAVE_TYPE_SOCKET
-- Performing Test HAVE_TYPE_SOCKET - Failed
-- Performing Test HAVE_BOOL_T
-- Performing Test HAVE_BOOL_T - Success
-- Performing Test HAVE_SSIZE_T
-- Performing Test HAVE_SSIZE_T - Success
-- Performing Test HAVE_LONGLONG
-- Performing Test HAVE_LONGLONG - Success
-- Performing Test HAVE_SIG_ATOMIC_T
-- Performing Test HAVE_SIG_ATOMIC_T - Success
-- Performing Test HAVE_STRUCT_ADDRINFO
-- Performing Test HAVE_STRUCT_ADDRINFO - Success
-- Performing Test HAVE_STRUCT_IN6_ADDR
-- Performing Test HAVE_STRUCT_IN6_ADDR - Success
-- Performing Test HAVE_STRUCT_SOCKADDR_IN6
-- Performing Test HAVE_STRUCT_SOCKADDR_IN6 - Success
-- Performing Test HAVE_STRUCT_SOCKADDR_STORAGE
-- Performing Test HAVE_STRUCT_SOCKADDR_STORAGE - Success
-- Performing Test HAVE_STRUCT_TIMEVAL
-- Performing Test HAVE_STRUCT_TIMEVAL - Success
-- Looking for AF_INET6
-- Looking for AF_INET6 - found
-- Looking for O_NONBLOCK
-- Looking for O_NONBLOCK - found
-- Looking for FIONBIO
-- Looking for FIONBIO - found
-- Looking for SIOCGIFADDR
-- Looking for SIOCGIFADDR - found
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for PF_INET6
-- Looking for PF_INET6 - found
-- Looking for SO_NONBLOCK
-- Looking for SO_NONBLOCK - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Performing Test HAVE_LL
-- Performing Test HAVE_LL - Success
-- Looking for bitncmp
-- Looking for bitncmp - not found
-- Looking for closesocket
-- Looking for closesocket - not found
-- Looking for CloseSocket
-- Looking for CloseSocket - not found
-- Looking for connect
-- Looking for connect - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for freeaddrinfo
-- Looking for freeaddrinfo - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for gethostbyaddr
-- Looking for gethostbyaddr - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for getservbyport_r
-- Looking for getservbyport_r - found
-- Looking for getservbyname_r
-- Looking for getservbyname_r - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for if_indextoname
-- Looking for if_indextoname - found
-- Looking for inet_net_pton
-- Looking for inet_net_pton - not found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for ioctl
-- Looking for ioctl - found
-- Looking for ioctlsocket
-- Looking for ioctlsocket - not found
-- Looking for IoctlSocket
-- Looking for IoctlSocket - not found
-- Looking for recv
-- Looking for recv - found
-- Looking for recvfrom
-- Looking for recvfrom - found
-- Looking for send
-- Looking for send - found
-- Looking for setsockopt
-- Looking for setsockopt - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strcmpi
-- Looking for strcmpi - not found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strncmpi
-- Looking for strncmpi - not found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for writev
-- Looking for writev - found
-- Looking for __system_property_get
-- Looking for __system_property_get - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release
c-ares/1.18.1: CMake command: cmake --build "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" '--' '-j8'
[  1%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__close_sockets.c.o
[  2%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__addrinfo2hostent.c.o
[  3%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__addrinfo_localhost.c.o
[  7%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__sortaddrinfo.c.o
[  7%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__get_hostent.c.o
[  7%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__parse_into_addrinfo.c.o
[  8%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__read_line.c.o
[ 10%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__readaddrinfo.c.o
[ 11%] Building C object src/lib/CMakeFiles/c-ares.dir/ares__timeval.c.o
[ 12%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_android.c.o
[ 14%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_cancel.c.o
[ 15%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_data.c.o
[ 16%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_destroy.c.o
[ 17%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_expand_name.c.o
[ 19%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_expand_string.c.o
[ 20%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_free_hostent.c.o
[ 21%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_free_string.c.o
[ 23%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_fds.c.o
[ 24%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_freeaddrinfo.c.o
[ 25%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_getaddrinfo.c.o
[ 26%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_getenv.c.o
[ 28%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_gethostbyaddr.c.o
[ 29%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_getnameinfo.c.o
[ 30%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_gethostbyname.c.o
[ 32%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_getsock.c.o
[ 33%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_init.c.o
[ 34%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_library_init.c.o
[ 35%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_llist.c.o
[ 37%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_mkquery.c.o
[ 39%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_create_query.c.o
[ 39%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_nowarn.c.o
[ 41%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_options.c.o
[ 42%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_a_reply.c.o
[ 43%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_aaaa_reply.c.o
[ 44%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_caa_reply.c.o
[ 46%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_mx_reply.c.o
[ 47%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_naptr_reply.c.o
[ 48%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_ns_reply.c.o
[ 50%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_ptr_reply.c.o
[ 52%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_srv_reply.c.o
[ 52%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_soa_reply.c.o
[ 53%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_txt_reply.c.o
[ 55%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_parse_uri_reply.c.o
[ 56%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_platform.c.o
[ 57%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_process.c.o
[ 58%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_query.c.o
[ 60%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_search.c.o
[ 61%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_send.c.o
[ 62%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_strcasecmp.c.o
[ 64%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_strdup.c.o
[ 65%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_strerror.c.o
[ 66%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_strsplit.c.o
[ 67%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_timeout.c.o
[ 69%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_version.c.o
[ 70%] Building C object src/lib/CMakeFiles/c-ares.dir/ares_writev.c.o
[ 71%] Building C object src/lib/CMakeFiles/c-ares.dir/inet_net_pton.c.o
[ 73%] Building C object src/lib/CMakeFiles/c-ares.dir/bitncmp.c.o
[ 74%] Building C object src/lib/CMakeFiles/c-ares.dir/inet_ntop.c.o
[ 75%] Building C object src/lib/CMakeFiles/c-ares.dir/windows_port.c.o
[ 76%] Linking C static library ../../lib/libcares.a
[ 76%] Built target c-ares
[ 78%] Building C object src/tools/CMakeFiles/acountry.dir/ares_getopt.c.o
[ 79%] Building C object src/tools/CMakeFiles/adig.dir/adig.c.o
[ 80%] Building C object src/tools/CMakeFiles/acountry.dir/acountry.c.o
[ 82%] Building C object src/tools/CMakeFiles/ahost.dir/ahost.c.o
[ 83%] Building C object src/tools/CMakeFiles/acountry.dir/__/lib/ares_nowarn.c.o
[ 85%] Building C object src/tools/CMakeFiles/adig.dir/ares_getopt.c.o
[ 85%] Building C object src/tools/CMakeFiles/ahost.dir/ares_getopt.c.o
[ 87%] Building C object src/tools/CMakeFiles/adig.dir/__/lib/ares_nowarn.c.o
[ 88%] Building C object src/tools/CMakeFiles/adig.dir/__/lib/ares_strcasecmp.c.o
[ 89%] Building C object src/tools/CMakeFiles/ahost.dir/__/lib/ares_nowarn.c.o
[ 91%] Building C object src/tools/CMakeFiles/acountry.dir/__/lib/ares_strcasecmp.c.o
[ 92%] Building C object src/tools/CMakeFiles/ahost.dir/__/lib/ares_strcasecmp.c.o
[ 93%] Linking C executable ../../bin/acountry
[ 94%] Linking C executable ../../bin/ahost
[ 96%] Built target acountry
[ 97%] Built target ahost
[ 98%] Linking C executable ../../bin/adig
[100%] Built target adig
c-ares/1.18.1: Package '2091615c0a3aac96a800d7728cd62ef397c449d3' built
c-ares/1.18.1: Build folder /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release
c-ares/1.18.1: Generated conaninfo.txt
c-ares/1.18.1: Generated conanbuildinfo.txt
c-ares/1.18.1: Generating the package
c-ares/1.18.1: Package folder /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3
c-ares/1.18.1: Calling package()
c-ares/1.18.1: Copied 1 '.md' file: LICENSE.md
c-ares/1.18.1: CMake command: cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"
-- Install configuration: "Release"
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-targets.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-targets-release.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-config.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/cmake/c-ares/c-ares-config-version.cmake
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/pkgconfig/libcares.pc
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_version.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_build.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_rules.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_dns.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/include/ares_nameser.h
-- Installing: /Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3/lib/libcares.a
CMake Error at src/tools/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release/src/tools/CMakeFiles/CMakeRelink.dir/ahost":
  No such file or directory.
Call Stack (most recent call first):
  src/cmake_install.cmake:48 (include)
  cmake_install.cmake:78 (include)


ERROR: c-ares/1.18.1: Error in package() method, line 76
        cmake.install()
        ConanException: Error 1 while executing cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"
(conan) ➜  work conan install c-ares/1.18.1@ --build --profile:host armhf --profile:build default > /tmp/c-ares/log
zsh: no such file or directory: /tmp/c-ares/log
(conan) ➜  work conan install c-ares/1.18.1@ --build --profile:host armhf --profile:build default > /tmp/c-ares.log
CMake Error at src/tools/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release/src/tools/CMakeFiles/CMakeRelink.dir/ahost":
  No such file or directory.
Call Stack (most recent call first):
  src/cmake_install.cmake:48 (include)
  cmake_install.cmake:78 (include)


ERROR: c-ares/1.18.1: Error in package() method, line 76
        cmake.install()
        ConanException: Error 1 while executing cmake --install "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/build/2091615c0a3aac96a800d7728cd62ef397c449d3/build/Release" --prefix "/Users/vinayvarma/.conan/data/c-ares/1.18.1/_/_/package/2091615c0a3aac96a800d7728cd62ef397c449d3"

@uilianries
Copy link
Member

@vvarma Where did you get your GCC copy? Which exactly commands did you use to install? Which exactly version of GCC are you running (including minor and patch)?

@vvarma
Copy link
Contributor Author

vvarma commented Oct 26, 2022

gcc and armv7-unknown-linux-gnueabihf-gcc are both obtained using brew. Attaching the info below:

> brew info gcc@11
==> gcc@11: stable 11.3.0 (bottled)
GNU compiler collection
https://gcc.gnu.org/
/opt/homebrew/Cellar/gcc@11/11.3.0 (1,402 files, 246.7MB) *
  Poured from bottle on 2022-10-04 at 15:14:24
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc@11.rb
License: GPL-3.0-or-later with GCC-exception-3.1
==> Dependencies
Required: gmp ✔, isl ✔, libmpc ✔, mpfr ✔, zstd ✔
==> Analytics
install: 2,337 (30 days), 5,762 (90 days), 5,762 (365 days)
install-on-request: 2,317 (30 days), 5,704 (90 days), 5,704 (365 days)
build-error: 41 (30 days)


> gcc --version
gcc-11 (Homebrew GCC 11.3.0) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and

 > brew info armv7-unknown-linux-gnueabihf
==> messense/macos-cross-toolchains/armv7-unknown-linux-gnueabihf: stable 11.2.0
armv7 Linux GNU eabihf Toolchain
https://github.com/messense/homebrew-macos-cross-toolchains
/opt/homebrew/Cellar/armv7-unknown-linux-gnueabihf/10.3.0 (3,843 files, 308.5MB) *
  Built from source on 2021-08-14 at 16:28:48
From: https://github.com/messense/homebrew-macos-cross-toolchains/blob/HEAD/armv7-unknown-linux-gnueabihf.rb
License: GPL-3.0-or-later with GCC-exception-3.1
==> Dependencies
Required: bdw-gc ✔, guile ✔, zstd ✔, python@3.10 ✔

> armv7-unknown-linux-gnueabihf-gcc --version
armv7-unknown-linux-gnueabihf-gcc (GCC) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@uilianries
Copy link
Member

@vvarma Thank you for the info!

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

Successfully merging a pull request may close this issue.

2 participants