LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2011, 09:19 AM   #1
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Rep: Reputation: 0
Question 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
 
Old 06-09-2011, 10:05 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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

..
 
Old 06-09-2011, 10:10 AM   #3
h.aliee
LQ Newbie
 
Registered: Sep 2010
Posts: 27

Original Poster
Rep: Reputation: 0
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
 
Old 06-09-2011, 11:16 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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.

..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PXE installation problem - can only select A series packages for installation Nylex Slackware 4 08-19-2010 03:15 PM
Installation of Binutils(configure:error:installation or configuration problem:C ...) h_r0019 Linux From Scratch 1 05-05-2007 08:40 AM
Redhat/Linux Installation Support??? Is It Red hat installation problem??? wanux Red Hat 1 08-01-2006 11:32 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 05:56 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration