Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

admsXml will not compile with Bison 3.0 due to removal of deprecated features. #6

Closed
guitorri opened this Issue · 2 comments

4 participants

@guitorri

The compilation error boils down to:

Obsolete features removed on Bison 3.0:

  • Support for YYLEX_PARAM and YYPARSE_PARAM is removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or %param.

Removal is reported here: http://lists.gnu.org/archive/html/info-gnu/2013-08/msg00000.html

Similar error and a their fix is reported on: https://bugs.freedesktop.org/show_bug.cgi?id=67354

See the error message below:

/bin/sh ../auxconf/ylwrap admstpathYacc.y y.tab.c admstpathYacc.c y.tab.h `echo admstpathYacc.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output admstpathYacc.output -- bison -o y.tab.c  
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DinsideadmstpathYacc   -g -O2  -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c -o libadmsAdmstpath_la-admstpathYacc.lo `test -f 'admstpathYacc.c' || echo './'`admstpathYacc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DinsideadmstpathYacc -g -O2 -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c admstpathYacc.c  -fno-common -DPIC -o .libs/libadmsAdmstpath_la-admstpathYacc.o
admstpathYacc.c: In function ‘admstpathparse’:
admstpathYacc.c:15987: error: too few arguments to function ‘admstpathlex’
admstpathYacc.y:14708: error: ‘mypparse’ undeclared (first use in this function)
admstpathYacc.y:14708: error: (Each undeclared identifier is reported only once
admstpathYacc.y:14708: error: for each function it appears in.)
admstpathYacc.y: In function ‘pparse’:
admstpathYacc.y:15690: error: too many arguments to function ‘admstpathparse’
admstpathYacc.y: In function ‘tparse’:
admstpathYacc.y:15723: error: too many arguments to function ‘admstpathparse’
admstpathYacc.y: In function ‘apath_main’:
admstpathYacc.y:15762: error: too many arguments to function ‘admstpathparse’
make[2]: *** [libadmsAdmstpath_la-admstpathYacc.lo] Error 1
make[1]: *** [all-recursive] Error 1
[…]
~/git/ADMS_upverter $ grep -r admstpathparse .
./admsXml/admstpathYacc.c:#define yyparse         admstpathparse
./admsXml/admstpathYacc.c:int admstpathparse (void);
./admsXml/admstpathYacc.c:    admstpathparse (mypparse);
./admsXml/admstpathYacc.c:    admstpathparse (mypparse);
[…]
~/git/ADMS_upverter $ grep -ri yyparse .
./admsXml/admstpathYacc.c:#define yyparse         admstpathparse
./admsXml/admstpathYacc.c:#define YYPARSE_PARAM mypparse
@rcfox rcfox referenced this issue from a commit
@rcfox rcfox Remove YYLEX_PARAM and YYPARSE_PARAM in favour of %lex-param and %par…
…se-param. This should fix #6.
9cb4010
@rcfox rcfox closed this
@lutherthecat lutherthecat referenced this issue from a commit in lutherthecat/ADMS
@lutherthecat lutherthecat Updates from upverter for bison 3.
Remove YYLEX_PARAM and YYPARSE_PARAM in favour of %lex-param and %parse-param. This should fix #6.

Conflicts:
	admsXml/mkelements.pl
14aed82
@ClemensFMN

@lutherthecat : Thanks for providing / updating the cmake scripts - we are using adms in qucs (https://github.com/Qucs). Is it ok for you if we use your cmake scripts there?

@lutherthecat

@ClemensFMN, you have my permission to use the cmake scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.