-
-
Save Windsooon/85ba82ecf78a835b2b912352c257f50c to your computer and use it in GitHub Desktop.
CPython compiled failed in macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fmax-type-align=8 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE \ | |
-DABIFLAGS='""' \ | |
-DMULTIARCH=\"darwin\" \ | |
-o Python/sysmodule.o ./Python/sysmodule.c | |
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fmax-type-align=8 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE \ | |
-DSOABI='"cpython-38-darwin"' \ | |
-o Python/dynload_shlib.o ./Python/dynload_shlib.c | |
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fmax-type-align=8 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Modules/config.o Modules/config.c | |
gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fmax-type-align=8 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -DPYTHONPATH='""' \ | |
-DPREFIX='"/usr/local"' \ | |
-DEXEC_PREFIX='"/usr/local"' \ | |
-DVERSION='"3.8"' \ | |
-DVPATH='""' \ | |
-o Modules/getpath.o ./Modules/getpath.c | |
sed -e "s,@EXENAME@,/usr/local/bin/python3.8," < ./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 -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fmax-type-align=8 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE \ | |
-DGITVERSION="\"`LC_ALL=C git --git-dir ./.git rev-parse --short HEAD`\"" \ | |
-DGITTAG="\"`LC_ALL=C git --git-dir ./.git describe --all --always --dirty`\"" \ | |
-DGITBRANCH="\"`LC_ALL=C git --git-dir ./.git name-rev --name-only HEAD`\"" \ | |
-o Modules/getbuildinfo.o ./Modules/getbuildinfo.c | |
rm -f libpython3.8.a | |
ar rcs libpython3.8.a Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/token.o Parser/myreadline.o Parser/parsetok.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/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.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/capsule.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/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/coreconfig.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/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/peephole.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/context.o Python/hamt.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/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/hashtable.o Modules/symtablemodule.o Modules/xxsubtype.o Python/frozen.o | |
gcc -framework CoreFoundation -o python.exe Programs/python.o libpython3.8.a -ldl -framework CoreFoundation | |
gcc -framework CoreFoundation -o Programs/_testembed Programs/_testembed.o libpython3.8.a -ldl -framework CoreFoundation | |
ld: warning: ignoring file libpython3.8.a, file was built for archive which is not the architecture being linked (x86_64): libpython3.8.a | |
ld: warning: ignoring file libpython3.8.a, file was built for archive which is not the architecture being linked (x86_64): libpython3.8.a | |
Undefined symbols for architecture x86_64: | |
"_PyEval_InitThreads", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_PyEval_ReleaseThread", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_PyEval_RestoreThread", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_test_bpo20891 in _testembed.o | |
"_PyEval_SaveThread", referenced from: | |
_test_bpo20891 in _testembed.o | |
"_PyGILState_Check", referenced from: | |
_bpo20891_thread in _testembed.o | |
Undefined symbols for architecture x86_64: | |
"_PyGILState_Ensure", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_bpo20891_thread in _testembed.o | |
"__Py_UnixMain", referenced from: | |
"_PyGILState_Release", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_main in python.o | |
_bpo20891_thread in _testembed.o | |
"_PyInterpreterState_GetID", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_PyMem_RawFree", referenced from: | |
_test_pre_initialization_api in _testembed.o | |
"_PyRun_SimpleStringFlags", referenced from: | |
_test_forced_io_encoding in _testembed.o | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_test_pre_initialization_api in _testembed.o | |
_test_pre_initialization_sys_options in _testembed.o | |
_test_init_default_config in _testembed.o | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
... | |
"_PySys_AddWarnOption", referenced from: | |
_test_pre_initialization_sys_options in _testembed.o | |
"_PySys_AddXOption", referenced from: | |
_test_pre_initialization_sys_options in _testembed.o | |
"_PySys_ResetWarnOptions", referenced from: | |
_test_pre_initialization_sys_options in _testembed.o | |
"_PyThreadState_Get", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_PyThreadState_Swap", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_PyThread_acquire_lock", referenced from: | |
_test_bpo20891 in _testembed.o | |
"_PyThread_allocate_lock", referenced from: | |
_test_bpo20891 in _testembed.o | |
"_PyThread_exit_thread", referenced from: | |
ld: symbol(s) not found for architecture x86_64 | |
_bpo20891_thread in _testembed.o | |
"_PyThread_free_lock", referenced from: | |
_test_bpo20891 in _testembed.o | |
"_PyThread_release_lock", referenced from: | |
_bpo20891_thread in _testembed.o | |
"_PyThread_start_new_thread", referenced from: | |
_test_bpo20891 in _testembed.o | |
"_Py_BytesWarningFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_DecodeLocale", referenced from: | |
_test_pre_initialization_api in _testembed.o | |
"_Py_DontWriteBytecodeFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_EndInterpreter", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_Py_Finalize", referenced from: | |
_test_forced_io_encoding in _testembed.o | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_test_pre_initialization_api in _testembed.o | |
_test_pre_initialization_sys_options in _testembed.o | |
_test_initialize_twice in _testembed.o | |
_test_initialize_pymain in _testembed.o | |
_test_init_default_config in _testembed.o | |
... | |
"_Py_IgnoreEnvironmentFlag", referenced from: | |
_test_init_env in _testembed.o | |
_test_init_env_dev_mode in _testembed.o | |
_test_init_env_dev_mode_alloc in _testembed.o | |
"_Py_Initialize", referenced from: | |
_test_forced_io_encoding in _testembed.o | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_test_pre_initialization_api in _testembed.o | |
_test_pre_initialization_sys_options in _testembed.o | |
_test_bpo20891 in _testembed.o | |
_test_initialize_twice in _testembed.o | |
_test_initialize_pymain in _testembed.o | |
... | |
"_Py_InspectFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_InteractiveFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_IsolatedFlag", referenced from: | |
_test_init_isolated in _testembed.o | |
_test_preinit_isolated2 in _testembed.o | |
"_Py_Main", referenced from: | |
_test_initialize_pymain in _testembed.o | |
"_Py_NewInterpreter", referenced from: | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
"_Py_NoSiteFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_NoUserSiteDirectory", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_OptimizeFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_QuietFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_SetProgramName", referenced from: | |
_test_forced_io_encoding in _testembed.o | |
_test_repeated_init_and_subinterpreters in _testembed.o | |
_test_pre_initialization_api in _testembed.o | |
_test_pre_initialization_sys_options in _testembed.o | |
_test_bpo20891 in _testembed.o | |
_test_initialize_twice in _testembed.o | |
_test_initialize_pymain in _testembed.o | |
... | |
"_Py_SetStandardStreamEncoding", referenced from: | |
_test_forced_io_encoding in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_UTF8Mode", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_UnbufferedStdioFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"_Py_VerboseFlag", referenced from: | |
_test_init_global_config in _testembed.o | |
_test_init_from_config in _testembed.o | |
"__Py_ExitInitError", referenced from: | |
_test_init_from_config in _testembed.o | |
_test_init_dev_mode in _testembed.o | |
_test_init_isolated in _testembed.o | |
_test_preinit_isolated1 in _testembed.o | |
_test_preinit_isolated2 in _testembed.o | |
_test_run_main in _testembed.o | |
"__Py_InitializeFromConfig", referenced from: | |
_test_init_from_config in _testembed.o | |
_test_init_dev_mode in _testembed.o | |
_test_init_isolated in _testembed.o | |
_test_preinit_isolated1 in _testembed.o | |
_test_preinit_isolated2 in _testembed.o | |
_test_run_main in _testembed.o | |
"__Py_PreInitialize", referenced from: | |
_test_init_from_config in _testembed.o | |
_test_preinit_isolated1 in _testembed.o | |
_test_preinit_isolated2 in _testembed.o | |
"__Py_RunMain", referenced from: | |
_test_run_main in _testembed.o | |
ld: symbol(s) not found for architecture x86_64 | |
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 1b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment