noob who just installed roc (hopefully) and is trying to follow the tutorial. When i roc dev
I get the following error:
roc dev
libc++abi: terminating due to uncaught exception of type std::runtime_error: file is already signed. pass -f to sign regardless.
thread 'main' panicked at crates/compiler/build/src/program.rs:1031:17:
not yet implemented: gracefully handle `ld` (or `zig` in the case of wasm with --optimize) returning exit code None
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I have no clue what to do. I am on MacOs silicon m1 MacBook Air. Thanks for any suggestions
Hi @bernardino,
Can you share your macos version?
Screenshot-2024-08-14-alle-11.12.40.png
HI @Anton sure!
Thanks, I'll try to reproduce and resolve your issue today
Are you able to provide any more information to help me reproduce?
Screenshot-2024-08-14-at-19.17.49.png
Are you using one of the nightlies downloaded from the website or through nix?
(deleted)
Compiled from source
$ file /Users/luke/Documents/GitHub/roc/target/release/roc
/Users/luke/Documents/GitHub/roc/target/release/roc: Mach-O 64-bit executable arm64
Yes, I am - just basically following the installation instructions
Screenshot-2024-08-14-alle-11.29.47.png
I am pretty sure I am missing something obvious here :=
I exported to PATH and I am not running roc dev from the installation folder .... I don't see how that could be it though
I downloaded with curl -OL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-macos_apple_silicon-latest.tar.gz
Oh yeah, I goofed up. I hadn't realised the terminal I was in was ssh'd into my linux machine.
19:33:26 ~/roc_nightly-macos_apple_silicon-2024-07-13-070d14a5d60 $ ls
LEGAL_DETAILS crates lib main.roc roc_language_server
LICENSE examples main roc
19:33:54 ~/roc_nightly-macos_apple_silicon-2024-07-13-070d14a5d60 $ file ./roc
./roc: Mach-O 64-bit executable arm64
19:33:58 ~/roc_nightly-macos_apple_silicon-2024-07-13-070d14a5d60 $ ./roc main.roc
I'm a Roc application!
Works ok for me
Screenshot-2024-08-14-alle-11.35.45.png
I get the same problem even within the install dir
@bernardino have you created the main.roc
file as in the tutorial?
FWIW I don't think you are doing anything wrong. It all looks ok -- there must be a bug here I think.
I literally copy-pasted
main.roc
I must have installed a library or something at some point using homebrew. Maybe it was an xcode thing.
I can't reproduce this either with same OS version and m2 cpu but there are some things we can try.
@bernardino can you try running xcode-select --install
in the terminal and try roc dev main.roc
again?
If that does not work, this may be a temporary workaround:
roc dev main.roc --linker=legacy
Screenshot-2024-08-14-alle-12.34.03.png
Still not successful ;(
I tried uninstalling and reinstalling from scratch by the way
I have an idea for a possible fix, I'll make a release for you to try...
Thanks @Anton
Can you try this?
Screenshot-2024-08-14-alle-15.49.06.png nope sorry @Anton
Can you share the output of which codesign
? I think you've got something similar going on as here.
Screenshot-2024-08-14-alle-16.49.00.png
bingo
Hang on, I'm going to find you a proper fix because your codesign setup will cause problems for other programs as well
So this codesign
library should be in a different path? I'm not sure I know what it is .... :face_with_diagonal_mouth:
Can you do cat ~/.zshrc | grep anaconda
and share the output?
Screenshot-2024-08-14-alle-16.59.40.png
Yes, as expected, can you edit ~/.zshrc and replace export PATH="/Users/bernardino/opt/anaconda3/bin:$PATH"
with export PATH="$PATH:/Users/bernardino/opt/anaconda3/bin"
?
After you have edited and saved that file, open a new terminal and roc dev main.roc
should work
Screenshot-2024-08-14-alle-17.11.49.png
This is what I see in my zsrch you mean edit the line inside the conditional? Won't that bork potentially other stuff? Forgive me, I have very little idea about all this
Won't that bork potentially other stuff?
If you already had python or pip installed before anaconda, it may use those instead of the anaconda ones. A completely safe alternative would be to execute export PATH="/usr/bin:$PATH"
once in the terminal before you use roc.
I have a fix ready that will fix this in future Roc releases, but it will take a while before a new nightly comes out.
Screenshot-2024-08-14-alle-17.24.59.png
Hey! That worked!!!! Thanks so much for your patience and assistance. (I have no idea what just went on but cool)
If you ever have any codesign problems with other programs, running export PATH="/usr/bin:$PATH"
should always fix it
I'll make an issue with the folks from anaconda to see if this can be prevented
@bernardino, can you reply on the anaconda issue here?
Hey @Anton I happily would but I am not sure what I used...
Last updated: Jul 06 2025 at 12:14 UTC