Code Monkey home page Code Monkey logo

Comments (5)

ToBul avatar ToBul commented on September 26, 2024

Did you compile with the -j switch?
Try a fresh recompile without it.
A while back gcc hit a problem where it would run wild with -j. Somewhere around version 12 IIRC.
That's when I stopped using that switch.

FWIW
It's compiling ok for me in a slightly old version of Ubuntu and Manjaro.
Also ok in latest Win/MSYS.

from supermodel.

trzy avatar trzy commented on September 26, 2024

Just tried it on gcc 13.2.0 in Windows, no problems there. I think ToBul may be correct: parallel builds with -j can get screwed up. I'm not sure why. To me, the Musashi build rules look correctly specified.

from supermodel.

Shoegzer avatar Shoegzer commented on September 26, 2024

Thanks guys, good advice. It's compiling for me after trying again here too, so I'll close this. I am indeed building with -j9 on an 8-core, 16-thread CPU. I too had intermittent issues compiling supermodel with -j several years ago, though suddenly it stopped, I presume due to some specific commit. At least the blessing here is that we have a very narrow set of commits that seem to cause it to happen again, if that helps to trace the issue and resolve it once and for all, to avoid frivolous issue reports like this one in the future. On the other hand it may not be worth the effort.

from supermodel.

trzy avatar trzy commented on September 26, 2024

It's not the commits. It's the Makefile that's the problem. The Musashi 68K core includes a build step where an intermediate program has to be compiled and then used to generate the source code. I think the problem is that make is computing dependencies incorrectly and compiling before all files are ready.

from supermodel.

Shoegzer avatar Shoegzer commented on September 26, 2024

Thanks for the explanation. That makes sense, just curious why the issue hasn't surfaced for me in quite a while. Perhaps it just occurs less frequently now.

from supermodel.

Related Issues (20)

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.