ElementsProject / ElementsProject/lightning

Unable to build Dockerfile on M2 OSX

Open
#7,812 4 comments 0 reactions 0 assignees View on GitHub
BOUNTY! 🫰 mac
Dominant language
C
Stars
3.1k
Forks
1k
Avg merge
4d 10h
Merged PRs (30d)
13

Description

I was starting to take a look at #7649, but I'm currently unable to build the Dockerfile from an M2 on OSX. Getting the following error:

```
------
> [builder 10/16] RUN ./configure --enable-static && make && poetry run make install:
0.153 CSANFLAGS =
0.307 Compiling ccan/tools/configurator/configurator...done
0.916 ./configure: 368: ccan/tools/configurator/configurator: not found
------
Dockerfile:202
--------------------
200 | RUN poetry lock --no-update && poetry install
201 |
202 | >>> RUN ./configure --enable-static && make && poetry run make install
203 |
204 | # Export the requirements for the plugins so we can install them in builder-python stage
--------------------
ERROR: failed to solve: process "/bin/sh -c ./configure --prefix=/tmp/lightning_install --enable-static && poetry run make install" did not complete successfully: exit code: 127
```

Fails on both `master` and `v24.08.2`. Tried out a bunch of local hacks to `/configure` and `Makefile` to play around with paths and prefixes for the `configurator`, but no luck so far.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.