I came across an issue that I couldn't resolve, attempting to install the most recent developer version (changeset 1211:a63a18084f1c) of NEURON. I'm compiling using GCC as provided by Macports. Both the OS and installed ports are up to date.
Configuration (just avoiding some includes here):
Code: Select all
export CC=/opt/local/bin/gcc-mp-4.9 export CXX=/opt/local/bin/g++-mp-4.9 ./configure --prefix=/Applications/NEURON-7.4/nrn --without-iv --without-nrnpython --without-nrniv --without-nrnoc-x11 --without-paranrn
Code: Select all
gcc -g -arch i386 -Dncpu="\"x86_64\"" -I. ./launch.c ./mac2uxarg.c -framework Carbon In file included from /usr/include/dispatch/dispatch.h:51:0, from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:15, from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h:13, from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:55, from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19, from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20, from ./mac2uxarg.c:10: /usr/include/dispatch/object.h:143:15: error: expected identifier or '(' before '^' token typedef void (^dispatch_block_t)(void); ^ /usr/include/dispatch/object.h:362:3: error: unknown type name 'dispatch_block_t' dispatch_block_t notification_block); ^ ./mac2uxarg.c: In function 'fullname': ./mac2uxarg.c:93:7: warning: 'PBGetCatInfoSync' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8732) [-Wdeprecated-declarations] err = PBGetCatInfoSync(&myPB); ^ make: *** [install] Error 1 make: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 inm6078:nrn ehagen$