Re: [Ifeffit] Building ifeffit Mac Mountain Lion
Hi Jeff,
Hope it's OK, but I'm CCing this to the ifeffit mailing list. I've
officially abandoned support for the Fortran version of Ifeffit, but I
know many people are still using it, so I'll try to give some
pointers. I haven't tried building on 10.8 (but Larch works fine for
me on it).
On Thu, Mar 21, 2013 at 3:34 PM, Jeff Terry
Hi Matt,
I am trying to build ifeffit for Mac OS 10.8 (Mountain Lion). I have built pgplot and the cpg library manually but cannot build it with your script.
I get the following error when building with the script.
Do you have any suggestions as to what might be causing this or another way that I can link pgplot to ifeffit?
Thanks,
Jeff
gfortran -c -O2 -fPIC /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:208.72:
& RECL=255, FORM='BINARY', IOSTAT=IER) 1 Warning: FORM specifier in OPEN statement at (1) has invalid value 'BINARY' /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:240.72:
& RECL=255, FORM='BINARY', IOSTAT=IER) 1 Warning: FORM specifier in OPEN statement at (1) has invalid value 'BINARY' /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:654.21:
BLKOUT(0) = 254 1 Error: Arithmetic overflow converting INTEGER(4) to INTEGER(1) at (1). This check can be disabled with the option -fno-range-check make: *** [gidriv.o] Error 1 gfortran -u -Wall -fPIC -O -o pgpack /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/fonts/pgpack.f Undefined symbols for architecture x86_64: "-Wall", referenced from: -u command line option ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [grfont.dat] Error 1 = Cleaning up and preparing for test
I think the last version of Ifeffi, from https://github.com/newville/ifeffit should work, at least to compile PGPLOT correctly. I've put most of the code I used to build Ifeffit on Mac OSX in the src/macosx directory on this repository: https://github.com/newville/ifeffit/tree/master/src/macosx Though, of course this makes many assumptions (such as, that gfortran and XCode are installed), and I really can't offer any support for these scripts and codes. Hope that helps, --Matt
Hi Matt,
No problem. I have succeeded in building and running ifeffit and pgplot on Mac OS X Mountain Lion 10.8.2. I thought this was the first step in building Demeter?
Should I be using Larch instead for this?
Jeff
Sent from my iPad
On Mar 21, 2013, at 9:12 PM, Matt Newville
Hi Jeff,
Hope it's OK, but I'm CCing this to the ifeffit mailing list. I've officially abandoned support for the Fortran version of Ifeffit, but I know many people are still using it, so I'll try to give some pointers. I haven't tried building on 10.8 (but Larch works fine for me on it).
On Thu, Mar 21, 2013 at 3:34 PM, Jeff Terry
wrote: Hi Matt,
I am trying to build ifeffit for Mac OS 10.8 (Mountain Lion). I have built pgplot and the cpg library manually but cannot build it with your script.
I get the following error when building with the script.
Do you have any suggestions as to what might be causing this or another way that I can link pgplot to ifeffit?
Thanks,
Jeff
gfortran -c -O2 -fPIC /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:208.72:
& RECL=255, FORM='BINARY', IOSTAT=IER) 1 Warning: FORM specifier in OPEN statement at (1) has invalid value 'BINARY' /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:240.72:
& RECL=255, FORM='BINARY', IOSTAT=IER) 1 Warning: FORM specifier in OPEN statement at (1) has invalid value 'BINARY' /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/drivers/gidriv.f:654.21:
BLKOUT(0) = 254 1 Error: Arithmetic overflow converting INTEGER(4) to INTEGER(1) at (1). This check can be disabled with the option -fno-range-check make: *** [gidriv.o] Error 1 gfortran -u -Wall -fPIC -O -o pgpack /Users/jterry/Downloads/ifeffit-1.2.11c/pgplot/fonts/pgpack.f Undefined symbols for architecture x86_64: "-Wall", referenced from: -u command line option ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [grfont.dat] Error 1 = Cleaning up and preparing for test
I think the last version of Ifeffi, from https://github.com/newville/ifeffit should work, at least to compile PGPLOT correctly. I've put most of the code I used to build Ifeffit on Mac OSX in the src/macosx directory on this repository: https://github.com/newville/ifeffit/tree/master/src/macosx
Though, of course this makes many assumptions (such as, that gfortran and XCode are installed), and I really can't offer any support for these scripts and codes.
Hope that helps,
--Matt
Hi Jeff,
On Thu, Mar 21, 2013 at 9:32 PM, IIT
Hi Matt,
No problem. I have succeeded in building and running ifeffit and pgplot on Mac OS X Mountain Lion 10.8.2. I thought this was the first step in building Demeter?
Should I be using Larch instead for this?
I'd say Yes. I may be biased, but not using PGPLOT is at least one obvious benefit. But, I think Demeter may not be ready for distribution with Larch. Bruce is working on it, and I think Athena is more or less working, but I don't know the full status. Either with Ifeffit or Larch as the back end, getting wxPerl working on OS X seems to be a large hassle. I've tried and failed several times on 10.6.8 (my current MacBook Pro is that out-of-data, I suppose). I'm willing to believe that having installed wxPython many times on this machine has trashed it for wxPerl. But I have tried (only once) building wxPerl on an 10.8 Mac mini at by beamline.... and also failed. It looks to be possible with MacPorts, but I have not succeeded in doing this myself. So, if you can solve that, I think the Mac OS X users would be very grateful..... --Matt
Two comments: (1) The current maintainer of wxperl claims (http://www.nntp.perl.org/group/perl.wxperl.users/2012/12/msg8628.html) that installation on the Mac should work out of the box since version 0.9915 (the current version at https://metacpan.org/module/Wx is 0.9917). I have not tried this myself, but mailing list participant Lyle Gordan has informed my privately that he was able to build wxperl and have it pass all its unit tests on his Mac. (2) I am, as Matt said, working on getting Demeter to use Larch. It's a work in progress. About 1/2 of Athena's functionality works with Larch. I have not yet started working on Artemis. It is time consuming, but not difficult, work. I will make an announcement when Athena fully supports Larch so that early adopters can help be suss out the bugs. B On Thursday, March 21, 2013 09:46:37 PM Matt Newville wrote:
Hi Jeff,
On Thu, Mar 21, 2013 at 9:32 PM, IIT
wrote: Hi Matt,
No problem. I have succeeded in building and running ifeffit and pgplot on Mac OS X Mountain Lion 10.8.2. I thought this was the first step in building Demeter?
Should I be using Larch instead for this?
I'd say Yes. I may be biased, but not using PGPLOT is at least one obvious benefit. But, I think Demeter may not be ready for distribution with Larch. Bruce is working on it, and I think Athena is more or less working, but I don't know the full status.
Either with Ifeffit or Larch as the back end, getting wxPerl working on OS X seems to be a large hassle. I've tried and failed several times on 10.6.8 (my current MacBook Pro is that out-of-data, I suppose). I'm willing to believe that having installed wxPython many times on this machine has trashed it for wxPerl. But I have tried (only once) building wxPerl on an 10.8 Mac mini at by beamline.... and also failed. It looks to be possible with MacPorts, but I have not succeeded in doing this myself.
So, if you can solve that, I think the Mac OS X users would be very grateful.....
--Matt _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Methods Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973 Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel
Hi Bruce,
Thanks for the update.
I will try that version on wxperl.
I will try Demeter with ifeffit then.
Jeff
Sent from my iPhone
On Mar 22, 2013, at 7:19 AM, Bruce Ravel
Two comments:
(1) The current maintainer of wxperl claims (http://www.nntp.perl.org/group/perl.wxperl.users/2012/12/msg8628.html) that installation on the Mac should work out of the box since version 0.9915 (the current version at https://metacpan.org/module/Wx is 0.9917). I have not tried this myself, but mailing list participant Lyle Gordan has informed my privately that he was able to build wxperl and have it pass all its unit tests on his Mac.
(2) I am, as Matt said, working on getting Demeter to use Larch. It's a work in progress. About 1/2 of Athena's functionality works with Larch. I have not yet started working on Artemis. It is time consuming, but not difficult, work. I will make an announcement when Athena fully supports Larch so that early adopters can help be suss out the bugs.
B
On Thursday, March 21, 2013 09:46:37 PM Matt Newville wrote:
Hi Jeff,
On Thu, Mar 21, 2013 at 9:32 PM, IIT
wrote: Hi Matt,
No problem. I have succeeded in building and running ifeffit and pgplot on Mac OS X Mountain Lion 10.8.2. I thought this was the first step in building Demeter?
Should I be using Larch instead for this?
I'd say Yes. I may be biased, but not using PGPLOT is at least one obvious benefit. But, I think Demeter may not be ready for distribution with Larch. Bruce is working on it, and I think Athena is more or less working, but I don't know the full status.
Either with Ifeffit or Larch as the back end, getting wxPerl working on OS X seems to be a large hassle. I've tried and failed several times on 10.6.8 (my current MacBook Pro is that out-of-data, I suppose). I'm willing to believe that having installed wxPython many times on this machine has trashed it for wxPerl. But I have tried (only once) building wxPerl on an 10.8 Mac mini at by beamline.... and also failed. It looks to be possible with MacPorts, but I have not succeeded in doing this myself.
So, if you can solve that, I think the Mac OS X users would be very grateful.....
--Matt _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
--
Bruce Ravel ------------------------------------ bravel@bnl.gov
National Institute of Standards and Technology Synchrotron Methods Group at NSLS --- Beamlines U7A, X24A, X23A2 Building 535A Upton NY, 11973
Homepage: http://xafs.org/BruceRavel Software: https://github.com/bruceravel _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
participants (4)
-
Bruce Ravel
-
IIT
-
Jeff Terry
-
Matt Newville