Can't build hex2bin on Linux

Page 2/2
1 |

By The Apeman

Expert (118)

The Apeman's picture

12-12-2020, 14:25

@lintweaker thanks, I did it manually and it worked.

@Wolverine_nl yes, Fusion-C uses SDCC, but hex2bin for Linux has to be compiled using GCC.

By ericb59

Paragon (1046)

ericb59's picture

12-12-2020, 15:49

Nice to see this problem is solved.
Thank all !

By the way if you can share this modified source code I will include it in the Fusion-c Package for other people who may have this issue...

By mcolom

Master (181)

mcolom's picture

12-12-2020, 16:03

I found the same issue some time ago.
The problem is that it doesn't compile with a recent version of gcc. But it's simple to fix, just adding this to the Makefile to force gcc 9:
CC = gcc-9

By mcolom

Master (181)

mcolom's picture

12-12-2020, 16:20

But better to apply the patch of lintweaker!
It'd be good to PR or tell the author for a permanent fix.

By Wolverine_nl

Paragon (1149)

Wolverine_nl's picture

12-12-2020, 21:38

The Apeman wrote:

@Wolverine_nl yes, Fusion-C uses SDCC, but hex2bin for Linux has to be compiled using GCC.

Thanks for the clarification. Smile

By The Apeman

Expert (118)

The Apeman's picture

13-12-2020, 10:40

mcolom wrote:

But better to apply the patch of lintweaker!
It'd be good to PR or tell the author for a permanent fix.

Yes, but how to contact him? I can't find him on Github, but only on SourceForge, which wants your firstborn's eternal soul if you want to create a login, and without a login you can't send him a message on that platform.

Anyway, they didn't maintain hex2bin after May 2017, so I consider it unmaintained (obviously, since it doesn't build in its current state) and it has a BSD License, so @ericb59, I will send you a merge request within a fortnight. It will make starting out with Fusion-C that much easier.

Page 2/2
1 |