You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NEURON branch release/8.2 fails to build from source on MacOS 14 with AppleClang 15.0.0.15000309. Tested on Python 3.9, but others may be affected as well.
Overview of the issue
The error that occurs when running build_wheels.bash osx 3.9 coreneuron is:
In file included from nrn/src/nrniv/pysecname2sec.cpp:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:2777:33: error: no member named 'hoc_begin' in 'std::initializer_list<bool>'__construct_at_end(__il.begin(), __il.end(), __n);
~~~~ ^
nrn/src/oc/redef.h:32:28: note: expanded from macro 'begin'
#definebegin hoc_begin
^
5 errors generated.
make[2]: *** [src/nrniv/CMakeFiles/nrniv_lib.dir/pysecname2sec.cpp.o] Error 1
Is begin the only clash, or other there others too, e.g. data or type. The begin is easily fixed, just remove the #define from the header. The other data and type would be a lot of tedious work.
The fix in 9.0 is to leave the renaming macros mostly intact, but the few that cause issues have been removed.
Context
NEURON branch
release/8.2
fails to build from source on MacOS 14 with AppleClang 15.0.0.15000309. Tested on Python 3.9, but others may be affected as well.Overview of the issue
The error that occurs when running
build_wheels.bash osx 3.9 coreneuron
is:It seems macro expansion is the culprit:
nrn/src/oc/redef.h
Line 32 in 078a34a
This was addressed on master in #1969, but the diff does not apply cleanly, and I'm not sure if it's compatible with 8.2.x.
The text was updated successfully, but these errors were encountered: