You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I wanted to use overlay-triplets to compile the software needed for openwrt across platforms, but there was an error when I specified it as a mips platform
Environment
OS: [linux cross build]
Compiler:
Host Compiler: gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
Cross Compiler:
Target: mipsel-openwrt-linux-musl
Thread model: posix
gcc version 8.4.0 (OpenWrt GCC 8.4.0 unknown)
To Reproduce
Steps to reproduce the behavior:
1.
vcpkg --overlay-triplets=/root/workspace/triplets --feature-flags="-manifests" install nng --triplet=mips-linux-openwrt
2. See error
Computing installation plan...
The following packages will be built and installed:
nng[core]:mips-linux-openwrt
Failure to read file for hashing: No such file or directory
This discussion was converted from issue #14268 on May 12, 2021 08:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the bug
I wanted to use overlay-triplets to compile the software needed for openwrt across platforms, but there was an error when I specified it as a mips platform
Environment
Host Compiler: gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
Cross Compiler:
Target: mipsel-openwrt-linux-musl
Thread model: posix
gcc version 8.4.0 (OpenWrt GCC 8.4.0 unknown)
To Reproduce
Steps to reproduce the behavior:
1.
vcpkg --overlay-triplets=/root/workspace/triplets --feature-flags="-manifests" install nng --triplet=mips-linux-openwrt
2. See error
Computing installation plan...
The following packages will be built and installed:
nng[core]:mips-linux-openwrt
Failure to read file for hashing: No such file or directory
Custom triplets
arm-linux.cmake mips-linux-openwrt.cmake
mips-linux-openwrt.cmake file info
set(VCPKG_TARGET_ARCHITECTURE mispel)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR)
execute_process(COMMAND "uname" "-m" OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ../toolchain/openwrt.cmake)
openwrt.cmake info:
if(NOT _VCPKG_LINUX_TOOLCHAIN)
set(_VCPKG_LINUX_TOOLCHAIN 1)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_CROSSCOMPILING ON CACHE BOOL "")
endif()
set(CMAKE_SYSTEM_NAME Linux CACHE STRING "")
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(CMAKE_SYSTEM_PROCESSOR x86_64 CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(CMAKE_SYSTEM_PROCESSOR x86 CACHE STRING "")
string(APPEND VCPKG_C_FLAGS " -m32")
string(APPEND VCPKG_CXX_FLAGS " -m32")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
set(CMAKE_SYSTEM_PROCESSOR armv7l CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
set(CMAKE_SYSTEM_PROCESSOR aarch64 CACHE STRING "")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "mipsel")
set(CMAKE_SYSTEM_PROCESSOR mipsel CACHE STRING "")
endif()
get_property( _CMAKE_IN_TRY_COMPILE GLOBAL PROPERTY IN_TRY_COMPILE )
if(NOT _CMAKE_IN_TRY_COMPILE)
string(APPEND CMAKE_C_FLAGS_INIT " -fPIC ${VCPKG_C_FLAGS} ")
string(APPEND CMAKE_CXX_FLAGS_INIT " -fPIC ${VCPKG_CXX_FLAGS} ")
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ${VCPKG_C_FLAGS_DEBUG} ")
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " ${VCPKG_CXX_FLAGS_DEBUG} ")
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ${VCPKG_C_FLAGS_RELEASE} ")
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " ${VCPKG_CXX_FLAGS_RELEASE} ")
endif()
endif()
Beta Was this translation helpful? Give feedback.
All reactions