Thanks to visit codestin.com
Credit goes to github.com

Skip to content

iOS can't be built on macOS 26 / Xcode 26 build host #150443

Description

@freakboy3742

Bug report

Bug description:

If you attempt to build the iOS distribution on macOS 26, building posixmodule.c on the ARM64 simulator fails with the following:

../Modules/posixmodule.c:11833:15: error: call to undeclared function 'dup3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 11833 |         res = dup3(fd, fd2, O_CLOEXEC);
       |               ^
../Modules/posixmodule.c:12701:11: error: call to undeclared function 'pipe2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 12701 |     res = pipe2(fds, O_CLOEXEC);
       |           ^
../Modules/posixmodule.c:12701:11: note: did you mean 'pipe'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.4.sdk/usr/include/unistd.h:482:6: note: 'pipe' declared here
  482 | int      pipe(int [2]);
      |          ^
../Modules/posixmodule.c:12758:11: error: call to undeclared function 'pipe2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 12758 |     res = pipe2(fds, flags);
       |           ^

It appears that something has changed introducing linkable pipe2 and dup3 methods, but without a public header. This is enough to confuse configure into thinking the methods exist.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixesOS-iostype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions