Compilation failed in Ubuntu20.04 with sdcc 4.1.0, what could be the problem?
$ sdcc --version
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.1.0 #12072 (Linux)
published under GNU General Public License (GPL)
$ more ../VERSION
v1.3.1
$ make -j
- Collect MCU config information
[mcu-model] STC89C52RC (code=8192B, iram=256B, xram=256B)
[mcu-clock] 11.059200 MHz
[prescaler] 12T mode
- Start to build!
CC ../src/tim.c
CC ../src/uart.c
CC ../src/gpio.c
CC ../src/tim2.c
CC ../src/wdt.c
../src/uart.c:28: warning 112: function 'complement' implicit declaration
../src/uart.c:28: error 101: too many parameters
../src/uart.c:28: error 45: operand invalid for bitwise operation
../src/uart.c:28: warning 113: left & right types are
void,unsigned-char fixed
../src/uart.c:321: warning 112: function 'complement' implicit declaration
../src/uart.c:321: error 101: too many parameters
This problem is caused by a offical changes in between sdcc v4.0.0 and sdcc v4.1.0(ref to r11619). We will follow this change from sdcc, and if you want to enjoy current version of HML now, try building it with sdcc v4.0.0. Thank you for your report
Compilation failed in Ubuntu20.04 with sdcc 4.1.0, what could be the problem?
I got the same error with v1.2.0.