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 failure [python3]:x64-osx on arm64-osx #22603

Closed
autoantwort opened this issue Jan 17, 2022 · 14 comments
Closed

[python3] Build failure [python3]:x64-osx on arm64-osx #22603

autoantwort opened this issue Jan 17, 2022 · 14 comments
Assignees
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@autoantwort
Copy link
Contributor

Package: python3[core]:x64-osx -> 3.10.1#4
Host Environment

  • Host: arm64-osx
  • Compiler: AppleClang 13.0.0.13000029
  • vcpkg-tool version: 2999-12-31-unknownhash-debug
    vcpkg-scripts version: 4fff1e9 2022-01-17 (19 hours ago)

To Reproduce
vcpkg install

Failure logs

-- Using cached python-cpython-v3.10.1.tar.gz.
-- Cleaning sources at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/src/v3.10.1-8b5dfc5615.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/python-cpython-v3.10.1.tar.gz
-- Applying patch 0001-static-library.patch
-- Applying patch 0002-use-vcpkg-zlib.patch
-- Applying patch 0003-devendor-external-dependencies.patch
-- Applying patch 0004-dont-copy-vcruntime.patch
-- Applying patch 0005-only-build-required-projects.patch
-- Applying patch 0008-fix-parallel-install.patch
-- Using source at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/src/v3.10.1-8b5dfc5615.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-osx-dbg
-- Getting CMake variables for x64-osx-rel
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:157 (message):
    Command failed: /usr/bin/make V=1 -j 11 -f Makefile all
    Working Directory: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/x64-osx-dbg/
    See logs for more information:
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/build-x64-osx-dbg-out.log
      /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/build-x64-osx-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:187 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:26 (vcpkg_build_make)
  ports/python3/portfile.cmake:203 (vcpkg_install_make)
  scripts/ports.cmake:145 (include)



/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/build-x64-osx-dbg-out.log
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Programs/python.o ./../src/v3.10.1-8b5dfc5615.clean/Programs/python.c
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Parser/token.o ./../src/v3.10.1-8b5dfc5615.clean/Parser/token.c
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Parser/pegen.o ./../src/v3.10.1-8b5dfc5615.clean/Parser/pegen.c
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Parser/parser.o ./../src/v3.10.1-8b5dfc5615.clean/Parser/parser.c
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Parser/string_parser.o ./../src/v3.10.1-8b5dfc5615.clean/Parser/string_parser.c
...
Skipped 138 lines
...

gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -DPy_BUILD_CORE_BUILTIN -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -I./../src/v3.10.1-8b5dfc5615.clean/Modules/_io -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/_io/bytesio.c -o Modules/bytesio.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -DPy_BUILD_CORE_BUILTIN -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -I./../src/v3.10.1-8b5dfc5615.clean/Modules/_io -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/_io/bufferedio.c -o Modules/bufferedio.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -DPy_BUILD_CORE_BUILTIN -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -I./../src/v3.10.1-8b5dfc5615.clean/Modules/_io -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/_io/textio.c -o Modules/textio.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -DPy_BUILD_CORE_BUILTIN -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -I./../src/v3.10.1-8b5dfc5615.clean/Modules/_io -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/_io/stringio.c -o Modules/stringio.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/faulthandler.c -o Modules/faulthandler.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/_tracemalloc.c -o Modules/_tracemalloc.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/symtablemodule.c -o Modules/symtablemodule.o
gcc -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE_BUILTIN  -c ./../src/v3.10.1-8b5dfc5615.clean/Modules/xxsubtype.c -o Modules/xxsubtype.o
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Python/frozen.o ./../src/v3.10.1-8b5dfc5615.clean/Python/frozen.c
gcc -c  -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Modules/_math.o ./../src/v3.10.1-8b5dfc5615.clean/Modules/_math.c
/usr/bin/install -c -m 644 ./../src/v3.10.1-8b5dfc5615.clean/Tools/gdb/libpython.py python.exe-gdb.py
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE -o Programs/_testembed.o ./../src/v3.10.1-8b5dfc5615.clean/Programs/_testembed.c
sed -e "s,@EXENAME@,/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/../tools/python3/debug/bin/python3.10d," < ./../src/v3.10.1-8b5dfc5615.clean/Misc/python-config.in >python-config.py
LC_ALL=C sed -e 's,\$(\([A-Za-z0-9_]*\)),\$\{\1\},g' < Misc/python-config.sh >python-config
gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -fPIC -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./../src/v3.10.1-8b5dfc5615.clean/Include/internal -IObjects -IInclude -IPython -I. -I./../src/v3.10.1-8b5dfc5615.clean/Include    -DPy_BUILD_CORE \
	      -DGITVERSION="\"`LC_ALL=C `\"" \
	      -DGITTAG="\"`LC_ALL=C `\"" \
	      -DGITBRANCH="\"`LC_ALL=C `\"" \
	      -o Modules/getbuildinfo.o ./../src/v3.10.1-8b5dfc5615.clean/Modules/getbuildinfo.c
rm -f libpython3.10d.a
ar rcs libpython3.10d.a Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/dynload_shlib.o    Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/_weakref.o  Modules/_functoolsmodule.o  Modules/_operator.o  Modules/_collectionsmodule.o  Modules/_abc.o  Modules/itertoolsmodule.o  Modules/atexitmodule.o  Modules/signalmodule.o  Modules/_stat.o  Modules/timemodule.o  Modules/_threadmodule.o  Modules/_localemodule.o  Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o  Modules/faulthandler.o  Modules/_tracemalloc.o  Modules/symtablemodule.o  Modules/xxsubtype.o Python/frozen.o
gcc -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib  -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link    -Wl,-stack_size,1000000  -framework CoreFoundation -o python.exe Programs/python.o libpython3.10d.a -ldl -liconv -lintl  -framework CoreFoundation    
gcc -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib  -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib -L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link    -Wl,-stack_size,1000000  -framework CoreFoundation -o Programs/_testembed Programs/_testembed.o libpython3.10d.a -ldl -liconv -lintl  -framework CoreFoundation    
/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/build-x64-osx-dbg-err.log
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.10d.a(dynamic_annotations.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.10d.a(pymath.o) has no symbols
ld: warning: directory not found for option '-L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link'
ld: warning: directory not found for option '-L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link'
ld: warning: directory not found for option '-L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link/'
ld: warning: directory not found for option '-L/Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/manual-link/'
ld: warning: ignoring file Programs/python.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file Programs/_testembed.o, building for macOS-arm64 but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file libpython3.10d.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file libpython3.10d.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libintl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg_installed/x64-osx/debug/lib/libintl.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
Undefined symbols for architecture arm64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Programs/_testembed] Error 1

Additional context

vcpkg.json
{
  "name": "lichtsteuerung",
  "version-string": "2.0.0",
  "dependencies": [
    "shiva-sfml"
  ]
}

@FrankXie05 FrankXie05 added category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. category:port-bug The issue is with a library, which is something the port should already support and removed category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. labels Jan 19, 2022
@charlie-rbchd
Copy link

Having the same issue when trying to build for arm64-osx on a x64-osx host.

@FrankXie05
Copy link
Contributor

Sorry for the late reply ,python3 not support arm host. @joelrobichaud @autoantwort
And I did not reproduce my osx machine locally. Make sure you update to the latest vcpkg and try again.
see "supports": "!(arm | uwp)",

vcpkg@VCPKGMM-12 vcpkg % ./vcpkg install python3
Computing installation plan...
The following packages will be built and installed:
    python3[core]:x64-osx -> 3.10.1#6
Detecting compiler hash for triplet x64-osx...
Restored 0 packages from /Users/vcpkg/.cache/vcpkg/archives in 2.233 ms. Use --debug to see more details.
Starting package 1/1: python3:x64-osx
Building package python3[core]:x64-osx...
-- Downloading https://github.com/python/cpython/archive/v3.10.1.tar.gz -> python-cpython-v3.10.1.tar.gz...
-- Extracting source /Users/vcpkg/test/vcpkg/vcpkg/downloads/python-cpython-v3.10.1.tar.gz
-- Applying patch 0001-static-library.patch
-- Applying patch 0002-use-vcpkg-zlib.patch
-- Applying patch 0003-devendor-external-dependencies.patch
-- Applying patch 0004-dont-copy-vcruntime.patch
-- Applying patch 0005-only-build-required-projects.patch
-- Applying patch 0009-python.pc.patch
-- Using source at /Users/vcpkg/test/vcpkg/vcpkg/buildtrees/python3/src/v3.10.1-4421189dab.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-osx-dbg
-- Getting CMake variables for x64-osx-rel
-- Configuring x64-osx-dbg
-- Configuring x64-osx-rel
-- Building x64-osx-dbg
 -- Installing x64-osx-dbg
-- Building x64-osx-rel
-- Installing x64-osx-rel
-- Installing: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/share/python3/copyright
-- Fixing pkgconfig file: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/lib/pkgconfig/python-3.10-embed.pc
-- Fixing pkgconfig file: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/lib/pkgconfig/python-3.10.pc
-- Fixing pkgconfig file: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/debug/lib/pkgconfig/python-3.10-embed.pc
-- Fixing pkgconfig file: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/debug/lib/pkgconfig/python-3.10.pc
-- Installing: /Users/vcpkg/test/vcpkg/vcpkg/packages/python3_x64-osx/share/python3/usage
-- Installing cmake wrappers
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: /Users/vcpkg/.cache/vcpkg/archives/57/57fae1423063eb999bd626b6e997adb55a9e1b361f70732607bc850db2f676f8.zip
Installing package python3[core]:x64-osx...
Elapsed time for package python3:x64-osx: 3.6 min

Total elapsed time: 3.627 min

The package python3 is compatible with built-in CMake targets:

    find_package(Python3 COMPONENTS Development REQUIRED)
    target_link_libraries(main PRIVATE Python3::Python)

vcpkg@VCPKGMM-12 vcpkg %

@FrankXie05 FrankXie05 added the requires:repro The issue is not currently repro-able label Feb 11, 2022
@autoantwort
Copy link
Contributor Author

Sorry for the late reply ,python3 not support arm host.

This is wrong.

Make sure you update to the latest vcpkg and try again.

I think you should do that yourself. The latest version of python3 does support arm :)

Starting package 344/344: python3:arm64-osx
Building package python3[core]:arm64-osx...
-- Using community triplet arm64-osx. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/triplets/community/arm64-osx.cmake
-- Using cached python-cpython-v3.10.1.tar.gz.
-- Extracting source /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/downloads/python-cpython-v3.10.1.tar.gz
-- Applying patch 0001-static-library.patch
-- Applying patch 0002-use-vcpkg-zlib.patch
-- Applying patch 0003-devendor-external-dependencies.patch
-- Applying patch 0004-dont-copy-vcruntime.patch
-- Applying patch 0005-only-build-required-projects.patch
-- Applying patch 0009-python.pc.patch
-- Using source at /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/buildtrees/python3/src/v3.10.1-4421189dab.clean
-- Getting CMake variables for arm64-osx-dbg
-- Getting CMake variables for arm64-osx-rel
-- Configuring arm64-osx-dbg
-- Configuring arm64-osx-rel
-- Building arm64-osx-dbg
-- Installing arm64-osx-dbg
-- Building arm64-osx-rel
-- Installing arm64-osx-rel
-- Installing: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/share/python3/copyright
-- Fixing pkgconfig file: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/lib/pkgconfig/python-3.10-embed.pc
-- Fixing pkgconfig file: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/lib/pkgconfig/python-3.10.pc
-- Fixing pkgconfig file: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/debug/lib/pkgconfig/python-3.10-embed.pc
-- Fixing pkgconfig file: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/debug/lib/pkgconfig/python-3.10.pc
-- Installing: /Users/leanderSchulten/git_projekte/Lichtsteuerung/vcpkg/packages/python3_arm64-osx/share/python3/usage
-- Installing cmake wrappers
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: /Users/leanderSchulten/.cache/vcpkg/archives/aa/aa59801daa37c83f5d794b74361a52fa86a116cf0cf45531cd3908890493d94c.zip
Installing package python3[core]:arm64-osx...
Elapsed time for package python3:arm64-osx: 2.945 min

I think you don't understand the error. The problem is that cross compiling from arm64-osx to x64-osx and from x64-osx to arm64-osx does not work.

So if you have an intel mac try installing python3 for arm64-osx and you will see the same error.

@FrankXie05
Copy link
Contributor

@autoantwort Thank you for your reply, it is indeed my problem, I will go to confirm this bug soon. :)

@FrankXie05 FrankXie05 removed the requires:repro The issue is not currently repro-able label Feb 11, 2022
@FrankXie05
Copy link
Contributor

@autoantwort Sorry I don't have an arm64machine here, so I don't have a way to verify this, so I can't give you an opinion. You can ask for help from other users or submit an issue upstream to resolve it. sorry again. :)

@FrankXie05 FrankXie05 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 11, 2022
@FrankXie05 FrankXie05 changed the title [python3] Build error on x64-osx [python3] Build failure [python3]:x64-osx on arm64-osx Feb 11, 2022
@autoantwort
Copy link
Contributor Author

@FrankXie05 You don't need an arm64 machine. You can do it on your x64 machine. It is like installing x86-windows or arm64-windows on your x64-windows machine.

@autoantwort
Copy link
Contributor Author

I have created https://bugs.python.org/issue46749 upstream

@FrankXie05
Copy link
Contributor

Confirm

@FrankXie05 FrankXie05 added the depends:upstream-changes Waiting on a change to the upstream project label Feb 15, 2022
@esdandreu
Copy link

I'm facing the same problem here. I have the logs from a CI build that attempts to build a python package using vcpkg https://github.com/esdandreu/python-extension-cpp/runs/5390277761?check_suite_focus=true

@FrankXie05 FrankXie05 removed the depends:upstream-changes Waiting on a change to the upstream project label Mar 18, 2022
@FrankXie05
Copy link
Contributor

@autoantwort https://github.com/python/issues-test-demo-20220218/issues/46749#issuecomment-1044254471,
According to the upstream reply, it is true that cross-platform builds are not currently supported, what do you think? :)

@FrankXie05
Copy link
Contributor

This issue hasn’t been updated for a long time; if it is still an issue, please reopen this issue.

@namchuai
Copy link

I'm still having this issue while trying to install boost on mac m1.

error: building python3:arm64-osx failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle python3:arm64-osx: 3.2 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+python3
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[python3]+Build+error+on+arm64-osx&body=Copy+issue+body+from+%2FUsers%2Fremoved%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
You can also submit an issue by running (GitHub CLI must be installed):
  gh issue create -R microsoft/vcpkg --title "[python3] Build failure on arm64-osx" --body-file /Users/removed/vcpkg/installed/vcpkg/issue_body.md

@namchuai
Copy link

Sorry for my previous comment. After installing brew install autoconf automake autoconf-archive, I can successfully install python3 arm64.

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.
Projects
None yet
Development

No branches or pull requests

6 participants
@charlie-rbchd @namchuai @esdandreu @autoantwort @FrankXie05 and others