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
apt-get install libboost1.62-dev zlib1g-dev
./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
make
su
make install