Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue on building with Xcode 16.0+ #42

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

zacky1972
Copy link
Contributor

Hi,

I tested the building script taught by @wojtekmach

#41 (comment)

$ gh repo clone erlef/otp_builds
$ cd otp_builds
$ sh scripts/build_otp_macos.bash OTP-27.1.2
$ tmp/otp_builds/otp-OTP-27.1.2-openssl-3.1.6-wxwidgets-3.2.6/bin/erl
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Eshell V15.1.2 (press Ctrl+G to abort, type help(). for help)
1>

Unfortunately, I got the following error:

In file included from sys/unix/erl_unix_sys.h:65:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:525:10: fatal error: cannot open file 'aarch64-apple-darwin/opt/jit/_ctermid.h': Too many open files
  525 | #include <_ctermid.h>
      |          ^
 CXX	obj/aarch64-apple-darwin/opt/jit/instr_map.o
1 error generated.
make[4]: *** [obj/aarch64-apple-darwin/opt/jit/beam_asm_module.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [jit] Error 2
make: *** [emulator] Error 2

Fortunately, I know how to fix this issue:

asdf-vm/asdf-erlang#319

ulimit -n 65536

This PR patches this on scripts/build_otp_macos.bash.

Thank you.

@paulo-ferraz-oliveira
Copy link
Collaborator

Thank you. The change seems reasonable. I'll approve the CI run, but let @wojtekmach review it later.

@wojtekmach wojtekmach merged commit aa0f403 into erlef:main Dec 9, 2024
2 checks passed
@wojtekmach
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants