Re: [Pdl-general] PDL for Apple Silicon

2021-01-05 Thread Karl Glazebrook via pdl-general
Hi Craig,

Yes the pgplot core dates from the 1980s and I first used it as a callow youth 
on a VAX 11/780 running VMS.   Of course the UNIX core in the Mac I am writing 
this email on dates from the 1970s!!

The various graphic systems drivers are more recent though, it only *feels* 
like a 20 year old program than a 40 year old one! 

These days I generally plot in something more modern like Matplotlib. It would 
be nice to have something like that for PDL.

I build SciPDL with PGPLOT because that is what all my 20 year old scripts use, 
that I occasionally resurrect. I’d be happy to look in to adding something else 
for you. PLplot? GNUplot?

Karl


> On 6 Jan 2021, at 2:36 am, Craig DeForest  wrote:
> 
> Wow, I haven’t used PGPLOT in a very, very long time.  That made me reflect a 
> bit.  When PGPLOT was first written, Jobs and Wozniak were still working on 
> the Apple ///.
> 
> 
>> On Jan 5, 2021, at 8:18 AM, Ed . > <mailto:ej...@hotmail.com>> wrote:
>> 
>> Hi Karl,
>>  
>> Could you capture on here what lines of code etc you changed, hopefully 
>> along with all the software versions you used etc, so that ideally someone 
>> else arriving fresh could do exactly what you did and get the same results?
>>  
>> Best regards,
>> Ed
>>  
>> From: Karl Glazebrook via pdl-general 
>> <mailto:pdl-general@lists.sourceforge.net>
>> Sent: 05 January 2021 08:13
>> To: Derek Lamb <mailto:de...@boulder.swri.edu>
>> Cc: pdl-general@lists.sourceforge.net 
>> <mailto:pdl-general@lists.sourceforge.net>
>> Subject: Re: [Pdl-general] PDL for Apple Silicon
>>  
>> Hi Derek,
>>  
>> I was using gcc and gfortran which I got from http://hpc.sourceforge.net 
>> <http://hpc.sourceforge.net/>
>>  
>> However this particular gcc seems buggy (libgsl make check  failed!) and I 
>> am looking next to re-compile everything consistently with either Apple CC 
>> or Apple GCC - still experimenting! Apple GCC avoids the libgsl problem and 
>> I expect it will also do fine for pgplot - both GCCs are gcc11 variants.
>>  
>> Note I am also using the X11 server that comes with Macports, which has been 
>> ported to the M1.
>>  
>> Not sure what is going on with that bug report - I’ve always built SciPDL 
>> with pgplot v5.3.1 which was the final version and may have fixed some bugs. 
>> I now see though it was never properly released. I would start by switching 
>> to that. I also tweaked one of the lines of code in one of the drivers and 
>> changed some folder defaults.
>>  
>> It would be great to get all of PDL, pgplot etc going in Macports. I now 
>> know a bunch of tricks for getting everything to build but I don’t really 
>> know how to write port files - I’d be most happy to work with you or 
>> whomever on this off-list.
>>  
>> best,
>>  
>> Karl
>>  
>>  
>>  
>> 
>> 
>> On 5 Jan 2021, at 8:39 am, Derek Lamb > <mailto:de...@boulder.swri.edu>> wrote:
>>  
>> Hi Karl,
>> 
>> I don't have any Apple Silicon to test on, but I'm wondering: how are you 
>> getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
>> compiler & version?  
>> 
>> I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
>> avoid segfaults (https://trac.macports.org/ticket/57726 
>> <https://trac.macports.org/ticket/57726>).  Are you using Homebrew, or 
>> building it from scratch?
>> 
>> Derek
>> 
>> 
>> On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
>> > <mailto:pdl-general@lists.sourceforge.net>> wrote:
>> 
>> Happy New Year everyone! Hopefully 2021 will be better than 2020.
>> 
>> I just got PDL built and working for Apple Silicon!
>> 
>> See screenshot, this is on a M1 MacBook Air.
>> 
>> A few wrinkles in the process, but not that bad.
>> 
>> Who wants to test a new SciPDL for Apple Silicon?
>> 
>> Karl
>> 
>> 
>> 
>> ___
>> pdl-general mailing list
>> pdl-general@lists.sourceforge.net <mailto:pdl-general@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/pdl-general 
>> <https://lists.sourceforge.net/lists/listinfo/pdl-general>
>>  
>>  
>>  
>> ___
>> pdl-general mailing list
>> pdl-general@lists.sourceforge.net <mailto:pdl-general@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/pdl-general 
>> <https://lists.sourceforge.net/lists/listinfo/pdl-general>

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] PDL for Apple Silicon

2021-01-05 Thread Karl Glazebrook via pdl-general
Yes I will. But let me run through it one more time first.



Karl


> On 6 Jan 2021, at 2:18 am, Ed .  wrote:
> 
> Hi Karl,
>  
> Could you capture on here what lines of code etc you changed, hopefully along 
> with all the software versions you used etc, so that ideally someone else 
> arriving fresh could do exactly what you did and get the same results?
>  
> Best regards,
> Ed
>  
> From: Karl Glazebrook via pdl-general 
> <mailto:pdl-general@lists.sourceforge.net>
> Sent: 05 January 2021 08:13
> To: Derek Lamb <mailto:de...@boulder.swri.edu>
> Cc: pdl-general@lists.sourceforge.net 
> <mailto:pdl-general@lists.sourceforge.net>
> Subject: Re: [Pdl-general] PDL for Apple Silicon
>  
> Hi Derek,
>  
> I was using gcc and gfortran which I got from http://hpc.sourceforge.net 
> <http://hpc.sourceforge.net/>
>  
> However this particular gcc seems buggy (libgsl make check  failed!) and I am 
> looking next to re-compile everything consistently with either Apple CC or 
> Apple GCC - still experimenting! Apple GCC avoids the libgsl problem and I 
> expect it will also do fine for pgplot - both GCCs are gcc11 variants.
>  
> Note I am also using the X11 server that comes with Macports, which has been 
> ported to the M1.
>  
> Not sure what is going on with that bug report - I’ve always built SciPDL 
> with pgplot v5.3.1 which was the final version and may have fixed some bugs. 
> I now see though it was never properly released. I would start by switching 
> to that. I also tweaked one of the lines of code in one of the drivers and 
> changed some folder defaults.
>  
> It would be great to get all of PDL, pgplot etc going in Macports. I now know 
> a bunch of tricks for getting everything to build but I don’t really know how 
> to write port files - I’d be most happy to work with you or whomever on this 
> off-list.
>  
> best,
>  
> Karl
>  
>  
>  
> 
> 
> On 5 Jan 2021, at 8:39 am, Derek Lamb  <mailto:de...@boulder.swri.edu>> wrote:
>  
> Hi Karl,
> 
> I don't have any Apple Silicon to test on, but I'm wondering: how are you 
> getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
> compiler & version?  
> 
> I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
> avoid segfaults (https://trac.macports.org/ticket/57726 
> <https://trac.macports.org/ticket/57726>).  Are you using Homebrew, or 
> building it from scratch?
> 
> Derek
> 
> 
> On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
>  <mailto:pdl-general@lists.sourceforge.net>> wrote:
> 
> Happy New Year everyone! Hopefully 2021 will be better than 2020.
> 
> I just got PDL built and working for Apple Silicon!
> 
> See screenshot, this is on a M1 MacBook Air.
> 
> A few wrinkles in the process, but not that bad.
> 
> Who wants to test a new SciPDL for Apple Silicon?
> 
> Karl
> 
> 
> 
> ___
> pdl-general mailing list
> pdl-general@lists.sourceforge.net <mailto:pdl-general@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/pdl-general

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] PDL for Apple Silicon

2021-01-05 Thread Craig DeForest
Wow, I haven’t used PGPLOT in a very, very long time.  That made me reflect a 
bit.  When PGPLOT was first written, Jobs and Wozniak were still working on the 
Apple ///.


