This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Carter, > Institution: NCAR > Package Version: netcdf-perl-1.2.3 > Operating System: RHEL WS release 4 (Nahant Update 4) x86_64 > Hardware Information: Dell PE1850 > Inquiry: Hello, > > I am attempting to build the netcdf-perl package from source on an x86_64 > system. > > After setting up the environment variables, the configure and make steps work > fine. > > The make test step fails, with output shown below: > [root@dpg-ingest src]# cat maketest.log > make[1]: Entering directory `/d1/tmp/netcdf-perl-1.2.3/src' > > making `test' in directory /d1/tmp/netcdf-perl-1.2.3/src/perl > > make[2]: Entering directory `/d1/tmp/netcdf-perl-1.2.3/src/perl' > PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl > Creating netCDF file...........................ok > Setting fill mode..............................ok > Defining fixed dimensions......................ok > Defining fixed variables.......................ok > Writing global attribute.......................ok > Writing variable attributes....................ok > Defining record dimension......................ok > Defining record variables......................ok > Ending definition..............................ok > Writing fixed variable values..................Error: in routine alloca() > there is a > stack overflow: thread 0, max 10228KB, used 0KB, request 16B > make[2]: *** [test_dynamic] Error 127 > make[2]: Leaving directory `/d1/tmp/netcdf-perl-1.2.3/src/perl' > make[1]: *** [perl/test] Error 1 > make[1]: Leaving directory `/d1/tmp/netcdf-perl-1.2.3/src' > make: *** [test] Error 2 > > make install pushes all parts as expected, but no data is found in the *.cdf > files that are generated. Debugging shows the same error as found in the > make test step. > > Any and all ideas would be appreciated. I'm not sure I can help. The error message you got seems to say that the alloca() function couldn't allocate 16 bytes of memory even though more than 10 megabytes were available. If true, then this indicates a problem with your alloca(1) function rather than with the netCDF-Perl package. There's a chance that I might spot something in the files "configure.log" and "make.log" (which are described in the file INSTALL. If you'll send me those files, I'll take a look at them. Also, you should check that the build environment for the netCDF-Perl and netCDF packages is compatible with the build environment for the perl(1) utility (which can be viewed via the command "perl -V"). The "build environment" includes compilers, compiler options, linkers, linker options, and libraries. Regards, Steve Emmerson Ticket Details =================== Ticket ID: PLU-903665 Department: Support netCDF Perl Priority: Normal Status: Closed