codrsquad / codrsquad/portable-python

MacOS linking error (M4, ARM)

Open
#69 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
86
Forks
13
PR merge metrics
No merged PRs in 30d

Description

While trying to run portable-python build 3.9.7 on an m4 mac I encountered the linking error down below.
I installed portable python using pip3.9 install portable-python using python 3.9.25 installed by homebrew

Undefined symbols for architecture arm64:
  "_libintl_bindtextdomain", referenced from:
      _PyIntl_bindtextdomain in lto.o
      _PyIntl_bindtextdomain in lto.o
  "_libintl_dcgettext", referenced from:
      _PyIntl_dcgettext in lto.o
  "_libintl_dgettext", referenced from:
      _PyIntl_dgettext in lto.o
  "_libintl_gettext", referenced from:
      _PyIntl_gettext in lto.o
  "_libintl_setlocale", referenced from:
      _PyLocale_setlocale in lto.o
      _PyLocale_setlocale in lto.o
      _PyLocale_localeconv in lto.o
      _PyLocale_localeconv in lto.o
      _PyLocale_localeconv in lto.o
      _PyLocale_localeconv in lto.o
  "_libintl_textdomain", referenced from:
      _PyIntl_textdomain in lto.o
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[2]: *** [build_all_generate_profile] Error 2
make[1]: *** [profile-gen-stamp] Error 2
make: *** [profile-run-stamp] Error 2
ERROR make exited with code 2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing portable-python build 3.9.7 on an M4 ARM Mac using the reported Python installation. Inspect the build and linking inputs related to the missing libintl symbols; done means the command completes without the arm64 linker failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.