[issue46975] clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac
Battant
report at bugs.python.org
Thu Mar 10 11:38:01 EST 2022
New submission from Battant <mparchet at sunrise.ch>:
Hello,
Here is my configuration
mac os 12.2.1
mac m1 pro 2021
step to reproduce
1. on mac m1, clone cpython repository main branch
run
./confugure
make
Actual result :
gcc -fno-semantic-interposition -fprofile-instr-generate -Wl,-stack_size,1000000 -framework CoreFoundation -o python.exe Programs/python.o libpython3.10d.a -ldl -framework CoreFoundation
gcc -fno-semantic-interposition -fprofile-instr-generate -Wl,-stack_size,1000000 -framework CoreFoundation -o Programs/_testembed Programs/_testembed.o libpython3.10d.a -ldl -framework CoreFoundation
Undefined symbols for architecture arm64:
"_libintl_bindtextdomain", referenced from:
Undefined symbols for architecture arm64:
"_libintl_bindtextdomain", referenced from:
__locale_bindtextdomain_impl in libpython3.10d.a(_localemodule.o)
__locale_bindtextdomain_impl in libpython3.10d.a(_localemodule.o)
"_libintl_dcgettext", referenced from:
"_libintl_dcgettext", referenced from:
__locale_dcgettext_impl in libpython3.10d.a(_localemodule.o)
__locale_dcgettext_impl in libpython3.10d.a(_localemodule.o)
"_libintl_dgettext", referenced from:
"_libintl_dgettext", referenced from:
__locale_dgettext_impl in libpython3.10d.a(_localemodule.o)
__locale_dgettext_impl in libpython3.10d.a(_localemodule.o)
"_libintl_gettext", referenced from:
"_libintl_gettext", referenced from:
__locale_gettext_impl in libpython3.10d.a(_localemodule.o)
__locale_gettext_impl in libpython3.10d.a(_localemodule.o)
"_libintl_setlocale", referenced from:
"_libintl_setlocale", referenced from:
__locale_setlocale_impl in libpython3.10d.a(_localemodule.o)
_locale_decode_monetary in libpython3.10d.a(_localemodule.o)
__locale_setlocale_impl in libpython3.10d.a(_localemodule.o)
_locale_decode_monetary in libpython3.10d.a(_localemodule.o)
"_libintl_textdomain", referenced from:
"_libintl_textdomain", referenced from:
__locale_textdomain_impl in libpython3.10d.a(_localemodule.o)
__locale_textdomain_impl in libpython3.10d.a(_localemodule.o)
ld: symbol(s) not found for architecture arm64
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [python.exe] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Programs/_testembed] Error 1
make[2]: *** [build_all_generate_profile] Error 2
make[1]: *** [profile-gen-stamp] Error 2
make: *** [profile-run-stamp] Error 2
Could you help me please to fix this issus ?
Best regards
Battant
----------
components: macOS
messages: 414859
nosy: Battant, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: clang: error: linker command failed with exit code 1 (use -v to see invocation) on m1 mac
type: compile error
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46975>
_______________________________________
More information about the Python-bugs-list
mailing list