> On Jan 5, 2021, at 8:18 AM, Ed .  wrote:
> 
> Hi Karl,
>  
> Could you capture on here what lines of code etc you changed, hopefully along 
> with all the software versions you used etc, so that ideally someone else 
> arriving fresh could do exactly what you did and get the same results?
>  
> Best regards,
> Ed
>  
> From: Karl Glazebrook via pdl-general 
> <mailto:pdl-general@lists.sourceforge.net>
> Sent: 05 January 2021 08:13
> To: Derek Lamb <mailto:de...@boulder.swri.edu>
> Cc: pdl-general@lists.sourceforge.net 
> <mailto:pdl-general@lists.sourceforge.net>
> Subject: Re: [Pdl-general] PDL for Apple Silicon
>  
> Hi Derek,
>  
> I was using gcc and gfortran which I got from http://hpc.sourceforge.net 
> <http://hpc.sourceforge.net/>
>  
> However this particular gcc seems buggy (libgsl make check  failed!) and I am 
> looking next to re-compile everything consistently with either Apple CC or 
> Apple GCC - still experimenting! Apple GCC avoids the libgsl problem and I 
> expect it will also do fine for pgplot - both GCCs are gcc11 variants.
>  
> Note I am also using the X11 server that comes with Macports, which has been 
> ported to the M1.
>  
> Not sure what is going on with that bug report - I’ve always built SciPDL 
> with pgplot v5.3.1 which was the final version and may have fixed some bugs. 
> I now see though it was never properly released. I would start by switching 
> to that. I also tweaked one of the lines of code in one of the drivers and 
> changed some folder defaults.
>  
> It would be great to get all of PDL, pgplot etc going in Macports. I now know 
> a bunch of tricks for getting everything to build but I don’t really know how 
> to write port files - I’d be most happy to work with you or whomever on this 
> off-list.
>  
> best,
>  
> Karl
>  
>  
>  
> 
> 
> On 5 Jan 2021, at 8:39 am, Derek Lamb  <mailto:de...@boulder.swri.edu>> wrote:
>  
> Hi Karl,
> 
> I don't have any Apple Silicon to test on, but I'm wondering: how are you 
> getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
> compiler & version?  
> 
> I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
> avoid segfaults (https://trac.macports.org/ticket/57726 
> <https://trac.macports.org/ticket/57726>).  Are you using Homebrew, or 
> building it from scratch?
> 
> Derek
> 
> 
> On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
>  <mailto:pdl-general@lists.sourceforge.net>> wrote:
> 
> Happy New Year everyone! Hopefully 2021 will be better than 2020.
> 
> I just got PDL built and working for Apple Silicon!
> 
> See screenshot, this is on a M1 MacBook Air.
> 
> A few wrinkles in the process, but not that bad.
> 
> Who wants to test a new SciPDL for Apple Silicon?
> 
> Karl
> 
> 
> 
> ___
> pdl-general mailing list
> pdl-general@lists.sourceforge.net <mailto:pdl-general@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/pdl-general
>  
>  
>  
> ___
> pdl-general mailing list
> pdl-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-general

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] PDL for Apple Silicon

2021-01-05 Thread Ed .
Hi Karl,

Could you capture on here what lines of code etc you changed, hopefully along 
with all the software versions you used etc, so that ideally someone else 
arriving fresh could do exactly what you did and get the same results?

Best regards,
Ed

From: Karl Glazebrook via pdl-general<mailto:pdl-general@lists.sourceforge.net>
Sent: 05 January 2021 08:13
To: Derek Lamb<mailto:de...@boulder.swri.edu>
Cc: pdl-general@lists.sourceforge.net<mailto:pdl-general@lists.sourceforge.net>
Subject: Re: [Pdl-general] PDL for Apple Silicon

Hi Derek,

I was using gcc and gfortran which I got from http://hpc.sourceforge.net

However this particular gcc seems buggy (libgsl make check  failed!) and I am 
looking next to re-compile everything consistently with either Apple CC or 
Apple GCC - still experimenting! Apple GCC avoids the libgsl problem and I 
expect it will also do fine for pgplot - both GCCs are gcc11 variants.

Note I am also using the X11 server that comes with Macports, which has been 
ported to the M1.

Not sure what is going on with that bug report - I’ve always built SciPDL with 
pgplot v5.3.1 which was the final version and may have fixed some bugs. I now 
see though it was never properly released. I would start by switching to that. 
I also tweaked one of the lines of code in one of the drivers and changed some 
folder defaults.

