Python-Apple-support icon indicating copy to clipboard operation
Python-Apple-support copied to clipboard

Linker fails when building Xcode project on x86_64

Open JonathanLoungani opened this issue 1 year ago • 1 comments

Describe the bug

When using an x86_64 Mac with Python 3.12 (or 3.9), it is not possible to build the stub app in the Mac OS app template.

Steps to reproduce

  1. Download the briefcase macOS Xcode template
  2. Run briefcase create macOS Xcode in the stub directory
  3. Run briefcase build macOS Xcode in the stub directory
  4. See the following error
Undefined symbols for architecture x86_64:
  "_mkfifoat", referenced from:
      _os_mkfifo in libPython3.12.a(posixmodule.o)
  "_mknodat", referenced from:
      _os_mknod in libPython3.12.a(posixmodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
** BUILD FAILED **

Expected behavior

The build should complete without issue.

Screenshots

No response

Environment

  • Operating System: macOS Big Sur 11.7.8 (x86_64)
  • Python version: 3.12
  • Xcode version: 13.0
  • Software versions:
    • Briefcase: 0.3.18
    • Toga: 0.4.4

Logs

briefcase.2024_05_22-13_48_08.build.log

Additional context

No response

JonathanLoungani avatar May 22 '24 18:05 JonathanLoungani

This issue also occurs when using Python 3.9

Undefined symbols for architecture x86_64:
  "_mkfifoat", referenced from:
      _os_mkfifo in libPython3.9.a(posixmodule.o)
  "_mknodat", referenced from:
      _os_mknod in libPython3.9.a(posixmodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
** BUILD FAILED **

briefcase.2024_05_22-14_08_31.build.log

JonathanLoungani avatar May 22 '24 18:05 JonathanLoungani

The macOS builds are now based on the officially released artefacts, so this issue no longer exists.

freakboy3742 avatar Sep 10 '24 22:09 freakboy3742