Coder Social home page Coder Social logo

Comments (3)

jedisct1 avatar jedisct1 commented on May 14, 2024 1

Hi,

And thanks for your feedback!

The macOS port (and actually, making Lucet work outside the Docker environment) is still a work in progress.

make install should not be used outside this environment, and there is more than just fixing the readlink issue to have it work.

For example setting LD_LIBRARY_PATH doesn't do anything on macOS.

I'll eventually make a Homebrew tap to properly install Lucet on macOS.

from lucet.

pchickey avatar pchickey commented on May 14, 2024

This will be fixed as soon as #138 lands. If you have time, could you check out that branch and see that its fixed there?

from lucet.

moderation avatar moderation commented on May 14, 2024

Using that branches looks like it works

make -C lucet-builtins
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/memcpy.c -o build/memcpy.o
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/memmove.c -o build/memmove.o
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/strcasecmp.c -o build/strcasecmp.o
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/strchr.c -o build/strchr.o
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/strcmp.c -o build/strcmp.o
cc --std=gnu99 -Ofast -Wall -Werror -march=native -fPIC -I../lucet-runtime/include -c src/strlen.c -o build/strlen.o
# -U is not supported by the GNU linker. Retry without this option if the first command fails.
cc -Wl,-U,_lucet_vmctx_current_memory -Wl,-U,_lucet_vmctx_get_heap -shared build/memcpy.o build/memmove.o build/strcasecmp.o build/strchr.o build/strcmp.o build/strlen.o -o build/libbuiltins.so 2> /dev/null || \
        cc -shared build/memcpy.o build/memmove.o build/strcasecmp.o build/strchr.o build/strcmp.o build/strlen.o -o build/libbuiltins.so

make install or sudo helpers/install.sh generates the following error.

readlink: illegal option -- e
usage: readlink [-n] [file ...]
Unable to find the current script base directory

from lucet.

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.