Opened 4 years ago

Closed 8 months ago

#61055 closed defect (fixed)

openscad @2015.03-3_7: build failure with newer bison versions - error: 'parser.tab.h' file not found

Reported by: dstrubbe (David Strubbe) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: fhgwright (Fred Wright)
Port: openscad, bison

Description

XCode 9.2, OSX 10.12.6. With bison @3.7.1_0 or 3.7_0 I get the errors below. It builds successfully with bison @3.6_4.

In file included from src/parser.y:38:
src/module.h:110:24: warning: 'FileModule::instantiate' hides overloaded virtual function [-Woverloaded-virtual]
        virtual AbstractNode *instantiate(const Context *ctx, const ModuleInstantiation *inst, EvalContext *evalctx = NULL);
                              ^
src/module.h:83:24: note: hidden overloaded virtual function 'Module::instantiate' declared here: different qualifiers (const vs none)
        virtual AbstractNode *instantiate(const Context *ctx, const ModuleInstantiation *inst, EvalContext *evalctx = NULL) const;
                              ^
parser.tab.c:145:10: fatal error: 'parser.tab.h' file not found
#include "parser.tab.h"
         ^~~~~~~~~~~~~~
1 warning and 1 error generated.

Attachments (1)

main_openscad_murray_2021-02-13.log (457.6 KB) - added by murrayE 3 years ago.
main.log - added by murray 2021-02-13

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

We've seen similar problems with bison 3.7 in some other ports, but as far as I know this is not considered a bug in bison; each port needs to be patched to accommodate how bison now works. Try updating openscad to a newer version first; maybe upstream has already fixed it.

comment:2 Changed 4 years ago by kencu (Ken)

Summary: openscad @2015.03-3_7: build failure with newer bison versionsopenscad @2015.03-3_7: build failure with newer bison versions - error: 'parser.tab.h' file not found

comment:3 Changed 3 years ago by murrayE

The same (I think) error is being generated during build of openscad @2015.03-3_8 under macOS Big Sur 11.2.1 using MacPorts 2.6.99 and Xcode CLT 12.4.

main.log is attached.

Changed 3 years ago by murrayE

main.log - added by murray 2021-02-13

comment:4 Changed 2 years ago by fhgwright (Fred Wright)

Cc: fhgwright added

comment:5 Changed 8 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

openscad has been updated, bison has been updated, several years have gone by, and this issue no longer happens.

https://ports.macports.org/port/openscad/details/

confirmed local build from source on 11.7.9

Note: See TracTickets for help on using tickets.