New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

GCC and xcode.


Post Reply New Thread Subscribe

 
Thread Tools
macosuser

 
Member Since: Jun 24, 2010
Posts: 2
macosuser is on a distinguished road

macosuser is offline
Hi,
Is it possible to install GCC 4.5 in macos 10.6.4 and use in xcode 3.2.2?If possible how can i install it and use GCC4.5 in xcode 3.2.2?

How can i build the application using GCC4.5 in OSX 10.6.4 ?

The problem is our mac application crashes,while enabling openMp.The crash is observed in gomp_resolve_num_threads.
(GOMP_parallel_start at parallel.c:70
----> gomp_resolve_num_threads at parallel.c:48)

We are using MacOS 10.6.4 ,GCC 4.2 and xcode 3.2.2 .

Is there any solution for this?
-Thanks.
QUOTE Thanks
Nethfel

 
Member Since: Feb 25, 2009
Posts: 2,109
Nethfel is a glorious beacon of lightNethfel is a glorious beacon of lightNethfel is a glorious beacon of lightNethfel is a glorious beacon of lightNethfel is a glorious beacon of lightNethfel is a glorious beacon of light
Mac Specs: Late 2013 rMBP, i7, 750m gpu, OSX versions 10.9.3, 10.10

Nethfel is offline
Just out of curiosity, are you sure it's not a bug in your code? I went to OpenMP and compiled their test code on my system with Xcode 3.2.2 and it compiled and ran fine; granted it was extremely simple code, but it does appear that OpenMP is working at least on a basic level...

here's the code and my output:
Code:
#include <omp.h>
#include <stdio.h>
int main() {
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
}
output:
Code:
videoed-imac:test nethfel$ gcc -fopenmp omptest.c
videoed-imac:test nethfel$ ./a.out
Hello from thread 0, nthreads 2
Hello from thread 1, nthreads 2
videoed-imac:test nethfel$

My Macs: Late 2013 rMBP w/ 750m; Mac mini G4, 1.25 GHz, 512m ram (server); Late 2011 11" MBA, 1.8GHz i7, 4Gig Ram, 256Gig SSD, HD3000; Powerbook 12" G4 1.33GHz running Debian as a server; Apple TV (1080p version)
QUOTE Thanks
macosuser

 
Member Since: Jun 24, 2010
Posts: 2
macosuser is on a distinguished road

macosuser is offline
There is known bug in openMp,

SourceForge.net: Equalizer - Parallel Rendering: Detail: 1964341 - OpenMP crashes with multi-pipe configurations
QUOTE Thanks

Post Reply New Thread Subscribe


« IDVD Problem - DVD not working on all T.V's &/ or DVD players? | Question about Mail app »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Installing gcc on Mac OSX without re-installing XCode jigglypuff OS X - Development and Darwin 0 02-26-2010 12:16 AM
I cannot properly install gcc and gfortran gcordoba OS X - Development and Darwin 3 02-18-2010 04:28 PM
OpenMP and Xcode bamdad OS X - Apps and Games 0 10-02-2009 03:06 AM
gcc compiling jdgti OS X - Development and Darwin 5 09-20-2006 04:08 AM
gcc compiler, no stdio.h found lzco OS X - Development and Darwin 6 10-21-2005 04:23 PM

All times are GMT -4. The time now is 02:20 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?