-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
System: MacOS Sequoia 15.5 (24F74)
Erlang Version: Erlang/OTP 26 installed via homebrew. I cannot use v 27 or 28 as amqp_client dep uses rabbit_common which only runs under OTP 26 at the moment.
I'm getting the following compiler error (in doubles.cc) when trying to run rebar3 compile for my erlang app:
In file included from c_src/double-conversion/double-conversion.h:31:
c_src/double-conversion/utils.h:31:10: fatal error: 'cstdlib' file not found
31 | #include <cstdlib>
| ^~~~~~~~~
1 error generated.
It managed to compile other c binaries:
===> Compiling c_src/decoder.c
===> Compiling c_src/encoder.c
===> Compiling c_src/jiffy.c
===> Compiling c_src/termstack.c
===> Compiling c_src/utf8.c
===> Compiling c_src/util.c
I have tried installed gcc via homebrew thinking that I may have a problem finding the cstdlib file but the error persists. When I run gcc --version I get:
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
My rebar.config looks like this:
{erl_opts, [debug_info]}.
{deps, [
{cowboy, "2.12.0"},
{amqp_client, "4.0.3"},
{hackney, "1.24.1"},
{uuid, {git, "https://github.com/okeuday/uuid.git", {tag,"v2.0.7"}}},
{jsx, "3.1.0"},
{jiffy, "1.1.2"}
]}.
{relx, [{release, {dev, "0.3.0"},
[testapp]},
{mode, prod},
{dev_mode, false},
{include_erts, true},
{extended_start_script, true}]}.
{shell, [
% {config, "config/sys.config"},
{apps, [testapp]}
]}.
I'm at a loss as to how to compile jiffy. Any help much appreciated.
Metadata
Metadata
Assignees
Labels
No labels