mknrndll fails when Xcode 4 is installed

Post Reply
sdanner
Posts: 5
Joined: Sat Aug 29, 2009 7:24 am

mknrndll fails when Xcode 4 is installed

Post by sdanner »

mknrndll seems to not work for me since I installed Xcode 4. I figured that the problem is the '-arch ppc' flag which causes gcc to fail, since ppc is not supported in the Xcode 4 toolchain.

Is it possible to remove the '-arch ppc' flag? Or am I wrong and there is a different problem?
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: mknrndll fails when Xcode 4 is installed

Post by ted »

What version of NEURON are you using? I would expect this to have been fixed some time ago.
sdanner
Posts: 5
Joined: Sat Aug 29, 2009 7:24 am

Re: mknrndll fails when Xcode 4 is installed

Post by sdanner »

My Neuron version is 7.1.
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: mknrndll fails when Xcode 4 is installed

Post by hines »

You should not use --enable-UniversalMacBinary . That adds that particular option to the compiler arguments.
The MAC has quite a few variations so I don't know what pattern you are following. i.e if you continue to have
problems, specify your build commands, especially the configure line.
sdanner
Posts: 5
Joined: Sat Aug 29, 2009 7:24 am

Re: mknrndll fails when Xcode 4 is installed

Post by sdanner »

Until now I just dropped the .mod files over mknrndll. What are my other options?
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: mknrndll fails when Xcode 4 is installed

Post by ted »

The original subject line
Problem with compiling when Xcode 4 is installed
was rather misleading, because it can be interpreted as "problem compiling NEURON . . . " when it is really about "problem compiling mod files . . . "
I have changed the subject lines of all messages in this thread to eliminate the ambiguity.
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: mknrndll fails when Xcode 4 is installed

Post by hines »

There should be a nrnmech_makefile in the nrn/umac/bin folder of your
NEURON installation. See if that file has any -arch ppc strings and if so
try deleting them (first, though, save a copy of the file).
Post Reply