[MacPorts] #70822: lparse fails to build: error: parse.cc.h: No such file or directory

MacPorts noreply at macports.org
Fri Sep 20 05:01:31 UTC 2024


#70822: lparse fails to build: error: parse.cc.h: No such file or directory
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  nerdling
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  lparse
--------------------------+----------------------
 Xcode gcc:
 {{{
 --->  Building lparse
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_lparse/lparse/work/lparse-1.1.2"
 && /usr/bin/make -j6 -w lparse
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_lparse/lparse/work/lparse-1.1.2'
 cd src && /usr/bin/make
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_lparse/lparse/work/lparse-1.1.2/src'
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c array.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c instance.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c literal.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c priority.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c term.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c debug.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c iterate.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c main.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c rule.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c error.cc
 bison --defines=parse.cc.h -o parse.cc parse.yy && mv parse.cc.h parse.h
 parse.yy: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
 parse.yy: warning: 70 reduce/reduce conflicts [-Wconflicts-rr]
 parse.yy: note: rerun with option '-Wcounterexamples' to generate conflict
 counterexamples
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c sm_smodels.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c extern.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c library.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c parsetree.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c smodels.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c graph.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c list.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c predicate.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c symbol.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c lex.cc
 ccache /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c parse.cc
 parse.cc:146:22: error: parse.cc.h: No such file or directory
 parse.cc:1251: error: ‘YYSTYPE’ has not been declared
 parse.cc:1268: error: ‘YYSTYPE’ does not name a type
 parse.cc: In function ‘int yyparse()’:
 parse.cc:1298: error: ‘YYSTYPE’ was not declared in this scope
 parse.cc:1298: error: expected `;' before ‘yyvsa’
 parse.cc:1299: error: ‘yyvs’ was not declared in this scope
 parse.cc:1299: error: ‘yyvsa’ was not declared in this scope
 parse.cc:1300: error: ‘yyvsp’ was not declared in this scope
 parse.cc:1309: error: expected `;' before ‘yyval’
 parse.cc:1321: error: ‘YYEMPTY’ was not declared in this scope
 parse.cc:1437: error: ‘YYEOF’ was not declared in this scope
 parse.cc:1443: error: ‘YYerror’ was not declared in this scope
 parse.cc:1449: error: ‘YYUNDEF’ was not declared in this scope
 parse.cc:1482: error: ‘yylval’ was not declared in this scope
 parse.cc:1515: error: ‘yyval’ was not declared in this scope
 parse.cc:2576: error: ‘YYEOF’ was not declared in this scope
 make[1]: *** [parse.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 }}}

 gcc14:
 {{{
 --->  Building lparse
 Executing:  cd
 "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_lparse/lparse/work/lparse-1.1.2"
 && /usr/bin/make -w lparse
 make: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_lparse/lparse/work/lparse-1.1.2'
 cd src && /usr/bin/make
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_lparse/lparse/work/lparse-1.1.2/src'
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c array.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c
 instance.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c
 literal.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c
 priority.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c term.cc
 term.cc: In constructor 'Function::Function(InstFunc, ParseNode*, const
 char*, long int, int)':
 term.cc:340:5: warning: use of an operand of type 'bool' in 'operator++'
 is deprecated [-Wdeprecated]
   340 |     allocated++;
       |     ^~~~~~~~~
 term.cc: In member function 'int Function::AddArgument(Term*)':
 term.cc:502:8: warning: use of an operand of type 'bool' in 'operator++'
 is deprecated [-Wdeprecated]
   502 |   args[allocated++] = t;
       |        ^~~~~~~~~
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c debug.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c
 iterate.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c main.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c rule.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c error.cc
 bison --defines=parse.cc.h -o parse.cc parse.yy && mv parse.cc.h parse.h
 parse.yy: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
 parse.yy: warning: 70 reduce/reduce conflicts [-Wconflicts-rr]
 parse.yy: note: rerun with option '-Wcounterexamples' to generate conflict
 counterexamples
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c lex.cc
 ccache /opt/local/bin/g++-mp-14 -pipe -Os -std=c++11 -arch ppc -c parse.cc
 parse.cc:146:10: fatal error: parse.cc.h: No such file or directory
   146 | #include "parse.cc.h"
       |          ^~~~~~~~~~~~
 compilation terminated.
 make[1]: *** [parse.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70822>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list