Re: yacc/bison error when building on OS X 10.10.5

Scott Stillwell <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
When using the “—with-bison” switch, it configures with no error, then yields the following on “make”

y.tab.c:12136:30: error: too few arguments to function call, expected 4, have 1
      yychar = yylex (&yylval);
               ~~~~~         ^
fgl.infx.yacc:251:1: note: 'a4gl_yylex' declared here
int a4gl_yylex (void *pyylval, int yystate, void *yys1, void *yys2);
^
fgl.infx.yacc:3609:48: warning: cast to 'void *' from smaller integer type 'int'
      [-Wint-to-void-pointer-cast]
    {(yyval.on_event)=new_event(EVENT_ON_IDLE, (void *)(yyvsp[-2].intege...
                                               ^
fgl.infx.yacc:3610:52: warning: cast to 'void *' from smaller integer type 'int'
      [-Wint-to-void-pointer-cast]
    {(yyval.on_event)=new_event(EVENT_ON_INTERVAL, (void *)(yyvsp[-2].in...
                                                   ^
fgl.infx.yacc:9136:37: warning: implicit declaration of function 'ispunct' is
      invalid in C99 [-Wimplicit-function-declaration]
                                if (ispunct(ptr[0]) && strlen(ptr)==1) {
                                    ^
fgl.infx.yacc:9143:24: warning: implicit declaration of function 'isalnum' is
      invalid in C99 [-Wimplicit-function-declaration]
                                        if (p2[0]=='*' && isalnum(plast)) {
                                                          ^
y.tab.c:32155:18: warning: passing 'const char *' to parameter of type 'char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        yyerror (yymsgp);
                 ^~~~~~
./a4gl_4glc_int.h:101:26: note: passing argument to parameter 's' here
void a4gl_yyerror (char *s);
                         ^
6 warnings and 1 error generated.
make[2]: *** [rules/generated/y.tab.o] Error 1
make[1]: *** [../bin/4glc] Error 2
make: *** [corecompile] Error 2

I have done a “make clean” and “make clean.tools” with no change in behavior.

I’ll try setting environment variables and see if that changes anything.


> On Nov 23, 2015, at 12:25 PM, Mike Aubury <[email protected]> wrote:
> 
> You should be able to do something like :
> 
> PATH=/usr/local/bin:$PATH
> export PATH
> 
> ./configure ....
> 
> 
> You can also try
> 
> ./configure --with-bison=/usr/local/bin
> 
> 
> 
> 
> On 23 November 2015 at 18:03, Scott Stillwell <[email protected]> wrote:
>> I’ve installed 3.0.4…is there a way to get the make process to use THAT version (it’s in /usr/local/bin rather than /usr/bin)?  I can’t replace the /usr/bin version as it’s a symbolic link to the actual file in Xcode and it’s quite possible to break Xcode itself.
>> 
>> 
>>> On Nov 23, 2015, at 10:38 AM, Mike Aubury <[email protected]> wrote:
>>> 
>>> Is there any chance of installing a newer version of Bison - afaics -
>>> 2.3 is from 2006 :)
>>> 
>>> (You can probably download and install it in a different place on your
>>> drive, then set the path to pick that newer version up instead)
>>> 
>>> 
>>> If not - we might need to find out what the equivalent of
>>> "%name-prefix" was on that version [ it might be a case that its just
>>> %name-prefix="a4gl_yy" ].
>>> 
>>> 
>>> On 23 November 2015 at 15:52, Scott Stillwell <[email protected]> wrote:
>>>> Sorry to increase bandwidth on this, but could be pertinent:
>>>> 
>>>> aubit4glsrc  gcc -v
>>>> Configured with: --prefix=/Applications/Xcode7.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
>>>> Apple LLVM version 7.0.0 (clang-700.1.76)
>>>> Target: x86_64-apple-darwin14.5.0
>>>> Thread model: posix
>>>> 
>>>> aubit4glsrc  bison --version
>>>> bison (GNU Bison) 2.3
>>>> Written by Robert Corbett and Richard Stallman.
>>>> 
>>>> Copyright (C) 2006 Free Software Foundation, Inc.
>>>> This is free software; see the source for copying conditions.  There is NO
>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>>> 
>>>> Scott
>>>> 
>>>>> On Nov 23, 2015, at 9:41 AM, Scott Stillwell <[email protected]> wrote:
>>>>> 
>>>>> Error received when ‘make’ing from either latest “relatively stable” source tarball or latest CVS.  Running Apple OS X 10.10.5 and several different versions of Xcode tried.
>>>>> 
>>>>> /usr/bin/make -C liblex/lex_esqlc
>>>>> /usr/bin/make -C ../../../compilers/4glc ../../incl/a4gl_API_lex_lib.h
>>>>> make[3]: `../../incl/a4gl_API_lex_lib.h' is up to date.
>>>>> /usr/bin/make -C ../../../compilers/4glc ../../incl/a4gl_API_lex.h
>>>>> make[3]: `../../incl/a4gl_API_lex.h' is up to date.
>>>>> /usr/bin/make -C ../../../compilers/4glc ../../incl/a4gl_API_parse_lib.h
>>>>> make[3]: `../../incl/a4gl_API_parse_lib.h' is up to date.
>>>>> /usr/bin/make -C ../../../compilers/4glc ../../incl/a4gl_API_parse.h
>>>>> make[3]: `../../incl/a4gl_API_parse.h' is up to date.
>>>>> /usr/bin/make -C ../../../compilers/4glc rules/generated/y.tab.c
>>>>> /usr/bin/make -C rules
>>>>> (cd generated; unset DEBUG; LANG=C LC_ALL=C /usr/bin/bison -y  -r all -d -v fgl.infx.yacc)
>>>>> fgl.infx.yacc:285.14-22: syntax error, unexpected string, expecting =
>>>>> make[4]: *** [generated/y.tab.c] Error 1
>>>>> make[3]: *** [rules/generated/y.tab.c] Error 2
>>>>> make[2]: *** [../../../compilers/4glc/rules/generated/y.tab.h] Error 2
>>>>> make[1]: *** [/Users/scott/src/aubit4glsrc/plugins-1.2_38/libLEX_EC.bundle] Error 2
>>>>> make: *** [corecompile] Error 2
>>>>> 
>>>>> Any other information needed, just ask.
>>>>> 
>>>>> Scott
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Go from Idea to Many App Stores Faster with Intel(R) XDK
>>>> Give your users amazing mobile app experiences with Intel(R) XDK.
>>>> Use one codebase in this all-in-one HTML5 development environment.
>>>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
>>>> _______________________________________________
>>>> Aubit4gl-discuss mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>> 
>> 
>> ------------------------------------------------------------------------------
>> Go from Idea to Many App Stores Faster with Intel(R) XDK
>> Give your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
>> _______________________________________________
>> Aubit4gl-discuss mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.