emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
131 stars 35 forks source link

SDCC 4.3.0 cc1.exe problem #76

Closed dzid26 closed 1 month ago

dzid26 commented 10 months ago

cc1.exe: error: unrecognized command-line option '--obj-ext=.rel'

It shows up in this CI run: https://github.com/chgpalmer/TSDZ2-Smart-EBike-1/actions/runs/5979789568/job/16224594796#step:4:21

This is probably because sdcc.exe should be called instead of cc1.exe ??? Or maybe missing dependency: https://sourceforge.net/p/sdcc/discussion/1865/thread/83d2461277/

I don't remember the details, but I think I experienced it and my workaround was to move the environmental path higher on the priority list, (above Mingw or msys or whatever that may contain cc1 compiler - that we don't want to use.)

image

Alternatively just use SDCC version 4.2.0, which didn't have this problem.