Skip to content

Instantly share code, notes, and snippets.

@strfry
Created May 21, 2018 12:28
Show Gist options
  • Save strfry/49a65f132d71422a9388a671eea60e34 to your computer and use it in GitHub Desktop.
Save strfry/49a65f132d71422a9388a671eea60e34 to your computer and use it in GitHub Desktop.
mkdir -p /tmp/alpine
sudo apk --root /tmp/alpine --initdb add --repositories-file=/etc/apk/repositories --keys-dir /etc/apk/keys/ --cache-dir /var/cache/apk alpine-base
sudo mount -o bind /proc [/tmp/alpine/proc/](file:///tmp/alpine/proc)
sudo cp /etc/apk/repositories /etc/apk/keys/ /tmp/alpine/etc/apk/
sudo cp [/etc/resolv.conf](file:///etc/resolv.conf) /tmp/alpine/etc
apk add alpine-sdk git autoconf automake libtool motif-dev flex bison
git clone <https://www-soc.lip6.fr/git/alliance.git>
cd alliance/alliance/src && [./autostuff](file:///home/strfry/Notebooks/Notes/C3D2/LibreSilicon/Alliance_Tutorial/autostuff)
[./configure](file:///home/strfry/Notebooks/Notes/C3D2/LibreSilicon/Alliance_Tutorial/configure)
make
When this error arrives:
ibtool: link: gcc -I../../mbk/src -I../../rds/src -I/include -g -O0 -o druc drucbath.o -L/lib -L. ./.libs/libVrd.a -lRds -lMut -lMph -L../../mbk/src ../../mbk/src/.libs/libMut.a ../../mbk/src/.libs/libMph.a -L./../../rds/src /root/alliance/alliance/src/rds/src/.libs/libRds.a -L./../../mbk/src /root/alliance/alliance/src/mbk/src/.libs/libMpu.a /root/alliance/alliance/src/mbk/src/.libs/libMph.a /root/alliance/alliance/src/mbk/src/.libs/libMut.a -lm
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lRds
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lMut
/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lMph
cd druc/src
# Delete the -lRds -lMut -lMph
gcc -I../../mbk/src -I../../rds/src -I/include -g -O0 -o druc drucbath.o -L/lib -L. ./.libs/libVrd.a -L../../mbk/src ../../mbk/src/.libs/libMut.a ../../mbk/src/.libs/libMph.a -L./../../rds/src /root/alliance/alliance/src/rds/src/.libs/libRds.a -L./../../mbk/src /root/alliance/alliance/src/mbk/src/.libs/libMpu.a /root/alliance/alliance/src/mbk/src/.libs/libMph.a /root/alliance/alliance/src/mbk/src/.libs/libMut.a -lm
#Continue with make
# Ignore errors about building documentation ()
make install
**Building a Design**
source /usr/local/etc/profile.d/alc_env.sh
# Follow the instructions in manual: <http://www.cc.toin.ac.jp/sc/palacios/openbook/vlsie.pdf>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment