avr gcc tool chain problem

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sir
i am trying to make a gcc toolchain on linux with the help of link given in the gcc forum with buildscript on ubuntu 8.4 , but i am facing a problem on running the command
Run : ./buildinsight.sh

Quote:
make[2]: Entering directory `/usr/local/avr/build/insight-6.8/readline'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/avr/build/insight-6.8/readline'
Configuring in ./sim
Configuring in ./gdb
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/usr/local/avr/build/insight-6.8'
make: *** [all] Error 2
(./buildinsight.sh) insight build failed (0)
root@ubuntus:/home/amit/Desktop/make-avr-gcc#

after that i tryed the next command
Run: ./buildavr-no-insight.sh

and again found the error

Quote:

(./buildavr-no-insight.sh) building avrdude
make all-recursive
make[1]: Entering directory `/usr/local/avr/build/avrdude-5.5'
make[2]: Entering directory `/usr/local/avr/build/avrdude-5.5'
yacc -d ../../source/avrdude-5.5/config_gram.y
/bin/bash: yacc: command not found
make[2]: *** [config_gram.c] Error 127
make[2]: Leaving directory `/usr/local/avr/build/avrdude-5.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/avr/build/avrdude-5.5'
make: *** [all] Error 2
(./buildavr-no-insight.sh) avrdude build failed
root@ubuntus:/home/amit/Desktop/make-avr-gcc#

please help me out , what is this error 127 ? and how to resolve this?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

vijant_08 wrote:

/bin/bash: yacc: command not found

There's your problem. Install yacc.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sir
as u mentioned to install yacc

Quote:
The program 'yacc' can be found in the following packages:
* bison-1.35
* bison++
* btyacc
* perl-byacc
* byacc
* bison

which package i have to install

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have install all the packages one by one and the result is same know the error looks like

Quote:
gcc -g -O2 -o avrdude avrdude-main.o ./libavrdude.a
./libavrdude.a(libavrdude_a-config.o): In function `read_config':
/usr/local/avr/build/avrdude-5.5/../../source/avrdude-5.5/config.c:299: undefined reference to `yyin'
./libavrdude.a(libavrdude_a-config_gram.o): In function `yyparse':
/usr/share/bison++/bison.cc:730: undefined reference to `yylex'
collect2: ld returned 1 exit status
make[2]: *** [avrdude] Error 1
make[2]: Leaving directory `/usr/local/avr/build/avrdude-5.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/avr/build/avrdude-5.5'
make: *** [all] Error 2
(./buildavr-no-insight.sh) avrdude build failed
root@ubuntus:/home/amit/Desktop/make-avr-gcc#

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Install the packages from the pre-reqs.txt file

And if you want to be succesfull on linux , start out by always read the "readme files" in the source packages you download.

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't use Ubuntu, but http://packages.ubuntu.com/ tells that yyparse is contained in "bisonc++" for Hardy (8.04).

Note that it is "bisonc++" not "bison++".

Give it a try.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I installed bison and that fixed that problem