Code Monkey home page Code Monkey logo

Comments (3)

stevengj avatar stevengj commented on June 19, 2024

This is a race condition that can be generated repeatedly by running rm src/errorflags.h src/errormessages.h && make -j16

Making all in src
/bin/sh ./gen_errorflags.sh ./boxes.c ./drawbox.c ./lexer.c ./parser.c
/bin/sh ./gen_errorflags.sh ./boxes.c ./drawbox.c ./lexer.c ./parser.c
Collecting error flags from ./boxes.c
Collecting error flags from ./boxes.c
Collecting error flags from ./drawbox.c
Collecting error flags from ./drawbox.c
Collecting error flags from ./lexer.c
Collecting error flags from ./lexer.c
Collecting error flags from ./parser.c
Collecting error flags from ./parser.c
rm: tmperrflags: No such file or directory
make[1]: *** [errormessages.h] Error 1
make: *** [all-recursive] Error 1

The problem is that it's trying to build both src/errorflags.h and src/errormessages.h in parallel, but these are generated by the same script using the same temp file.

A workaround for now is to use a serial build.

from libtexprintf.

stevengj avatar stevengj commented on June 19, 2024

The solution to generating multiple source files with a single rule is described in the automake manual: https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html

I'll send a PR shortly.

(It would be good to set up github actions CI as well, to catch these bugs by doing parallel builds from scratch for all PRs.)

from libtexprintf.

p-linnane avatar p-linnane commented on June 19, 2024

Thank you for the quick fix @stevengj!

from libtexprintf.

Related Issues (13)

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.