Comments (12)
-O2
is default and probably best. -O3
does a lot of fancy things, but normally have very minimal effect. I think that kerl should leave it alone and let the user and Erlang configure decide what to set it to.
from kerl.
What does your CFLAGS environment variable say? Can you post the log of the build?
from kerl.
@garazdawi, is there such a thing as a "default" or "best" O flag? If so, kerl
could probably apply it. Otherwise we can always leave it as-is and let Erlang complain as above (?)
from kerl.
here's the build log.
otp_build_25.0.log
from kerl.
@Grimgrams your CFLAGS is set to, CFLAGS='-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include'
. You need to add a -O
in there (just as the error message says).
from kerl.
@Grimgrams your CFLAGS is set to,
CFLAGS='-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include'
. You need to add a-O
in there (just as the error message says).
Thank You! This worked but now I am getting a build error this time
APPLICATIONS DISABLED (See: /Users/grimgram/.kerl/builds/25.0/otp_build_25.0.log)
* odbc : ODBC library - link check failed
APPLICATIONS INFORMATION (See: /Users/grimgram/.kerl/builds/25.0/otp_build_25.0.log)
* wx : wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available
* Can not link wx program are all developer packages installed?
Build failed.
5 warnings and 2 errors generated.
gmake[4]: *** [aarch64-apple-darwin23.0.0/Makefile:909: obj/aarch64-apple-darwin23.0.0/opt/jit/inet_drv.o] Error 1
gmake[4]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/erts/emulator'
gmake[3]: *** [/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/make/run_make.mk:35: opt] Error 2
gmake[3]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/erts/emulator'
gmake[2]: *** [Makefile:45: opt] Error 2
gmake[2]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/erts'
gmake[1]: *** [Makefile:60: jit] Error 2
gmake[1]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/erts'
gmake: *** [Makefile:496: emulator] Error 2
here is the build log for this one.
otp_build_25.0.log
from kerl.
You seem to be running MacOS Sonoma? Apple seems to have changed some things that makes Erlang 25.0 not compile anymore. Try compiling Erlang 26.0.2 and see if that works.
from kerl.
Yeah, I thought that might be the problem I wasn't sure though. I got the same build error as before, I'll try to install it on a backup I have of MacOS Ventura.
from kerl.
I went back to macOS Ventura and I am now getting this error.
Configure failed.
checking for getrusage... yes
checking for sys/event.h... yes
checking for sys/epoll.h... no
checking for sys/devpoll.h... no
checking for sys/timerfd.h... no
checking for netpacket/packet.h... no
checking for netinet/sctp.h... no
configure: error: sctp support requested, but cannot be enabled since 'netinet/sctp.h' is missing
ERROR: /Users/grimgram/.kerl/builds/25.0/otp_src_25.0/erts/configure failed!
./configure: line 366: kill: (-86222) - No such process
I already installed libusrsctp with brew.
build log.
otp_build_25.0.log
from kerl.
As noted in the gen_sctp manual, for sctp to work you need kernel support for sctp. Erlang cannot use a userspace sctp driver.
I know there are people that have written nifs/linked in drivers around userspace sctp, though Iām unsure if any are released as opensource.
from kerl.
Ok so I disabled the sctp support and now it returns this.
Build failed.
=== Entering application kernel
gmake[3]: Entering directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/lib/kernel/src'
erlc -W -Werror +slim -Werror -I../include -o/lib/kernel/ebin application.erl
gmake[3]: *** [/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/make/aarch64-apple-darwin22.6.0/otp.mk:129: /lib/kernel/ebin/application.beam] Segmentation fault: 11
gmake[3]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/lib/kernel/src'
gmake[2]: *** [/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/make/otp_subdir.mk:29: opt] Error 2
gmake[2]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/lib/kernel'
gmake[1]: *** [/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/make/otp_subdir.mk:29: opt] Error 2
gmake[1]: Leaving directory '/Users/grimgram/.kerl/builds/25.0/otp_src_25.0/lib'
gmake: *** [Makefile:634: secondary_bootstrap_build] Error 2
from kerl.
Related Issues (20)
- Building Erlang 23 freezes on macOS HOT 4
- Erlang instalation fails on Pop!_OS 22.04 LTS HOT 8
- Erlang v25: Segmentation fault on linux/arm64 (docker emulation) HOT 1
- Testing for package managers is getting to be a big mess HOT 21
- CI Ubuntu 22.04 failing because of OpenSSL 3
- Shellcheck failures on CI
- support clone with depth 1 HOT 3
- Add 'kerl build source' to build from source HOT 17
- Name variables in functions HOT 1
- Remove no-longer-supported OTP version-specific code HOT 4
- Improve activate/deactivate scripts
- Trim `list releases` to supported versions
- shfmt and shellcheck kerl-generated files (e.g. the activate script)
- 'kerl deploy' not working HOT 2
- OpenSSL proposed as 1.1, on macOS with Homebrew installed
- Error at the end of the build HOT 3
- Improve on logging and stderr'ing stuff
- PR #476 introduced faulty awk script HOT 3
- /home/bengt/bin/kerl: eval: line 856: ./otp_build: not found HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kerl.