Closed mcuee closed 8 months ago
No issues with the sdcc 3.9 release version. I wil test other release version.
Could you perhaps report this against sdcc? That seems like a regression then.
Could you perhaps report this against sdcc? That seems like a regression then.
I will try other sdcc release version and then report to sdcc. Thanks.
I just tried sdcc 4.2.0 release and it is okay. So there seems to be a regression in svn. I will report to sdcc.
Thanks! I'll close it here. Let me know if it's actually a libfx2 bug and I'll reopen.
Further discussion is in the mailing list. I will update further. https://sourceforge.net/p/sdcc/mailman/message/37851015/
The fix for the sdcc svn version as per the sdcc mailing list discussion.
diff --git a/firmware/library/fx2rules.mk b/firmware/library/fx2rules.mk
index 0a8e44b..7580f5a 100644
--- a/firmware/library/fx2rules.mk
+++ b/firmware/library/fx2rules.mk
@@ -36,7 +36,7 @@ $(LIBFX2)/.stamp: $(wildcard $(LIBFX2)/*.c $(LIBFX2)/*.asm $(LIBFX2)/include/*.h
-include build/*.d
build/%.rel: %.c
@mkdir -p $(dir $@)
- $(SDCC) -Wp,-MQ,$@,-MMD,build/$*.d -c -o $@ $<
+ $(SDCC) -Wp,-MQ,$@,-MMD,-MF,build/$*.d -c -o $@ $<
build/%.rel: %.asm
@mkdir -p $(dir $@)
Unfortunately it will break the build for the sdcc release version like latest 4.2.0 release.
@whitequark
BTW, the warnings 283 can be suppressed by the following as per @spth but he does not recommend to go this route.
#pragma disable_warning 283
Please also refer to the fix in fx2lib here.
That seems like an entirely unrelated fix.
@whitequark what do you think about a two-pass solution mentioned here - https://sourceforge.net/p/sdcc/mailman/message/37851121/ ?
Based on my testing, this seems to work both for sddc 4.3.0 and 4.2.0.
How about future SDCC 4.4.0? There already is SDCC 4.4.0 RC3.
Fixed in #15, thanks!
Somehow the build failed with latest svn version of sdcc. Tested under Ubuntu 20.04.