DEV Community 👩‍💻👨‍💻

Paul Walker
Paul Walker

Posted on • Originally published at solarwinter.net on

Building 'delta' on Alpine Linux

Short post for a change this time. :-)

I've just built delta on an Alpine Linux image. There were a couple of dependencies I had to install before it would build, and one of them puzzled me for a bit.

Cargo was building and failed on crti.o:

 = note: /usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
Enter fullscreen mode Exit fullscreen mode

apk search didn't show anything useful. So, for myself in the future (or anyone else who happens to be searching for this) - the package that provides crti.o for Alpine is musl-dev.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.