https://open-source-silicon.dev logo
t

Troy Benjegerdes

11/21/2020, 9:11 PM
Has anyone built the whole toolchain natively on a Mac yet?
a

aryap

11/21/2020, 9:13 PM
let me see if i can find it
t

tnt

11/21/2020, 9:14 PM
I remember someone trying it way back when it was first released. You can probably use my
openlane-baremetal
as a base.
t

Troy Benjegerdes

11/21/2020, 9:16 PM
I'm getting an M1 macbook so hopefully everything works on arm
a

aryap

11/21/2020, 9:21 PM
it’ll probbaly be easier to get this to run than it was to get e.g. ruby to run on my m1, since the dependencies for this project are pretty basic
here are some notes from @Ryan Thornton: Notes for mac setup: tcl and tk must be linked against X11 (brew doesn’t support) sudo port install tk +x11 For magic, to configure: ./configure --with-tcl=/opt/local/ --with-tk=/opt/local/ make CFLAGS=‘-Wno-implicit-function-declaration -I/opt/local/include’ Use ports to install xcb 1.13: $> git clone --single-branch https://github.com/macports/macports-ports.git $> cd macports-ports $> git checkout b0ba9280eab572558a893dd27e17f1ceade9ab38 $> cd x11/xorg-libxcb $> sudo port install $> cd ../xorg-xcb-proto $> sudo port install YOSYS:   new bison has to be installed   iverilog needs to be installed for make test Comment yosys and netlistsvg out of conda env after install Install bash >4
r

Ryan Thornton

11/21/2020, 9:30 PM
Magic is by far the hardest thing to get working, and as of this morning the newest magic segfaults on the rc5 tech files
t

tnt

11/21/2020, 9:32 PM
Mmm ... I'm using it just fine.
Oh wait. It might not be the very latest, it's a couple of days old.
r

Ryan Thornton

11/21/2020, 9:34 PM
The latest magic or PDK? A few days ago the pdk and an old version of magic were working, I might just have to check if a different branch functions better
t

tnt

11/21/2020, 9:34 PM
f934fc3cf5ede514c48de6b5d131e5db94970d2a
is magic and is recent.
PDK is
d8e2cf1ba006ed01468aa60e7f4e85a1ece74ca4
r

Ryan Thornton

11/21/2020, 9:35 PM
Thanks, I’ll test that out!
t

tnt

11/21/2020, 9:35 PM
Where did it crash ?
r

Ryan Thornton

11/21/2020, 9:36 PM
Magic segfaults when I try to load the tech files
t

tnt

11/21/2020, 9:37 PM
oh
t

Troy Benjegerdes

11/23/2020, 7:16 PM
@tnt https://github.com/smunaut is not loading, where is your openlane-baremetal repo?
t

tnt

11/23/2020, 7:37 PM
Welll there.
t

Troy Benjegerdes

11/23/2020, 7:41 PM
heh 😉 then I get this though, so that means more hacking when I don't have a 4 year old wanting to play games
Copy code
% /opt/local/bin/bash openlane_build.sh 
readlink: illegal option -- f
t

tnt

11/23/2020, 7:43 PM
Arf BSD 😕