Giter Club home page Giter Club logo

Comments (6)

msantos avatar msantos commented on July 30, 2024

On Fri, Jun 10, 2011 at 07:36:59AM -0700, si14 wrote:

rebar compile
==> procket (compile)
/usr/bin/ld: cannot find -lancillary
collect2: ld returned 1 exit status
ERROR: cc c_src/procket.o -Lc_src -lancillary -shared -L/usr/local/lib/erlang/lib/erl_interface-3.7.4/lib -lerl_interface -lei -o priv/procket.so failed with error: 1

Thanks for letting me know!

What OS are you building on? Your Erlang looks recent
(erl_interface-3.7.4) but what's the version release number?

After the failed build, do you see:

$ ls deps/procket/c_src/libancillary.a
deps/procket/c_src/libancillary.a

from gen_icmp.

si14 avatar si14 commented on July 30, 2024

I'm sorry for a late reply. I'm using Ubuntu 11.04 and

erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
And I don't see libancellary.a in c_src, here is a listing of deps/procket/c_src:
ls
ancillary.h fd_recv.c fd_send.c Makefile.ancillary Makefile.cmd procket.c procket_cmd.c procket.h procket.o

from gen_icmp.

msantos avatar msantos commented on July 30, 2024

On Tue, Jun 14, 2011 at 01:37:00AM -0700, si14 wrote:

I'm sorry for a late reply. I'm using Ubuntu 11.04 and

erl
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
And I don't see libancellary.a in c_src, here is a listing of deps/procket/c_src:
ls
ancillary.h fd_recv.c fd_send.c Makefile.ancillary Makefile.cmd procket.c procket_cmd.c procket.h procket.o

Thanks!

Could you do a clean build and send me the output? (Feel free to
send it to me directly, it will contain the env for your shell):

make clean
rebar -v compile

from gen_icmp.

si14 avatar si14 commented on July 30, 2024

Of course, I've sent you one.

from gen_icmp.

msantos avatar msantos commented on July 30, 2024

;tldr si14 builds rebar from git. If you're building your own rebar, use this rebar.config:

{so_name, "procket.so"}.

{port_sources, ["c_src/procket.c"]}.
{port_envs, [
{"LDFLAGS", "$LDFLAGS -Lc_src -lancillary"}
]}.

{pre_hooks, [
{compile, "make -C c_src -f Makefile.ancillary -f Makefile.cmd"}
]}.
{post_hooks, [
{clean, "rm c_src/.a c_src/.o priv/procket"}
]}.

from gen_icmp.

segachan avatar segachan commented on July 30, 2024

@msantos
Hello. I'm facing this issue. I don't know why, this issue is reproduced when there is -j option of make command, is not reproduced when there is no -j it.

You can reproduce this issue, would you confirm the command docker build -t ancillary-not-found . , using the below Dockerfile:

FROM arm64v8/erlang:24.0-alpine@sha256:8ba9ec67f5b54bf3a659238a77b9555b0ac8373dc855c008147b67690a69c8f2
RUN apk update && \
    apk add alpine-sdk
WORKDIR /usr/src

# refer:https://erlang.mk/guide/getting_started.html
WORKDIR /usr/src/hello_joe
RUN wget https://erlang.mk/erlang.mk
RUN make -f erlang.mk bootstrap

# add your module as the dependency to Makefile
RUN sed -i '1s/^/DEPS = procket pkt\n/' Makefile

RUN make -j$((`nproc`+1))
  • additional info: Docker version 20.10.0, build 7287ab3

from gen_icmp.

Related Issues (16)

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.