Build SDCC for PIC

Problem with gputils v1.5.x

When building with SDCC, v1.5.x outputs non-printable chars in the COFF file which causes MPLABX to fail loading the resulting binary.
Bad chars in COFF file

Compile SDCC

Need to be done for Debian, because Debian package doesn’t contain PIC part of compiler.

1
2
3
4
5
6
7
apt-get install libboost-dev zlib1g-dev bison flex texinfo autoconf
./configure --disable-mcs51-port --disable-z80-port --disable-z180-port --disable-r2k-port --disable-r3ka-port --disable-gbz80-port --disable-tlcs90-port --disable-ds390-port --disable-ds400-port --disable-hc08-port --disable-s08-port --disable-stm8-port
v4
./configure --disable-mcs51-port --disable-z80-port --disable-z180-port --disable-r2k-port --disable-r3ka-port --disable-gbz80-port --disable-tlcs90-port --disable-ds390-port --disable-ds400-port --disable-hc08-port --disable-s08-port --disable-stm8-port -disable-pdk15-port -disable-pdk13-port -disable-pdk14-port -disable-ez80_z80-port
make
su
make install