LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Simplescalar: Problem installing simpleutils yy_current_buffer’ undeclared (http://www.linuxquestions.org/questions/linux-software-2/installing-simplescalar-problem-installing-simpleutils-yy_current_buffer%92-undeclared-737015/)

niteshg 07-01-2009 02:33 PM

Installing Simplescalar: Problem installing simpleutils yy_current_buffer’ undeclared
 
I have vmware running on windows with fedora core 9 as virtual os.
I am trying to install simplescalar simulator tool on it.

but while running "make" command for simpleutils installation I get the following error

ldlex.l: In function ‘yy_input’:
ldlex.l:589: error: ‘yy_current_buffer’ undeclared (first use in this function)
ldlex.l:589: error: (Each undeclared identifier is reported only once
ldlex.l:589: error: for each function it appears in.)
make[3]: *** [ldlex.o] Error 1
make[3]: Leaving directory `/home/vmplanet/SIMPLE_SCALAR/simpleutils-990811/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vmplanet/SIMPLE_SCALAR/simpleutils-990811/ld'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/vmplanet/SIMPLE_SCALAR/simpleutils-990811/ld'
make: *** [all-ld] Error 2



I follwed all the steps mentioned in the
http://harryscode.blogspot.com/2008/...plescalar.html
or
http://www.seas.gwu.edu/~cheng/211/P...ux-install.txt

i would really appreciate any pointers on this issue.

knudfl 07-03-2009 04:09 PM

Seems to be an expected issue ...
Google .. simplescalar ..

SimpleScalar 3.0 - BBSWiki 1 Jun 2008
http://wiki.bigbuddysociety.net/inde...mpleScalar_3.0
http://wiki.bigbuddysociety.net/inde...0#Installation

Please do all the commands by the text ....
And for the error you have ... this command : Quote :
Code:

find . -type f -print0 | xargs -0 sed -i -e 's,yy_current_buffer,YY_CURRENT_BUFFER,g'
If further problems in Fedora, you may have to use :
make CC=gcc34 (( make CC=gcc34 CXX=g++34 ))
... 'configure' has no options for C flags.
# yum install compat-gcc-34
provides /usr/bin/gcc34 .
# yum install compat-gcc-34-c++
provides /usr/bin/g++34 .
.....


All times are GMT -5. The time now is 06:35 AM.