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

Bug: Mac llamafile make issue #1209

Open
dominiquebuford opened this issue Jun 9, 2024 · 1 comment
Open

Bug: Mac llamafile make issue #1209

dominiquebuford opened this issue Jun 9, 2024 · 1 comment
Labels
low severity Used to report low severity bugs (e.g. cosmetic issues, non critical UI glitches)

Comments

@dominiquebuford
Copy link

Contact Details

[email protected]

What happened?

I had to use the cosmocc/bin/make rather than Mac xcode command line tools make to build my llamafile. Now, when running I'm getting this error: libc++abi: terminating due to uncaught exception of type std::__2::system_error: random_device failed to open /dev/urandom: Operation not permitted

error: Uncaught SIGABRT (SI_0) on unknown pid 8218 tid 8218
/Users/dominiquebuford/Downloads/llava-phi.llamafile
Operation not permitted
Cosmopolitan 3.4.0 MODE=aarch64

Does anyone know how to fix this?

Version

12.3.0

What operating system are you seeing the problem on?

Mac

Relevant log output

No response

@dominiquebuford dominiquebuford added the low severity Used to report low severity bugs (e.g. cosmetic issues, non critical UI glitches) label Jun 9, 2024
@mrdomino
Copy link
Collaborator

mrdomino commented Jun 16, 2024

Refusing to compile with the macOS make is working as intended:

cosmopolitan/Makefile

Lines 90 to 93 in f9dd568

# apple still distributes a 17 year old version of gnu make
ifeq ($(MAKE_VERSION), 3.81)
$(error please use build/bootstrap/make)
endif

However failing to open /dev/urandom and then crashing is most certainly not.

Can you run the following and provide the output?

echo "macOS $(sw_vers -productVersion) $(uname -m)"
ls -al /dev/urandom

Also what commit do you have checked out in your llamafile repo, and what exactly is the command that you issued to build llamafile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low severity Used to report low severity bugs (e.g. cosmetic issues, non critical UI glitches)
Projects
None yet
Development

No branches or pull requests

2 participants