It would be great to get all of PDL, pgplot etc going in Macports. I now know a 
bunch of tricks for getting everything to build but I don’t really know how to 
write port files - I’d be most happy to work with you or whomever on this 
off-list.

best,

Karl





On 5 Jan 2021, at 8:39 am, Derek Lamb 
mailto:de...@boulder.swri.edu>> wrote:

Hi Karl,

I don't have any Apple Silicon to test on, but I'm wondering: how are you 
getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
compiler & version?

I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
avoid segfaults (https://trac.macports.org/ticket/57726).  Are you using 
Homebrew, or building it from scratch?

Derek


On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
mailto:pdl-general@lists.sourceforge.net>> 
wrote:

Happy New Year everyone! Hopefully 2021 will be better than 2020.

I just got PDL built and working for Apple Silicon!

See screenshot, this is on a M1 MacBook Air.

A few wrinkles in the process, but not that bad.

Who wants to test a new SciPDL for Apple Silicon?

Karl



___________
pdl-general mailing list
pdl-general@lists.sourceforge.net<mailto:pdl-general@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/pdl-general



___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] PDL for Apple Silicon

2021-01-05 Thread Karl Glazebrook via pdl-general
Hi Derek,

I was using gcc and gfortran which I got from http://hpc.sourceforge.net 
<http://hpc.sourceforge.net/>

However this particular gcc seems buggy (libgsl make check  failed!) and I am 
looking next to re-compile everything consistently with either Apple CC or 
Apple GCC - still experimenting! Apple GCC avoids the libgsl problem and I 
expect it will also do fine for pgplot - both GCCs are gcc11 variants.

Note I am also using the X11 server that comes with Macports, which has been 
ported to the M1.

Not sure what is going on with that bug report - I’ve always built SciPDL with 
pgplot v5.3.1 which was the final version and may have fixed some bugs. I now 
see though it was never properly released. I would start by switching to that. 
I also tweaked one of the lines of code in one of the drivers and changed some 
folder defaults.

It would be great to get all of PDL, pgplot etc going in Macports. I now know a 
bunch of tricks for getting everything to build but I don’t really know how to 
write port files - I’d be most happy to work with you or whomever on this 
off-list.

best,

Karl




> On 5 Jan 2021, at 8:39 am, Derek Lamb  wrote:
> 
> Hi Karl,
> 
> I don't have any Apple Silicon to test on, but I'm wondering: how are you 
> getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
> compiler & version?  
> 
> I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
> avoid segfaults (https://trac.macports.org/ticket/57726).  Are you using 
> Homebrew, or building it from scratch?
> 
> Derek
> 
>> On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
>>  wrote:
>> 
>> Happy New Year everyone! Hopefully 2021 will be better than 2020.
>> 
>> I just got PDL built and working for Apple Silicon!
>> 
>> See screenshot, this is on a M1 MacBook Air.
>> 
>> A few wrinkles in the process, but not that bad.
>> 
>> Who wants to test a new SciPDL for Apple Silicon?
>> 
>> Karl
>> 
>> 
>> 
>> ___
>> pdl-general mailing list
>> pdl-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pdl-general
> 

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] PDL for Apple Silicon

2021-01-04 Thread Derek Lamb
Hi Karl,

I don't have any Apple Silicon to test on, but I'm wondering: how are you 
getting that dinosaur pgplot (fortran lib, not the Perl) to compile?  What 
compiler & version?  

I'm using MacPorts and ever since gcc updated to version 8 I was not able to 
avoid segfaults (https://trac.macports.org/ticket/57726).  Are you using 
Homebrew, or building it from scratch?

Derek

> On Jan 2, 2021, at 11:23 PM, Karl Glazebrook via pdl-general 
>  wrote:
> 
> Happy New Year everyone! Hopefully 2021 will be better than 2020.
> 
> I just got PDL built and working for Apple Silicon!
> 
> See screenshot, this is on a M1 MacBook Air.
> 
> A few wrinkles in the process, but not that bad.
> 
> Who wants to test a new SciPDL for Apple Silicon?
> 
> Karl
> 
> 
> 
> ___
> pdl-general mailing list
> pdl-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-general



___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general