Coder Social home page Coder Social logo

Comments (12)

garazdawi avatar garazdawi commented on June 6, 2024 1

-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.

garazdawi avatar garazdawi commented on June 6, 2024

What does your CFLAGS environment variable say? Can you post the log of the build?

from kerl.

paulo-ferraz-oliveira avatar paulo-ferraz-oliveira commented on June 6, 2024

@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.

Grimgrams avatar Grimgrams commented on June 6, 2024

here's the build log.
otp_build_25.0.log

from kerl.

garazdawi avatar garazdawi commented on June 6, 2024

@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 avatar Grimgrams commented on June 6, 2024

@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.

garazdawi avatar garazdawi commented on June 6, 2024

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.

Grimgrams avatar Grimgrams commented on June 6, 2024

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.

Grimgrams avatar Grimgrams commented on June 6, 2024

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.

garazdawi avatar garazdawi commented on June 6, 2024

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.

Grimgrams avatar Grimgrams commented on June 6, 2024

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

otp_build_25.0.log

from kerl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.