Problem building latest demeter on Debian 32bit Stretch
Hello - We're trying to install demeter on a 32-bit system running Debian 9.2 Stretch. The 'perl Build.PL' and 'Build' run into no issues, but when we try running 'Build test' we get the following error messages: t/001_base.t ............ String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244. Compilation failed in require at t/001_base.t line 22. BEGIN failed--compilation aborted at t/001_base.t line 22. # Looks like your test exited with 255 before it could output anything. t/001_base.t ............ Failed 24/24 subtests t/002_types.t ........... String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244. The "croak" command not getting found appears to come from the "Carp" perl module - we have version 6.06-1 of the 'libcarp-clan-perl' package installed. Any suggestions as to what's causing this error? Again, the 'perl Build.PL' command shows no issues with the installed modules, but since most of them were installed from the Debian repository, maybe there's a discrepancy with the modules installed when we run './Build installdeps'? Thanks for any assistance - Al Kwiatkowski kwiatal@phys.iit.edu
Well ... the beam just dumped, so let's see if I can figure this out.... Demeter does not use Carp::Clan, so the version number of libcarp-clan-perl is irrelevant. This is a puzzler for me. I have never seen this problem over many, many versions of perl. So there is something I don't understand about your system. I cannot reproduce this problem, so it's going to be difficult to resolve. Try this: Put use Carp; just after line 257 of lib/Demeter/Plot/Gnuplot.pm. Line 257 is the one that says { no warnings 'redefine'; No guarantees, but maybe that'll help.... Let me know. B On 03/30/2018 10:19 AM, Al Kwiatkowski wrote:
Hello -
We're trying to install demeter on a 32-bit system running Debian 9.2 Stretch. The 'perl Build.PL' and 'Build' run into no issues, but when we try running 'Build test' we get the following error messages:
t/001_base.t ............ String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244. Compilation failed in require at t/001_base.t line 22. BEGIN failed--compilation aborted at t/001_base.t line 22. # Looks like your test exited with 255 before it could output anything. t/001_base.t ............ Failed 24/24 subtests t/002_types.t ........... String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244.
The "croak" command not getting found appears to come from the "Carp" perl module - we have version 6.06-1 of the 'libcarp-clan-perl' package installed. Any suggestions as to what's causing this error? Again, the 'perl Build.PL' command shows no issues with the installed modules, but since most of them were installed from the Debian repository, maybe there's a discrepancy with the modules installed when we run './Build installdeps'?
Thanks for any assistance -
Al Kwiatkowski kwiatal@phys.iit.edu _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Hm, we're getting somewhere. Putting the 'use Carp;' line now has dathena come up, but delivering this error: Use of uninitialized value in subroutine entry at /usr/local/lib/i386-linux-gnu/perl/5.24.1/Demeter/Plot/Gnuplot.pm line 29. and when you exit, it pops up a dialogue box with this error: Use of uninitialized value in stat at /usr/local/lib/i386-linux-gnu/perl/5.24.1/Demeter/Plot/Gnuplot.pm line 270. The program seems to behave ok otherwise, but I don't know what operations would have problems with an uninitialized gnuplot module variable or subroutine. Why would it have issues initializing in the first place (or not finding the Carp module)? Thanks for the help so far! Al
Well ... the beam just dumped, so let's see if I can figure this out....
Demeter does not use Carp::Clan, so the version number of libcarp-clan-perl is irrelevant.
This is a puzzler for me. I have never seen this problem over many, many versions of perl. So there is something I don't understand about your system. I cannot reproduce this problem, so it's going to be difficult to resolve.
Try this:
Put
use Carp;
just after line 257 of lib/Demeter/Plot/Gnuplot.pm. Line 257 is the one that says
{ no warnings 'redefine';
No guarantees, but maybe that'll help.... Let me know. B
On 03/30/2018 10:19 AM, Al Kwiatkowski wrote:
Hello -
We're trying to install demeter on a 32-bit system running Debian 9.2 Stretch. The 'perl Build.PL' and 'Build' run into no issues, but when we try running 'Build test' we get the following error messages:
t/001_base.t ............ String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244. Compilation failed in require at t/001_base.t line 22. BEGIN failed--compilation aborted at t/001_base.t line 22. # Looks like your test exited with 255 before it could output anything. t/001_base.t ............ Failed 24/24 subtests t/002_types.t ........... String found where operator expected at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" (Do you need to predeclare croak?) syntax error at /home/kwiatal/sources/demeter-master/blib/lib/Demeter/Plot/Gnuplot.pm line 273, near "croak "Couldn't unlink $self->{__error_log}: $!"" Compilation failed in require at /home/kwiatal/sources/demeter-master/blib/lib/Demeter.pm line 244.
The "croak" command not getting found appears to come from the "Carp" perl module - we have version 6.06-1 of the 'libcarp-clan-perl' package installed. Any suggestions as to what's causing this error? Again, the 'perl Build.PL' command shows no issues with the installed modules, but since most of them were installed from the Debian repository, maybe there's a discrepancy with the modules installed when we run './Build installdeps'?
Thanks for any assistance -
Al Kwiatkowski kwiatal@phys.iit.edu _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov
National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973
Homepage: http://bruceravel.github.io/home/ Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/ _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
Still puzzling. I sort of understand what you are seeing, but it makes little sense, isn't consistent with my understanding of how package loading in perl works, and certainly is not something I have seen before. Try putting use Graphics::GnuplotIF; somewhere near the top of lib/Demeter/Plot/Gnuplot.pm. Doesn't much matter where. After line 57 would be fine. If that works -- great! Both of my suggestions do no harm, so I'll just commit them to github.... B On 03/30/2018 12:49 PM, Al Kwiatkowski wrote:
Hm, we're getting somewhere. Putting the 'use Carp;' line now has dathena come up, but delivering this error:
Use of uninitialized value in subroutine entry at /usr/local/lib/i386-linux-gnu/perl/5.24.1/Demeter/Plot/Gnuplot.pm line 29.
and when you exit, it pops up a dialogue box with this error:
Use of uninitialized value in stat at /usr/local/lib/i386-linux-gnu/perl/5.24.1/Demeter/Plot/Gnuplot.pm line 270.
The program seems to behave ok otherwise, but I don't know what operations would have problems with an uninitialized gnuplot module variable or subroutine. Why would it have issues initializing in the first place (or not finding the Carp module)?
Thanks for the help so far!
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
Hi Al, Bruce, Is there a need to run analysis codes running 32-bit Linux? I haven't seen one of those in a long time, and don't plan on testing or supporting any codes on that platform. I'm not even excited about supporting 32-bit Windows. --Matt
On 03/30/2018 01:47 PM, Matthew Newville wrote:
Hi Al, Bruce,
Is there a need to run analysis codes running 32-bit Linux? I haven't seen one of those in a long time, and don't plan on testing or supporting any codes on that platform. I'm not even excited about supporting 32-bit Windows.
Well... neither am I, but that's what the question was.... B -- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
participants (3)
-
Al Kwiatkowski
-
Bruce Ravel
-
Matthew Newville