Code Monkey home page Code Monkey logo

Comments (13)

whitequark avatar whitequark commented on September 26, 2024 1

Could you perhaps report this against sdcc? That seems like a regression then.

from libfx2.

spth avatar spth commented on September 26, 2024 1

How about future SDCC 4.4.0? There already is SDCC 4.4.0 RC3.

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

No issues with the sdcc 3.9 release version. I wil test other release version.

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

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.

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

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.

from libfx2.

whitequark avatar whitequark commented on September 26, 2024

Thanks! I'll close it here. Let me know if it's actually a libfx2 bug and I'll reopen.

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

Further discussion is in the mailing list. I will update further.
https://sourceforge.net/p/sdcc/mailman/message/37851015/

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

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.

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

@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

from libfx2.

mcuee avatar mcuee commented on September 26, 2024

Please also refer to the fix in fx2lib here.

from libfx2.

whitequark avatar whitequark commented on September 26, 2024

That seems like an entirely unrelated fix.

from libfx2.

carlossless avatar carlossless commented on September 26, 2024

@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.

from libfx2.

whitequark avatar whitequark commented on September 26, 2024

Fixed in #15, thanks!

from libfx2.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.