This blog revision covers 3.6.9-10221 but should work for any fairly close version number. I’m using a vanilla Debian Stretch on x86_64 architecture.
I’m specifically excluding PIC processors at this time, they have additional prerequisites and include non-free code. I also do not cover the additional regression tests for the Z80.
sudo apt install build-essential libboost-all-dev bison flex texinfo
Go to http://sdcc.sourceforge.net/snap.php#Source and select a version under “SDCC Source Code (sdcc-src)” note: the current snapshot may not be functional software and may not even build.
Or download the version I used with:
cd ~/Downloads sdccver="20180206-10225"; wget -O sdcc.$sdccver.tar.bz2 https://sourceforge.net/projects/sdcc/files/snapshot_builds/sdcc-src/sdcc-src-$sdccver.tar.bz2/download#
tar -xvjf sdcc.$sdccver.tar.bz2
./configure --disable-pic14-port --disable-pic16-port
Check for errors in the above, it should be clean but building can sometimes go wrong. If you find errors, run make clean, fix the problem and re-run make.
sudo make install
Check the version to make sure it’s the one you installed with:
Stop by and visit at irc://irc.freenode.net:7000/#sdcc.