Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the thing to run from source, following instructions #238

Open
zdanl opened this issue May 5, 2024 · 7 comments
Open

Getting the thing to run from source, following instructions #238

zdanl opened this issue May 5, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@zdanl
Copy link

zdanl commented May 5, 2024

Simply trying to follow the build instructions here.

Getting this weirdness.

Step 1/9 : FROM --platform=$TARGETPLATFORM cartesi/toolchain:0.17.0-rv64ima-lp64 as linux-env
failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
make[4]: *** [Makefile:262: build-linux-env] Error 1
make[4]: Leaving directory '/root/machine-emulator'
make[3]: *** [Makefile:295: check-linux-env] Error 2
make[3]: Leaving directory '/root/machine-emulator'
make[2]: *** [Makefile:323: uarch-with-linux-env] Error 2

Someone help me out? Tried export TARGETPLATFORM=x86_64 but ignored

@zdanl zdanl added the bug Something isn't working label May 5, 2024
@zdanl
Copy link
Author

zdanl commented May 5, 2024

well. i did ARG TARGETPLATFORM=x86_64 in Dockerfile and it seems to eat it

@zdanl
Copy link
Author

zdanl commented May 5, 2024

We also seem to be missing apt install apparmor apparmor-utils in instructions

@zdanl
Copy link
Author

zdanl commented May 5, 2024

Running make build-tests-all gives me another weird error.

build/images/rootfs-tools-v0.15.0.ext2: OK
/usr/local/bin/lua5.4 ./lua/create-machines.lua
/usr/local/bin/lua5.4: ./lua/create-machines.lua:142: unexpected symbol near '<'
make[1]: *** [Makefile:176: /root/machine-emulator/tests/build/cmio] Error 1
make[1]: Leaving directory '/root/machine-emulator/tests'
make: *** [Makefile:239: build-tests-all] Error 2

@zdanl
Copy link
Author

zdanl commented May 5, 2024

I don't want to be an annoyance, but this is beyond me. Build complete, Lua instructions followed.

root@isrupin32:~/machine-emulator# cartesi-machine
lua5.4: /usr/local/share/lua/5.4/cartesi-machine.lua:572: unexpected symbol near '<'
root@isrupin32:~/machine-emulator#

This is the line in question

local ram_length = 128 << 20 -- 128MB

@zdanl zdanl changed the title $Targetplatform not parsed, set, ignored Getting the thing to run from source, following instructions May 5, 2024
@zdanl
Copy link
Author

zdanl commented May 5, 2024

Screenshot 2024-05-06 at 00 03 10

@zdanl
Copy link
Author

zdanl commented May 5, 2024

FYI sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.4 130 \ is required to fix it

@zdanl
Copy link
Author

zdanl commented May 5, 2024

There seems to be a problem with

install: cannot stat '/root/machine-emulator/uarch/uarch-ram.bin': No such file or directory
make: *** [Makefile:365: install-uarch] Error 1

Despite all efforts, the file exists, but can not be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant