Code Monkey home page Code Monkey logo

Comments (9)

Zeta611 avatar Zeta611 commented on July 19, 2024 1

Bison should generate it. Did you make?

from polycalc.

Zeta611 avatar Zeta611 commented on July 19, 2024 1

I made a dirty fix for this: this manually runs Bison (GNU Bison 3.8.2 installed via brew) for poly.tab.h and make the compiler ignore impllicit-function-declaration error.

There should be a way to fix this by properly configuring dependencies in a Makefile, but I need some help for this.

Does it work now? I tested it on macOS 13.0.1.

from polycalc.

barracuda156 avatar barracuda156 commented on July 19, 2024 1

@Zeta611 Thank you, I will try today and update you.

Makefiles is not something I am comfortable with to fine-tune, but I can implement manual running of bison in pre-build stage in Macports.

from polycalc.

Zeta611 avatar Zeta611 commented on July 19, 2024 1

That’s good to hear!

from polycalc.

barracuda156 avatar barracuda156 commented on July 19, 2024

Bison should generate it. Did you make?

Yes, but I relied on Macports implementation. I will try doing it manually.
Bison is installed and dependency on it was declared in portfile.

from polycalc.

barracuda156 avatar barracuda156 commented on July 19, 2024

@Zeta611 Indeed, setting build.cmd to make fixed the build. Only few warnings are there:

build/./src/lex.yy.c:1199:16: warning: 'input' defined but not used [-Wunused-function]
 1199 | #else
      |                ^    
build/./src/lex.yy.c:1156:17: warning: 'yyunput' defined but not used [-Wunused-function]
 1156 | 
      |                 ^      
build/./src/poly.tab.c: In function 'yyparse':
build/./src/poly.tab.c:1074:16: warning: implicit declaration of function 'yylex' [-Wimplicit-function-declaration]
 1074 |       yychar = yylex ();
      |                ^~~~~
build/./src/poly.tab.c:1371:7: warning: implicit declaration of function 'yyerror'; did you mean 'yyerrok'? [-Wimplicit-function-declaration]
 1371 |       yyerror (env, verbose, YY_("syntax error"));
      |       ^~~~~~~
      |       yyerrok

from polycalc.

barracuda156 avatar barracuda156 commented on July 19, 2024

@Zeta611 Hmm, but with Clang again same error: https://github.com/macports/macports-ports/actions/runs/3826812968/jobs/6510900973

from polycalc.

Zeta611 avatar Zeta611 commented on July 19, 2024

I just tested on my Mac, and I can reproduce this issue. As noted in the README, I only tested on a Linux machine. I'll take a look at this issue as well.

from polycalc.

barracuda156 avatar barracuda156 commented on July 19, 2024

So yes, with your fix it builds successfully, both on my 10.6.8 Rosetta locally and on new macOS with Clang on Macports buildbots: macports/macports-ports#17179

from polycalc.

Related Issues (1)

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.