A colleague, Rajan Prabu, compiled Relion1.4 and got it to work pretty nicely for MacOS X. He agreed to let me share it with you. Put it in your /Applications directory and source the setup file. Regards, mike https://datashare.biochem.mpg.de/index.php/s/GRMO5kOjnXcd6Xv On Tue, Apr 12, 2016 at 4:59 PM, Sjors Scheres <[log in to unmask]> wrote: > This fix is OK: it won't break anything. I'll do something similar in the > next release. > S > > > On 04/12/2016 03:43 PM, Felipe Merino wrote: > >> Hi Chuck, >> >> We had the same problem here before. It turns out that there is a macro >> in clang defining "errno" (in /usr/include/sys/errno.h) which clashed with >> the code. >> >> If you change >> >> void report_MPI_ERROR(int errno); >> >> in mpi.h for something like >> >> void report_MPI_ERROR(int _errno); >> >> then the compilation runs successfully. However, I fear that this will >> break some sort of mpi error handling, but the program runs. Incidentally, >> if you compile without mpi support the compilation will also run >> successfully. >> >> I hope that helps >> >> Best >> >> Felipe >> >> On 12/04/16 14:21, Charles Sindelar wrote: >> >>> Hi all, I couldn't find very much on compiling relion for apple mac's, >>> but I can't get it to work due to problems with mpi.cpp, .i.e. : >>> >>> src/mpi.cpp:95:20: error: cannot initialize a parameter of type 'int >>> (*(*)())' with an lvalue of >>> type 'int' >>> report_MPI_ERROR(result); >>> ^~~~~~ >>> ./src/mpi.h:83:31: note: passing argument to parameter '__error' here >>> void report_MPI_ERROR(int errno); >>> >>> I've tried this on 2 different operating systems (10.9 and 10.11) with >>> the same result. The error is quite strange: "result" is declared >>> previously as type "int", so it must be due to some internal thing related >>> to c++ objects? >>> >>> Thanks for any help, >>> >>> Chuck >>> >> >> > -- > Sjors Scheres > MRC Laboratory of Molecular Biology > Francis Crick Avenue, Cambridge Biomedical Campus > Cambridge CB2 0QH, U.K. > tel: +44 (0)1223 267061 > http://www2.mrc-lmb.cam.ac.uk/groups/scheres >