checkra1n/PongoOS

Cannot build with Ubuntu 21.04

306bobby opened this issue · 2 comments

I cannot build using the makefile, at the end I get this error:

could not process llvm bitcode object file, because /usr/bin/../lib/llvm/libLTO.so could not be loaded file '/tmp/stage3-419734.o' for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:99: build/Pongo] Error 1

First, I highly recommend you check out #85. Second, if you're on Ubuntu, try adding the Checkra1n repo (and some packages) by doing so:
echo 'deb https://assets.checkra.in/debian /' | sudo tee /etc/apt/sources.list.d/checkra1n.list
sudo apt-key adv --fetch-keys https://assets.checkra.in/debian/archive.key
sudo apt-get update
sudo apt-get install -y ld64 cctools-strip clang llvm gcc.

You can then run:
sudo make -C newlib distclean; sudo make -C newlib all and it should clean your build directory and build the first part anew.

Then, run: sudo make all

This is what worked for me on my WSL2 Ubuntu distro.

Here's a screenshot of what you should wind up with:
Output

EDIT: Sorry to necro an old issue. I just wanted to put this out there to help prevet future repeats of this problem.

Also, having this exact issue in ubuntu 20.04. Ran sudo make -C newlib distclean; sudo make -C newlib all then sudo make all with same results as originally posted. I can start a new ticket if preferred.