LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-06-2017, 12:53 PM   #1
nikhil32
LQ Newbie
 
Registered: Dec 2016
Location: India
Distribution: Fedora25,Kali Linux,
Posts: 5

Rep: Reputation: Disabled
make LANGUAGES="c c++" CFLAGS="-O3" CC="gcc" ...


Hi
i am trying to install simplescalar in ubuntu 16.04
i installed simplesim,simpleutils succesfully but while installing gcc-2.7.2.3 i am getting this error


$ make LANGUAGES="c c++" CFLAGS="-O3" CC="gcc"
gcc -DCROSS_COMPILE -DIN_GCC -O3 -o cc1 c-parse.o c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o dbxout.o sdbout.o dwarfout.o xcoffout.o integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o insn-attrtab.o ss.o getpwd.o convert.o bc-emit.o bc-optab.o obstack.o ` case "gcc" in "cc") echo "" ;; esac `
ss.o: In function `make_temp_file':
/home/nikhil/simplescalar/gcc-2.7.2.3/./config/ss/ss.c:3869: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
c-lex.o: In function `init_lex':
/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:197: undefined reference to `is_reserved_word'
/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:201: undefined reference to `is_reserved_word'
/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:202: undefined reference to `is_reserved_word'
/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:203: undefined reference to `is_reserved_word'
/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:204: undefined reference to `is_reserved_word'
c-lex.o:/home/nikhil/simplescalar/gcc-2.7.2.3/c-lex.c:205: more undefined references to `is_reserved_word' follow
collect2: error: ld returned 1 exit status
Makefile:969: recipe for target 'cc1' failed
make: *** [cc1] Error 1


could anyone help me out
 
Old 01-06-2017, 07:29 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,520

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
Quote:
installing gcc-2.7
and you will have issues
2.7 is ANTIQUE

it dates to the 1995 and the old 386 CPU


think of trying to install 16 bit windows 95 software on 64 bit windows 10
 
Old 01-07-2017, 11:14 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,769

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
Script for installation (first install the current version of gcc using your package manager)
http://github.com/sdenel/How-to-inst...impleScalar.sh
 
Old 01-07-2017, 03:24 PM   #4
nikhil32
LQ Newbie
 
Registered: Dec 2016
Location: India
Distribution: Fedora25,Kali Linux,
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for response guys,
But I have one doubt
Is latest gcc version work fine with simplescalar??
 
Old 01-07-2017, 05:09 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,520

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
the current testing is gcc 6
with gcc 4.8 as the long life stable

gcc 2.7 is from 1995/1996
TWENTY TWO YEARS AGO!!!!!
 
Old 01-08-2017, 10:37 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,769

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
Quote:
Originally Posted by nikhil32 View Post
Is latest gcc version work fine with simplescalar??
The instructions I pointed you to are dated November 2016, so they should be fine. The obvious solution is to try it and see what happens...
 
1 members found this post helpful.
Old 01-08-2017, 02:05 PM   #7
nikhil32
LQ Newbie
 
Registered: Dec 2016
Location: India
Distribution: Fedora25,Kali Linux,
Posts: 5

Original Poster
Rep: Reputation: Disabled
@DavidmcCann
i updated gcc version using apt-get and
I ran that bash script
i am getting these error


make[1]: Entering directory '/home/nikhil/SimpleScalar/gcc-2.6.3/cp'
gcc -DCROSS_COMPILE -DIN_GCC -DPOSIX -O3 -o ../cc1plus \
call.o decl.o errfn.o expr.o pt.o sig.o typeck2.o class.o decl2.o error.o gc.o lex.o parse.o ptree.o spew.o typeck.o cvt.o edsel.o except.o init.o method.o search.o tree.o xref.o `cat ../stamp-objlist` ../c-common.o `if [ xobstack.o != x ]; then echo ../obstack.o; else true; fi` `case "gcc" in "cc") if [ x != x ]; then echo ../; else true; fi ;; esac` `if [ x != x ]; then echo ../; else true; fi`
../aux-output.o: In function `make_temp_file':
aux-output.c.text+0xab): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
pt.o: In function `instantiate_class_template':
pt.c.text+0x2800): undefined reference to `feed_input'
pt.o: In function `do_pending_templates':
pt.c.text+0x48e8): undefined reference to `feed_input'
parse.o: In function `yyparse':
parse.c.text+0x5e7): undefined reference to `yyprint'
collect2: error: ld returned 1 exit status
Makefile:224: recipe for target '../cc1plus' failed
make[1]: *** [../cc1plus] Error 1
make[1]: Leaving directory '/home/nikhil/SimpleScalar/gcc-2.6.3/cp'
Makefile:706: recipe for target 'cc1plus' failed
make: *** [cc1plus] Error 2
 
Old 01-08-2017, 02:34 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,520

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
Quote:
Leaving directory '/home/nikhil/SimpleScalar/gcc-2.6.3/cp'
why are you trying to use the EVEN OLDER gcc 2.6
that is older than gcc 2.7 you used in the first post
 
Old 01-09-2017, 11:01 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,769

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
I too am baffled. If you have Ubuntu 16.04, then the gcc available is 5.3.1. A quick check shows that your gcc dates from 1994. Where did you find it? Ubuntu didn't even exist then!
 
  


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
Remapping a Northgate Omnikey "Omni" button to serve as a "Windows" or "Super" key. CVAlkan Linux - Hardware 6 01-07-2019 12:21 PM
[SOLVED] X: "loading extension glx" "no screens found" "fatal server error" (w/ nvidia driver) Geremia Slackware 7 12-29-2014 11:00 AM
[SOLVED] "net rpc" "failed to connect to ipc$ share on" or "unable to find a suitable server" larieu Linux - General 0 11-09-2014 12:45 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 AM.

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
Open Source Consulting | Domain Registration