[CWB] rcqp installation / compilation

Ruprecht von Waldenfels ruprecht.waldenfels at gmx.net
Sun Apr 23 16:20:26 CEST 2017


Hi,
I am (once again) trying to install rcqp on a linux machine, and an old 
problem surfaces (below) that I seem to have been able to solve last 
time, but I cannot figure out, how. This is on a 14.04 64 bit server.
It's the same error I got 18 months ago. However, the solution was to 
delete certain files from the distribution that I cannot find now.
What could be the problem? I am repeating the error here:
config.status: creating src/Makevars
** libs
bison -y  --defines=cwb/cqp/parser.tab.h -o cwb/cqp/parser.tab.c 
cwb/cqp/parser.y
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG     -g -O2 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
"-DREGISTRY_DEFAULT_PATH=\"/usr/local/share/cwb/registry\"" 
-I/opt/rcqp/rcwb/pkg/rcqp/src/cwb/cl 
-I/opt/rcqp/rcwb/pkg/rcqp/src/cwb/cqp -fpic  -O3 -pipe  -g  -c 
cwb/cqp/parser.tab.c -o cwb/cqp/parser.tab.o
In file included from /usr/include/stdlib.h:42:0,
                  from cwb/cqp/parser.y:29:
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:79:15: error: duplicate 
member ‘__w_retcode’
   unsigned int __w_retcode:8;
                ^
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:80:15: error: duplicate 
member ‘__w_coredump’
   unsigned int __w_coredump:1;
                ^
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:81:15: error: duplicate 
member ‘__w_termsig’
   unsigned int __w_termsig:7;
                ^
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:93:15: error: duplicate 
member ‘__w_stopsig’
   unsigned int __w_stopsig:8; /* Stopping signal.  */
                ^
/usr/include/x86_64-linux-gnu/bits/waitstatus.h:94:15: error: duplicate 
member ‘__w_stopval’
   unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
                ^
cwb/cqp/parser.tab.c: In function ‘yyparse’:
cwb/cqp/parser.tab.c:4228:9: warning: passing argument 1 of ‘yyerror’ 
discards ‘const’ qualifier from pointer target type [enabled by default]
          yyerror (yymsgp);
          ^
cwb/cqp/parser.y:70:6: note: expected ‘char *’ but argument is of type 
‘const char *’
  void yyerror (char *s)
       ^
make: *** [cwb/cqp/parser.tab.o] Error 1
ERROR: compilation failed for package ‘rcqp’
* removing ‘/home/parallel/R/x86_64-pc-linux-gnu-library/3.0/rcqp’


Best and thanks!
Ruprecht


Am 11.09.2015 um 19:51 schrieb Stefan Evert:
>> On 3 Sep 2015, at 01:32, Ruprecht von Waldenfels <ruprecht.waldenfels at gmx.net> wrote:
>>
>> I have been trying to install rcqp, the R package, on an Ubuntu 14.04 64 Bit server, and I ran into problems at the point where CWB is compiled.
>> However, I got an error which I could not figure out the reason for (see below).
>> ...
>> cwb/cqp/parser.tab.c: In function ‘yyparse’:
>> cwb/cqp/parser.tab.c:4228:9: warning: passing argument 1 of ‘yyerror’ discards ‘const’ qualifier from pointer target type [enabled by default]
>>           yyerror (yymsgp);
>>           ^
>> cwb/cqp/parser.y:70:6: note: expected ‘char *’ but argument is of type ‘const char *’
>>   void yyerror (char *s)
>>        ^
>> make: *** [cwb/cqp/parser.tab.o] Error 1
>> ERROR: compilation failed for package ‘rcqp’
> I suspect this is a mismatch between the flex / bison libs on your machine and the (auto-generated) bison parser included in the source distribution of the rcqp package.
>
> If you unpack the .tar.gz, remove the files named
>
> 	*.tab.*
> 	*.yy.*
>
> from subdirectories
>
> 	rcqp/src/cwb/cl
> 	rcqp/src/cwb/cqp
>
> and repack the tree under the same .tar.gz filename, the bison parser will be re-compiled when the package is installed and hopefully everything will be fine.
>
> Note to the package maintainer: I think you shouldn't include these generated files in the package, for the reason I just described. The INSTALL file says that flex / bison are needed anyway for installation, and your Makevars.in has all the necessary rules to rebuild the grammar (which don't fire because the pre-generated parser files in the distribution are newer than the parser source files).
>
>> Also, I was wondering how one was to proceed if one wanted the latest version of CWB with this?
> Yes, it would be great to keep rcqp up-to-date with CWB development.  I understand that the rcqp team had to make quite a few changes to the source code, so I"m not sure whether it would be feasible to re-integrate the code bases.
>
> If Andrew and I had a lot more spare time, we would have worked on this a few years ago when rcqp was released. :-(
>
> Best,
> Stefan
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb




More information about the CWB mailing list