Skip to content

Problem during installing and simulation on MacOS #2437

@AllinLeeYL

Description

@AllinLeeYL

Hi!
I encountered a few issues when installing the litex on MacOS. I am listing them here in case someone encountered the same problem as mine and may need a righ away solution. I also hope maybe there could be someone to fix this, or maybe me myself in the future😀.

  1. When executing ./litex_setup.py --gcc=riscv on MacOS, get prompt "No formulae or casks found for riscv-tools." My temporary solution is to execute "brew install riscv64-elf-gcc riscv64-elf-binutils" manually.
    Possible once for all solution: Modification on litex_setup.py script will solve this problem. Or refer to https://github.com/riscv-software-src/homebrew-riscv.
  2. There is a bug with executing litex_sim, possibily caused by verilator, that whenever I run litex_sim, I get an error prompt:
    dyld[78842]: Library not loaded: @rpath/libz.1.dylib Referenced from: <CAF4FD3A-72E8-39B5-A19B-57912CAAC8E0> /Users/yilin/playground/litex/build/sim/gateware/obj_dir/Vsim Reason: no LC_RPATH's found zsh: abort ./Vsim. My temporary solution is to add export LDFLAGS="${LDFLAGS} -Wl,-rpath,/usr/path-to-where-libz.1.dylib-exists to ~/.zshrc. May someone solve this?

I am using MacOS sequoia 15.7.4, homebew version 5.1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions