GithubHelp home page GithubHelp logo

Race condition in Makefile ? about coremark-pro HOT 3 OPEN

eembc avatar eembc commented on July 17, 2024
Race condition in Makefile ?

from coremark-pro.

Comments (3)

petertorelli avatar petertorelli commented on July 17, 2024

@XavierRaynaud,
Very interesting, thanks for filing. I'd prefer to root out the problem rather than add a delay: adding a variable is not always the best way to solve a race. Let's understand the root cause in the build logic. However, since make is also used as the runner as well as the compilation manager, and since the code isn't particularly large, I'd rather just advise against using make -j. -Peter

from coremark-pro.

XavierRaynaud avatar XavierRaynaud commented on July 17, 2024

$(TH_OBJS) contains "al/src/th_al.o"
$(MYDIRS) contains "al/src/"
"al/src/th_al.o" requires "al/src/" dir to be created (otherwise, it fails with given error above)

One thing is sure: the creation of $(MYDIRS) is not performed in the right place in the Makefile.

from coremark-pro.

petertorelli avatar petertorelli commented on July 17, 2024

Hmm. al/src isn't created, it is part of the repo. I'll keep an eye on this. If you can cause a failure repeatedly, that would help, but races are always hard to reproduce.

from coremark-pro.

Related Issues (19)

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.