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

Cannot build with Ubuntu 21.04 #91

Open
306bobby opened this issue Aug 26, 2021 · 2 comments
Open

Cannot build with Ubuntu 21.04 #91

306bobby opened this issue Aug 26, 2021 · 2 comments

Comments

@306bobby
Copy link

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

@TheModdersDen
Copy link

TheModdersDen commented Mar 20, 2022

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.

@veronduh
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants