Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

gcc for modelsim 10.0c (problem with systemc simulation)

Status
Not open for further replies.

spman

Advanced Member level 4
Full Member level 1
Joined
Aug 15, 2010
Messages
113
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Visit site
Activity points
2,061
Hi

I want to do simulation for systemc with modelsim. Version of my modelsim is SE 10.0c.
At first I got this error :
# ** Error: (sccom-95) Your installation directory does not contain the appropriate GNU C++ compiler. Download and install the tarball from the ftp site (gcc-4.2.1-mingw32vc9.zip).
So I searched for the file (gcc-4.2.1-mingw32vc9.zip) and didn't find it.
Then I found gcc 4.2.1 at https://sourceforge.net/projects/mi...Version4/Previous Testing_ gcc-4.2.1-sjlj -2/ and downloaded gcc-core-4.2.1-sjlj-2.tar.gz and gcc-g++-4.2.1-sjlj-2.tar.gz and extracted their contents into the folder gcc-4.2.1-mingw32vc9 in the modelsim directory.

Now I don't get that error and compilation is started. But too many other errors are occurred! It seems errors are about finding functions, headers and libraries...
some of errors:
# C:\modeltech_10.0c\include\systemc/sc_signal_ports_mti.h:21: error: 'sprintf' was not declared in this scope
c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/cstdlib:72:20: error: stdlib.h: No such file or directory
# c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/cstdlib:117: error: '::div' has not been declared
# c:\modeltech_10.0c\gcc-4.2.1-mingw32vc9\bin\../lib/gcc/mingw32/4.2.1-sjlj/include/c++/mingw32/bits/c++locale.h:75: error: 'strcmp' is not a member of 'std'

I run the example in C:\modeltech_10.0c\examples\systemc\sc

What should I do?

Thanks in advance
 

Does anyone have gcc-4.2.1-mingw32vc9.zip or any link to it ? Perhaps this file solve the problem.
 

That's indeed what I meant. Well, so much for that plan. Did you find any ming flavored gcc there? Because if not either you have to search harder or they removed it. Because I'm pretty sure that in the past they had it for download on the ftp. In fact for 10.0c it should just be there. So I suggest you search harder. ;-) It should be named something like modelsim*-gcc-*-ming*.zip

So I guess you should be looking for a filename like "modelsim*-gcc-4.2.1-mingw32vc9.zip".
 

No! Unfortunately I couldn't find anything about gcc !
How about the gcc I found at sourceforge.net ? Anyway to utilize that?
 

Finally... Bless 4shared

**broken link removed**
 

No! Unfortunately I couldn't find anything about gcc !
How about the gcc I found at sourceforge.net ? Anyway to utilize that?

That's strange... What was the full ftp path where you looked? With full path I mean the directory on the ftp server as well. :p Because that ming zip should be right next to all the other modelsim 10.0c downloadable files. But oh well, you have found some other solution. :p

Mainly for other victims: gcc on sourceforge, could be, never tested it. The main reason why I'd stick with the modelsim provided one is that maybe they put in some additional files. And if your modelsim fails THEN ... you never know if it's because your installation skills are crap or just because you are missing that 1 magic file. So there's too much potential for wasting time there. :p
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top