Page 1 of 1

mknrndll fails when Xcode 4 is installed

Posted: Thu Jun 02, 2011 4:40 am
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?

Re: mknrndll fails when Xcode 4 is installed

Posted: Thu Jun 02, 2011 10:38 am
by ted
What version of NEURON are you using? I would expect this to have been fixed some time ago.

Re: mknrndll fails when Xcode 4 is installed

Posted: Sun Jun 05, 2011 6:55 am
by sdanner
My Neuron version is 7.1.

Re: mknrndll fails when Xcode 4 is installed

Posted: Sun Jun 05, 2011 8:42 am
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.

Re: mknrndll fails when Xcode 4 is installed

Posted: Mon Jun 06, 2011 4:02 am
by sdanner
Until now I just dropped the .mod files over mknrndll. What are my other options?

Re: mknrndll fails when Xcode 4 is installed

Posted: Mon Jun 06, 2011 8:18 pm
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.

Re: mknrndll fails when Xcode 4 is installed

Posted: Tue Jun 07, 2011 3:45 am
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).