LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in installation (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-installation-885404/)

h.aliee 06-09-2011 08:19 AM

problem in installation
 
hi,
I want to install simplescalar, but when I want to make the file, I encounter the following error. It seems that sys_nerr and sys_errlist are declined twice.

make
make[1]: Entering directory `/home/hana/Desktop/simpleScalar/binutils-2.5.2/libiberty'
gcc -c -g -I. -I./../include strerror.c
strerror.c:467: error: static declaration of ‘sys_nerr’ follows non-static declaration
/usr/include/bits/sys_errlist.h:27: error: previous declaration of ‘sys_nerr’ was here
strerror.c:468: error: conflicting types for ‘sys_errlist’
/usr/include/bits/sys_errlist.h:28: error: previous declaration of ‘sys_errlist’ was here
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/home/hana/Desktop/simpleScalar/binutils-2.5.2/libiberty'
make: *** [all-libiberty] Error 2

knudfl 06-09-2011 09:05 AM

The files are old ( 2007 ) : Use an old compiler.

sudo apt-get install gcc-3.4 ( From the Ubuntu Hardy repo.)


Using gcc-3.4 : 'make CC=gcc-3.4' worked with e.g. simplesim.

http://www.linuxquestions.org/questi...eating-863854/

http://www.linuxquestions.org/questi...a-12-a-799090/

http://www.linuxquestions.org/questi...clared-737015/

http://ubuntuforums.org/showthread.php?t=958199

..

h.aliee 06-09-2011 09:10 AM

Thank you very much
but I still have the following error: :((

make
make[1]: Entering directory `/home/hana/Desktop/simplescalar-v3/binutils-2.5.2/libiberty'
gcc-3.4 -c -g -I. -I./../include strerror.c
strerror.c:468: error: conflicting types for 'sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of 'sys_errlist' was here
strerror.c:468: error: conflicting types for 'sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of 'sys_errlist' was here
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/home/hana/Desktop/simplescalar-v3/binutils-2.5.2/libiberty'
make: *** [all-libiberty] Error 2

knudfl 06-09-2011 10:16 AM

Did you read the "Ubuntu link" in post # 2 ?
http://ubuntuforums.org/showthread.php?t=958199
Quote, #3: "Try installing simpleutils instead of binutils."

cd simpleutils-990811/ && export CC=gcc-3.4 &&
find . -type f -print0 | xargs -0 sed -i -e 's,yy_current_buffer,YY_CURRENT_BUFFER,g'
&& ./configure && make : No errors.

The "yy_current_buffer" issue is described in link number 3. See post #2.

..


All times are GMT -5. The time now is 05:13 PM.