Can't compile fasthtml on Debian 10 / ARM32 #14

Open
opened 2023-08-10 15:48:50 +00:00 by ScriptFanix · 4 comments
Member

When I try to compile fasthtml, I get the following error:

cc -o priv/fasthtml_worker c_src/fasthtml_worker.c c_src/lexbor/liblexbor_static.a -g -O2 -std=c99 -pedantic -Wcomment -Wextra -Wno-old-style-declaration -Wall -Wno-unused-parameter -I/usr/local/lib/erlang/erts-13.2/include -Ic_src/lexbor/source -lpthread -L/usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3 /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/lib -I/usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3 /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/include -DOTP_22_OR_NEWER    -lei -pthread 
c_src/fasthtml_worker.c: In function ‘main’:
c_src/fasthtml_worker.c:82:3: warning: implicit declaration of function ‘ei_init’; did you mean ‘ei_x_new’? [-Wimplicit-function-declaration]
   ei_init ();
   ^~~~~~~
   ei_x_new
/usr/bin/ld : ne peut pas trouver /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/lib : file format not recognized
/usr/bin/ld : ne peut pas trouver /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/include : file format not recognized
collect2: error: ld returned 1 exit status
make: *** [Makefile:56: priv/fasthtml_worker] Error 1

Though I have:

pleroma@Furuneo:/opt/pleroma$ ls /usr/local/lib/erlang/lib/erl_interface-5.3.1/lib/
libei.a  libei_st.a
pleroma@Furuneo:/opt/pleroma$ ls /usr/local/lib/erlang/lib/erl_interface-5.3.1/include/
eicode.h  ei_connect.h  ei.h
When I try to compile fasthtml, I get the following error: ``` cc -o priv/fasthtml_worker c_src/fasthtml_worker.c c_src/lexbor/liblexbor_static.a -g -O2 -std=c99 -pedantic -Wcomment -Wextra -Wno-old-style-declaration -Wall -Wno-unused-parameter -I/usr/local/lib/erlang/erts-13.2/include -Ic_src/lexbor/source -lpthread -L/usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3 /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/lib -I/usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3 /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/include -DOTP_22_OR_NEWER -lei -pthread c_src/fasthtml_worker.c: In function ‘main’: c_src/fasthtml_worker.c:82:3: warning: implicit declaration of function ‘ei_init’; did you mean ‘ei_x_new’? [-Wimplicit-function-declaration] ei_init (); ^~~~~~~ ei_x_new /usr/bin/ld : ne peut pas trouver /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/lib : file format not recognized /usr/bin/ld : ne peut pas trouver /usr/local/lib/erlang/erts-13.2/../lib/erl_interface-5.3.1/include : file format not recognized collect2: error: ld returned 1 exit status make: *** [Makefile:56: priv/fasthtml_worker] Error 1 ``` Though I have: ``` pleroma@Furuneo:/opt/pleroma$ ls /usr/local/lib/erlang/lib/erl_interface-5.3.1/lib/ libei.a libei_st.a pleroma@Furuneo:/opt/pleroma$ ls /usr/local/lib/erlang/lib/erl_interface-5.3.1/include/ eicode.h ei_connect.h ei.h ```
Owner

Doesn't seems like a Debian issue with erlang installed in /usr/local/

Could you give the origin of your Erlang installation and the output of erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)])])' -s init stop -noshell ?

Doesn't seems like a *Debian* issue with erlang installed in `/usr/local/`… Could you give the origin of your Erlang installation and the output of `erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)])])' -s init stop -noshell` ?
Author
Member
  1. I don't remember, that was quite some time ago.

  2. $ erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)])])' -s init stop -noshell
    /usr/local/lib/erlang/erts-13.2

1. I don't remember, that was quite some time ago. 2. $ erl -eval 'io:format("~s", [lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)])])' -s init stop -noshell /usr/local/lib/erlang/erts-13.2
Member

I am having the same issue with Fedora 39, which places that file under /usr/lib64/erlang/usr/include/ei.h

Works fine on Arch which puts it under /usr/lib/erlang/usr/include/ei.h

I am having the same issue with Fedora 39, which places that file under /usr/lib64/erlang/usr/include/ei.h Works fine on Arch which puts it under /usr/lib/erlang/usr/include/ei.h
Member

Nevermind, on Fedora this is fixed by installing erlang-erl_interface

Nevermind, on Fedora this is fixed by installing erlang-erl_interface
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/fast_html#14
No description provided.