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

[python3] Build fails in Manifest mode using overlay triplets #29447

Closed
srisham opened this issue Feb 4, 2023 · 8 comments · May be fixed by #31621
Closed

[python3] Build fails in Manifest mode using overlay triplets #29447

srisham opened this issue Feb 4, 2023 · 8 comments · May be fixed by #31621
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. Stale

Comments

@srisham
Copy link

srisham commented Feb 4, 2023

Package: python3[core]:arm92-buildroot-linux-dynamic -> 3.10.7#5

Host Environment

  • Host: x64-linux
  • Compiler: GNU 9.2.0
  • vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
    vcpkg-scripts version: 0ba60bf 2023-02-03 (10 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Using cached python-cpython-v3.10.7.tar.gz.
-- Extracting source /data/sasr/pkg_manager/vcpkg/downloads/python-cpython-v3.10.7.tar.gz
-- Applying patch 0001-only-build-required-projects.patch
-- Applying patch 0003-use-vcpkg-zlib.patch
-- Applying patch 0004-devendor-external-dependencies.patch
-- Applying patch 0005-dont-copy-vcruntime.patch
-- Applying patch 0008-python.pc.patch
-- Applying patch 0009-bz2d.patch
-- Applying patch 0010-dont-skip-rpath.patch
-- Applying patch 0012-force-disable-curses.patch
-- Applying patch 0013-configure-no-libcrypt.patch
-- Applying patch 0011-gcc-ldflags-fix.patch
-- Using source at /data/sasr/pkg_manager/vcpkg/buildtrees/python3/src/v3.10.7-236b3285a0.clean
-- Getting CMake variables for arm92-buildroot-linux-dynamic-dbg
-- Getting CMake variables for arm92-buildroot-linux-dynamic-rel
-- Configuring arm92-buildroot-linux-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/bash -c "V=1 ./../src/v3.10.7-236b3285a0.clean/configure  \"--with-openssl=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic\" \"--without-ensurepip\" \"--with-suffix=\" \"--with-system-expat\" \"--without-readline\" \"--disable-test-modules\" \"--disable-silent-rules\" \"--verbose\" \"--enable-shared\" \"--disable-static\" \"--with-pydebug\" \"--prefix=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug\" \"--bindir=\\${prefix}/../tools/python3/debug/bin\" \"--sbindir=\\${prefix}/../tools/python3/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/python3\""
    Working Directory: /data/sasr/pkg_manager/vcpkg/buildtrees/python3/arm92-buildroot-linux-dynamic-dbg
    Error code: 1
    See logs for more information:
      /data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-config.log
      /data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-out.log
      /data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:811 (vcpkg_execute_required_process)
  ports/python3/portfile.cmake:233 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)



/data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by python configure 3.10, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./../src/v3.10.7-236b3285a0.clean/configure --with-openssl=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic --without-ensurepip --with-suffix= --with-system-expat --without-readline --disable-test-modules --disable-silent-rules --verbose --enable-shared --disable-static --with-pydebug --prefix=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug --bindir=${prefix}/../tools/python3/debug/bin --sbindir=${prefix}/../tools/python3/debug/sbin --libdir=${prefix}/lib --includedir=${prefix}/../include --datarootdir=${prefix}/share/python3

## --------- ##
## Platform. ##
## --------- ##

hostname = UIRSCSRPBULDW2V
uname -m = x86_64
uname -r = 5.15.0-52-generic
uname -s = Linux
uname -v = #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/sasr/Fortify/Fortify_SCA_and_Apps_22.1.1/bin
PATH: /home/sasr/Fortify/Fortify_SCA_and_Apps_22.1.1/bin
PATH: /home/sasr/Fortify/Fortify_SCA_and_Apps_22.1.1/bin
PATH: /home/sasr/Fortify/Fortify_SCA_and_Apps_22.1.1/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin
PATH: /data/sasr/pkg_manager/vcpkg/downloads/tools/ninja/1.10.2-linux
PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2888: checking build system type
configure:2902: result: x86_64-pc-linux-gnu
configure:2922: checking host system type
configure:2935: result: x86_64-pc-linux-gnu
configure:2965: checking for python3.10
configure:2981: found /usr/bin/python3.10
configure:2992: result: python3.10
configure:3086: checking for --enable-universalsdk
configure:3133: result: no
configure:3157: checking for --with-universal-archs
configure:3172: result: no
configure:3328: checking MACHDEP
configure:3379: result: "linux"
configure:3663: checking for gcc
configure:3690: result: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc
configure:3919: checking for C compiler version
configure:3928: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc --version >&5
arm-buildroot-linux-gnueabi-gcc.br_real (Buildroot 2019.11.1) 9.2.0
Copyright (C) 2019 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.

configure:3939: $? = 0
configure:3928: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc.br_real
COLLECT_LTO_WRAPPER=/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/../libexec/gcc/arm-buildroot-linux-gnueabi/9.2.0/lto-wrapper
Target: arm-buildroot-linux-gnueabi
Configured with: ./configure --prefix=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32 --sysconfdir=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/etc --enable-static --target=arm-buildroot-linux-gnueabi --with-sysroot=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/arm-buildroot-linux-gnueabi/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32 --with-mpc=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32 --with-mpfr=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32 --with-pkgversion='Buildroot 2019.11.1' --with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath --enable-tls --enable-threads --with-isl=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32 --with-float=soft --with-abi=aapcs-linux --with-cpu=cortex-a9 --with-float=soft --with-mode=arm --enable-languages=c,c++ --with-build-time-tools=/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/arm-buildroot-linux-gnueabi/bin --enable-shared --disable-libgomp
Thread model: posix
gcc version 9.2.0 (Buildroot 2019.11.1) 
configure:3939: $? = 0
configure:3928: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -V >&5
arm-buildroot-linux-gnueabi-gcc.br_real: error: unrecognized command line option '-V'
arm-buildroot-linux-gnueabi-gcc.br_real: fatal error: no input files
compilation terminated.
configure:3939: $? = 1
configure:3928: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -qversion >&5
arm-buildroot-linux-gnueabi-gcc.br_real: error: unrecognized command line option '-qversion'; did you mean '--version'?
arm-buildroot-linux-gnueabi-gcc.br_real: fatal error: no input files
compilation terminated.
configure:3939: $? = 1
configure:3959: checking whether the C compiler works
configure:3981: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -g  -L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib conftest.c  >&5
configure:3985: $? = 0
configure:4033: result: yes
configure:4036: checking for C compiler default output file name
configure:4038: result: a.out
configure:4044: checking for suffix of executables
configure:4051: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -o conftest -g  -L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib conftest.c  >&5
configure:4055: $? = 0
configure:4077: result: 
configure:4099: checking whether we are cross compiling
configure:4107: /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc -o conftest -g  -L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib conftest.c  >&5
configure:4111: $? = 0
configure:4118: ./conftest
./../src/v3.10.7-236b3285a0.clean/configure: line 4120: ./conftest: cannot execute binary file: Exec format error
configure:4122: $? = 126
configure:4129: error: in `/data/sasr/pkg_manager/vcpkg/buildtrees/python3/arm92-buildroot-linux-dynamic-dbg':
configure:4131: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-g
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MACHDEP_set=
ac_cv_env_MACHDEP_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib/pkgconfig/:/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/share/pkgconfig/
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=/bin/pkg-config
ac_cv_env_PROFILE_TASK_set=
ac_cv_env_PROFILE_TASK_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_prog_PYTHON_FOR_REGEN=python3.10
ac_cv_prog_ac_ct_CC=/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABIFLAGS=''
ALT_SOABI=''
AR='/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-ar'
ARCH_RUN_32BIT=''
ARFLAGS=''
BASECFLAGS=''
BASECPPFLAGS='-IObjects -IInclude -IPython'
BINLIBDEST=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC='/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc'
CCSHARED=''
CFLAGS='-g'
CFLAGSFORSHARED=''
CFLAGS_ALIASING=''
CFLAGS_NODIST=''
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
CONFIG_ARGS=' '\''--with-openssl=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic'\'' '\''--without-ensurepip'\'' '\''--with-suffix='\'' '\''--with-system-expat'\'' '\''--without-readline'\'' '\''--disable-test-modules'\'' '\''--disable-silent-rules'\'' '\''--verbose'\'' '\''--enable-shared'\'' '\''--disable-static'\'' '\''--with-pydebug'\'' '\''--prefix=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug'\'' '\''--bindir=${prefix}/../tools/python3/debug/bin'\'' '\''--sbindir=${prefix}/../tools/python3/debug/sbin'\'' '\''--libdir=${prefix}/lib'\'' '\''--includedir=${prefix}/../include'\'' '\''--datarootdir=${prefix}/share/python3'\'' '\''CC=/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc'\'' '\''CFLAGS=-g'\'' '\''LDFLAGS=-L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib'\'' '\''PKG_CONFIG=/bin/pkg-config'\'' '\''PKG_CONFIG_PATH=/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib/pkgconfig/:/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/share/pkgconfig/'\'''
CPP=''
CPPFLAGS=''
CXX='/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-g++'
DEFS=''
DEF_MAKE_ALL_RULE=''
DEF_MAKE_RULE=''
DFLAGS=''
DLINCLDIR=''
DLLLIBRARY=''
DTRACE=''
DTRACE_HEADERS=''
DTRACE_OBJS=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENSUREPIP=''
EXEEXT=''
EXPORTSFROM=''
EXPORTSYMS=''
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
EXT_SUFFIX=''
FRAMEWORKALTINSTALLFIRST=''
FRAMEWORKALTINSTALLLAST=''
FRAMEWORKINSTALLAPPSPREFIX=''
FRAMEWORKINSTALLFIRST=''
FRAMEWORKINSTALLLAST=''
FRAMEWORKPYTHONW=''
FRAMEWORKUNIXTOOLSPREFIX='/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug'
GITBRANCH=''
GITTAG=''
GITVERSION=''
GNULD=''
GREP=''
HAS_GIT='no-repository'
HAVE_GETHOSTBYNAME=''
HAVE_GETHOSTBYNAME_R=''
HAVE_GETHOSTBYNAME_R_3_ARG=''
HAVE_GETHOSTBYNAME_R_5_ARG=''
HAVE_GETHOSTBYNAME_R_6_ARG=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTSONAME=''
LDCXXSHARED=''
LDFLAGS='-L/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib'
LDFLAGS_NODIST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LDVERSION=''
LIBC=''
LIBFFI_INCLUDEDIR=''
LIBM=''
LIBOBJS=''
LIBPL=''
LIBPYTHON=''
LIBRARY=''
LIBRARY_DEPS=''
LIBS=''
LIBTOOL_CRUFT=''
LINKCC=''
LINKFORSHARED=''
LIPO_32BIT_FLAGS=''
LIPO_INTEL64_FLAGS=''
LLVM_AR=''
LLVM_AR_FOUND=''
LLVM_PROFDATA=''
LLVM_PROF_ERR=''
LLVM_PROF_FILE=''
LLVM_PROF_FOUND=''
LLVM_PROF_MERGER=''
LN=''
LTLIBOBJS=''
MACHDEP='linux'
MACHDEP_OBJS=''
MAINCC=''
MKDIR_P=''
MULTIARCH=''
MULTIARCH_CPPFLAGS=''
NO_AS_NEEDED=''
OBJEXT=''
OPENSSL_INCLUDES=''
OPENSSL_LDFLAGS=''
OPENSSL_LIBS=''
OPENSSL_RPATH=''
OPT=''
OTHER_LIBTOOL_OPT=''
PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/'
PACKAGE_NAME='python'
PACKAGE_STRING='python 3.10'
PACKAGE_TARNAME='python'
PACKAGE_URL=''
PACKAGE_VERSION='3.10'
PATH_SEPARATOR=':'
PGO_PROF_GEN_FLAG=''
PGO_PROF_USE_FLAG=''
PKG_CONFIG='/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/lib/pkgconfig/:/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug/share/pkgconfig/'
PLATFORM_TRIPLET=''
PLATLIBDIR=''
PROFILE_TASK=''
PY3LIBRARY=''
PYTHONFRAMEWORK=''
PYTHONFRAMEWORKDIR='no-framework'
PYTHONFRAMEWORKIDENTIFIER='org.python.python'
PYTHONFRAMEWORKINSTALLDIR=''
PYTHONFRAMEWORKPREFIX=''
PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
PYTHON_FOR_REGEN='python3.10'
PY_ENABLE_SHARED=''
READELF=''
RUNSHARED=''
SED=''
SHELL='/bin/bash'
SHLIBS=''
SHLIB_SUFFIX=''
SOABI=''
SOVERSION='1.0'
SRCDIRS=''
STATIC_LIBPYTHON=''
TCLTK_INCLUDES=''
TCLTK_LIBS=''
TEST_MODULES=''
THREADHEADERS=''
TRUE=''
TZPATH=''
UNIVERSALSDK=''
UNIVERSAL_ARCH_FLAGS=''
VERSION='3.10'
WHEEL_PKG_DIR=''
_PYTHON_HOST_PLATFORM=''
ac_ct_AR=''
ac_ct_CC='/opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc'
ac_ct_CXX=''
ac_ct_READELF=''
bindir='${prefix}/../tools/python3/debug/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share/python3'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/../include'
infodir='${datarootdir}/info'
libdir='${prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/data/sasr/gitstash/crsp-sdk-dependencies/vcpkg/bhrx/build/vcpkg_installed/arm92-buildroot-linux-dynamic/debug'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${prefix}/../tools/python3/debug/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define __BSD_VISIBLE 1
#define _DARWIN_C_SOURCE 1
#define _PYTHONFRAMEWORK ""
#define _XOPEN_SOURCE 700
#define _XOPEN_SOURCE_EXTENDED 1
#define _POSIX_C_SOURCE 200809L

configure: exit 1
/data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-out.log
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.10... python3.10
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "linux"
checking for gcc... /opt/toolchain/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/bin/arm-buildroot-linux-gnueabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... 
/data/sasr/pkg_manager/vcpkg/buildtrees/python3/config-arm92-buildroot-linux-dynamic-dbg-err.log
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-static
configure: error: in `/data/sasr/pkg_manager/vcpkg/buildtrees/python3/arm92-buildroot-linux-dynamic-dbg':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Additional context

vcpkg.json
{
  "name": "vzsdk-bhrx1-depends",
  "version-string": "1.0.0",
  "port-version": 0,
  "description": "BHRx1 third party dependencies",
  "dependencies": [
    "python3"
  ]
}

Additional context

Using Overlay triplets, tried cross-compiling Python3 for arm architecture and it failed with the above error.

@srisham srisham added the category:port-bug The issue is with a library, which is something the port should already support label Feb 4, 2023
@srisham
Copy link
Author

srisham commented Feb 4, 2023

Issue looks similar to the #27911

@Cheney-W Cheney-W self-assigned this Feb 6, 2023
@Osyotr
Copy link
Contributor

Osyotr commented Feb 6, 2023

How does your triplet look like?

@Cheney-W Cheney-W added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. and removed category:port-bug The issue is with a library, which is something the port should already support labels Feb 6, 2023
@Cheney-W Cheney-W removed their assignment Feb 6, 2023
@srisham
Copy link
Author

srisham commented Feb 8, 2023

Custom Triplet file that I used.

set(BHR1_TOOLCHAIN_DIR /data/vcpkg/ARMv7a)

set(VCPKG_TARGET_ARCHITECTURE arm)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)

set(VCPKG_CMAKE_SYSTEM_NAME Linux)
#set(VCPKG_BUILD_TYPE release)


#Path to custom triplets file location
set(VCPKG_OVERLAY_TRIPLETS ${BHR1_TOOLCHAIN_DIR})

#custom triplet file
set(VCPKG_TARGET_TRIPLET arm-buildroot-linux-gnueabi)

#toolchain file from vcpkg
include(/data/sasr/pkg_manager/vcpkg/scripts/buildsystems/vcpkg.cmake)

set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${BHR1_TOOLCHAIN_DIR}/toolchain.cmake)

@dg0yt
Copy link
Contributor

dg0yt commented Feb 8, 2023

You are mixing triplet file (for script mode) and toolchain file (for project mode).
https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/maintainer-guide.md#portfiles-are-run-in-script-mode

@JonLiu1993
Copy link
Member

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.

@JonLiu1993 JonLiu1993 closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2023
@dg0yt
Copy link
Contributor

dg0yt commented May 26, 2023

FTR, cross builds of python3 need more work. #31621 might fix this issue.

Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Nov 23, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@JonLiu1993 JonLiu1993 reopened this Dec 7, 2023
@github-actions github-actions bot removed the Stale label Dec 8, 2023
Copy link

github-actions bot commented Jun 5, 2024

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Jun 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants