To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 771
770  |  772
Subject: 
Re: Can't get Linux NQC to compile/Run
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 14 Sep 2000 00:58:34 GMT
Viewed: 
2485 times
  
Matthew Miller wrote:

Dean Husby <nntp@akasa.bc.ca> wrote:
/bin/sh: bison: command not found
Any ideas?

Yep. Install the bison package. :)

This is one of my gripes with mandrake, by the way. Their install program
makes it very easy to not install stuff which you will actually want.

After installing the bison package from the Ret Hat 6.1 CD I now get the
following. Even MORE errors then before...

[root@linux SPECS]# rpm -bb nqc.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.26034
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf nqc-2.2.r1
+ /bin/gzip -dc /usr/src/RPM/SOURCES/nqc-2.2.r1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nqc-2.2.r1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.64321
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd nqc-2.2.r1
+ make
g++ -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
bin/mkdata compiler/rcx1.nqh compiler/rcx1_nqh.h rcx1_nqh
bin/mkdata compiler/rcx2.nqh compiler/rcx2_nqh.h rcx2_nqh
bin/mkdata -s rcxlib/fastdl.srec rcxlib/rcxnub.h rcxnub
(cd compiler ; bison -y -d parse.y ; \
mv -f y.tab.c parse.cpp ; mv -f y.tab.h parse.tab.h )
g++ -c -O6 -pipe -Iplatform -Ircxlib -Inqc -Icompiler -Wall
-Wstrict-prototypes -Wmissing-prototypes -DDEFAULT_SERIAL_NAME='"/dev/ttyS0"'
nqc/nqc.cpp -o nqc/nqc.o
In file included from compiler/Program.h:33,
                 from nqc/nqc.cpp:27:
compiler/Scope.h:33: vector.h: No such file or directory
In file included from nqc/nqc.cpp:27:
compiler/Program.h:44: vector.h: No such file or directory
In file included from nqc/nqc.cpp:28:
rcxlib/RCX_Image.h:36: vector.h: No such file or directory
rcxlib/RCX_Image.h:37: string: No such file or directory
In file included from nqc/nqc.cpp:31:
compiler/PreProc.h:36: vector.h: No such file or directory
In file included from nqc/nqc.cpp:41:
compiler/Compiler.h:20: vector.h: No such file or directory
In file included from nqc/nqc.cpp:43:
nqc/CmdLine.h:21: vector.h: No such file or directory
In file included from compiler/Program.h:33,
                 from nqc/nqc.cpp:27:
compiler/Scope.h:61: syntax error before `;'
In file included from nqc/nqc.cpp:28:
rcxlib/RCX_Image.h:65: syntax error before `*'
rcxlib/RCX_Image.h:80: syntax error before `;'
rcxlib/RCX_Image.h:86: syntax error before `;'
rcxlib/RCX_Image.h:93: syntax error before `;'
In file included from nqc/nqc.cpp:31:
compiler/PreProc.h:79: syntax error before `;'
compiler/PreProc.h:80: syntax error before `;'
In file included from nqc/nqc.cpp:41:
compiler/Compiler.h:59: syntax error before `;'
compiler/Compiler.h: In method `class Buffer * Compiler::GetBuffer(int)':
compiler/Compiler.h:49: `fBuffers' undeclared (first use this function)
compiler/Compiler.h:49: (Each undeclared identifier is reported only once
compiler/Compiler.h:49: for each function it appears in.)
compiler/Compiler.h:49: warning: control reaches end of non-void function
`Compiler::GetBuffer(int)'
In file included from nqc/nqc.cpp:43:
nqc/CmdLine.h: At top level:
nqc/CmdLine.h:39: syntax error before `;'
nqc/CmdLine.h: In method `int CmdLine::Remain() const':
nqc/CmdLine.h:34: `fArgs' undeclared (first use this function)
nqc/CmdLine.h:34: warning: control reaches end of non-void function
`CmdLine::Remain() const'
nqc/CmdLine.h: In method `const char * CmdLine::Next()':
nqc/CmdLine.h:35: warning: control reaches end of non-void function
`CmdLine::Next()'
make: *** [nqc/nqc.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.64321 (%build)
[root@linux SPECS]#

This is very frustrating... Without NQC I can't finish this damn thing. Ugg...

But it's well beyond me in terms of what to do...

Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc



Message has 4 Replies:
  Re: Can't get Linux NQC to compile/Run
 
(...) The compiler can't find "vector.h" - which will cause lots of problems because without vector.h, all of the instantiations of the vector template won't make syntactic sense (leading to lots of random syntax errors later on in Scope.h and (...) (24 years ago, 14-Sep-00, to lugnet.robotics.rcx.nqc)
  Re: Can't get Linux NQC to compile/Run
 
(...) [snipped the rest] All the rest is a follow-up to the fact that vector.h is missing. As root, do "updatedb" followed by "locate vector.h" If it doesn't return anything, you need to install the egcs-c++ rpm, which is under (...) (24 years ago, 14-Sep-00, to lugnet.robotics.rcx.nqc)
  Re: Can't get Linux NQC to compile/Run
 
(...) On *my* system (relatively stock Mandrake-7.1), vector.h comes with the libstdc++-devel package. ht@katzenminze%pts/2 (13:01) ~ > locate vector.h /usr/include/g++-3/bvector.h /usr/include/g++-3/vector.h /usr/include/g++-3/s..._bvector.h (...) (24 years ago, 14-Sep-00, to lugnet.robotics.rcx.nqc)
  Re: Can't get Linux NQC to compile/Run
 
(...) Ok, did some poking around. In Red Hat 6.2 and in Mandrake 6.1, vector.h is part of "egcs-c++". With Red Hat 7.0 beta, vector.h is part of "libstdc++-devel". I looked on a Mandrake 7.1 mirror and could find neither package. However, I checked (...) (24 years ago, 14-Sep-00, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: Can't get Linux NQC to compile/Run
 
(...) Yep. Install the bison package. :) This is one of my gripes with mandrake, by the way. Their install program makes it very easy to not install stuff which you will actually want. (24 years ago, 13-Sep-00, to lugnet.robotics.rcx.nqc)

26 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR