Opened 16 months ago
Last modified 8 months ago
#70822 assigned defect
lparse @1.1.2: error: parse.cc.h: No such file or directory
| Reported by: | barracuda156 | Owned by: | nerdling (Jeremy Lavergne) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.1 |
| Keywords: | Cc: | ||
| Port: | lparse |
Description
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
Change History (3)
comment:1 Changed 9 months ago by barracuda156
comment:2 follow-up: 3 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)
| Summary: | lparse fails to build: error: parse.cc.h: No such file or directory → lparse @1.1.2: error: parse.cc.h: No such file or directory |
|---|
It looks like it renames parse.cc.h to parse.h:
Replying to barracuda156:
bison --defines=parse.cc.h -o parse.cc parse.yy && mv parse.cc.h parse.h
before it has finished using it under the name parse.cc.h:
parse.cc:146:22: error: parse.cc.h: No such file or directory
Have you tried disabling parallel building?
sudo port clean lparse sudo port install lparse build.jobs=1
comment:3 Changed 8 months ago by barracuda156
Replying to ryandesign:
Have you tried disabling parallel building?
sudo port clean lparse sudo port install lparse build.jobs=1
Yes, it still fails in the same manner:
$ sudo port -v -n build lparse build.jobs=1 ---> Computing dependencies for lparse. ---> Fetching distfiles for lparse ---> Verifying checksums for lparse ---> Checksumming lparse-1.1.2.tar.gz ---> Extracting lparse ---> Extracting lparse-1.1.2.tar.gz Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_lparse/lparse/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/lparse/lparse-1.1.2.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - ---> Applying patches to lparse ---> Applying fix-bison-version-detection.patch 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/patch -t -N -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/science/lparse/files/fix-bison-version-detection.patch' patching file configure ---> Applying respect-flags.patch 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/patch -t -N -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/science/lparse/files/respect-flags.patch' patching file configure ---> Applying fix-recursive-make.patch 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/patch -t -N -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/science/lparse/files/fix-recursive-make.patch' patching file Makefile.base ---> Applying avoid-namespace-collisions.patch 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/patch -t -N -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/science/lparse/files/avoid-namespace-collisions.patch' patching file src/instance.cc patching file src/error.h patching file src/library.cc patching file src/extern.h patching file src/symbol.cc patching file src/error.cc ---> Configuring 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" && ./configure --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_lparse/lparse/work/destroot/opt/local/bin CC="$CXX" Checking bison version ...3.8.2 Checking whether -ldl works ...found Creating Makefile ...done Creating src/Makefile ...done Creating src/config.h...done You can compile lparse now by typing 'make'. ---> 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 -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' /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c array.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c instance.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c literal.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c priority.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c term.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c debug.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c iterate.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c main.cc /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c rule.cc /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 /usr/bin/g++-4.2 -pipe -O3 -arch ppc -c lex.cc /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]: Leaving 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' make: *** [lparse] Error 2
Note: See
TracTickets for help on using
tickets.

This still fails.