A quite big stack to be pre-allocated ;-) Probably, I should check the assembly but, as always, the time is limited.
ok. I made openmp optional in macports just to avoid to download gcc(-devel). If someone want to give a try just need to select the variant with sudo port install ngspice +openmp
I don't find a way to close this ticket so feel free to close it.
That do the trick and the linking is working but I don't understand why openmp needs more that 2GB for the program and symbols. Thank you anyway! I remove openmp as default flag since it is not too much tested on macos+clang and also your script compile_macos.shdoesn't enable it. Thank you very much for the support and sorry for the noise ;-)
adding -fpie produces the same error. I am investigating if we have changed something on openmp because compiling without that it works fine.
I get a similar error on macOS 11 on arm64 with version 35 :info:build libtool: link: /Users/ra1nb0w/opt/macports/bin/clang-mp-12 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch arm64 -fopenmp -Wl,-headerpad_max_install_names -Wl,-syslibroot -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch arm64 -o ngspice ngspice-main.o ngspice-conf.o ngspice-ngspice.o spicelib/devices/dev.o -L/Users/ra1nb0w/opt/macports/lib frontend/.libs/libfte.a frontend/plotting/.libs/libplotting.a...
macports: absolute addressing not allowed in code signed PIE, but used in _main from ngspice-main.o.
I fixed the error blacklisting clang version lower than 500. Probably some incompatibility in c++ implementation. you can close the ticket and thank you for the support.