cmd/link: missing MachoPlatform for Mac Catalyst and missing INODE64 extname for syscalls (fdopendir, readdir_r, getfsstat) #67175
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
OS-Darwin
Milestone
Go version
devel go1.23-20130cc36a
Output of
go env
in your module/workspace:What did you do?
Try to compile a Go library (esbuild) to c-archive for Mac Catalyst.
What did you see happen?
The
readdir
function is absolutely unusable, so I investigated and realized the$INODE64
suffix doesn't get appended to the file system syscallsrc/cmd/link/internal/ld/macho.go#973
because themachoPlatform
gets set to6
src/cmd/link/internal/ld/macho.go#1331
when trying to compile to targetx86_64-apple-ios-macabi
(Mac Catalyst).My makefile setup:
clangwrap.sh
What did you expect to see?
To
readdir
as expected. My fix seems to fix the issue, but I might miss a flag or do something wrong. Very open to discussion and other propositions.The text was updated successfully, but these errors were encountered: