Current time: 09-09-2010, 11:00 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Snow Leopard library problems
Author Message
rduncan Offline
Junior Member
**

Posts: 2
Joined: Oct 2009
Reputation: 0
Post: #1
Snow Leopard library problems
I've just installed the latest release, and I'm getting the following error when trying to use it under Snow Leopard:

ld: warning: in /Library/SystemC/Current/lib-macosx/libsystemc.a, missing required architecture x86_64 in file

Am I doing something wrong? How can I confirm which release I have installed?

Thanks,

Rob.
10-13-2009 03:00 PM
Find all posts by this user Quote this message in a reply
Jeff Offline
Logic Poet
*******

Posts: 58
Joined: Oct 2008
Reputation: 0
Post: #2
RE: Snow Leopard library problems
Hi Rob,

It looks like you are trying to compile this as a 64b executable, which is not supported by SystemC. If you are using the default project settings it should only be attempting a 32b compilation.

You can confirm what is happening by expanding the "Targets" item, right clicking on the target, and checking the value of the "Architectures" build setting in the build tab. This should be set to "32-bit Universal". If its not, try changing this to 32-bit Universal.

Which of the standard SystemC Xcode templates were you using when this came up?

Also, for some reason the README got dropped during the packaging, so the easy way to see the version doesn't work. For now you can see that you have the latest version by seeing that the /Library/SystemC/systemc-2.2.0/greensocs/gsgpsocket directory exists. This directory was not included in the old 1.0 installer.

Jeff

Jeff Wilcox
http://www.logicpoet.com
10-13-2009 03:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rduncan Offline
Junior Member
**

Posts: 2
Joined: Oct 2009
Reputation: 0
Post: #3
RE: Snow Leopard library problems
Hi Jeff,

Thanks for your quick response. I'm not using the Xcode templates; I'm using my own Makefile.

Adding "-arch i386" to CFLAGS seems to do the trick. On to the next problem!

Thanks,

Rob.
10-13-2009 03:29 PM
Find all posts by this user Quote this message in a reply
Jeff Offline
Logic Poet
*******

Posts: 58
Joined: Oct 2008
Reputation: 0
Post: #4
RE: Snow Leopard library problems
Ah good! Glad there was not an issue in the templates and glad you found the issue.

BTW, if you do get stuck again, you may want to create a simple SystemC XCode project (like the default hello world that is included in the template) and check out the build settings that it is using by looking at the output when you do a build.

Cheers,
Jeff

Jeff Wilcox
http://www.logicpoet.com
10-13-2009 03:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


Powered By MyBB, © 2002-2010 MyBB Group.