Code Monkey home page Code Monkey logo

Comments (6)

hoosierEE avatar hoosierEE commented on August 26, 2024

Ah well I now have a very rudimentary understanding of Tup and this error is simply saying that we haven't yet made a config/macosx file for Tup to read.

from unbox.

iocane avatar iocane commented on August 26, 2024

That's right, we need to make a config/macosx file. I imagine it should be very similar to the linux file. If you want to try it out, copy the linux file, then I can help you fix any issues if you paste the output here.

from unbox.

hoosierEE avatar hoosierEE commented on August 26, 2024

Maybe making progress, not sure yet.

Merely changing the *.so into *.dylib is not sufficient to produce a working executable on OSX.

One issue I noticed so far:

In the file hostdefs.sym the line <pcreposix.h> should be "pcreposix.h" because it's a local include. This requires a change to sym2ijs.ijs because it's currently only looking for header files wrapped in angle brackets <likethis.h>.

I'll give it a go tomorrow if I have time.

from unbox.

iocane avatar iocane commented on August 26, 2024

I had the same problem with the sym2ijs script. Instead of changing it, I just added -an I option to gcc to tell it to search for headers in that directory. Maybe it's not being picked up properly or is more strict on Mac. Which compiler are you using?

from unbox.

hoosierEE avatar hoosierEE commented on August 26, 2024

I have both clang and gcc on that system so I'm not 100% sure, but the Tupfile tests for the presence of clang first so probably clang. Will test tomorrow.

from unbox.

iocane avatar iocane commented on August 26, 2024

Actually, after looking again I see that I did not add -Isrc/libj/defs to the compile command. I don't know why it works in Linux but the OSX compiler probably treats it differently than gcc on Linux. Try this when you get a chance: change this

: foreach $(defdir)/*.c |> ^ CC %f^ $(CC) %f -o %o |> bin/%B {defs}

to:

: foreach $(defdir)/*.c |> ^ CC %f^ $(CC) -Isrc/libj/defs %f -o %o |> bin/%B {defs}

from unbox.

Related Issues (12)

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.