This is insanely bad for users (including me as a user).

     You shouldn't need to delete anything. 

     You just need the additional flag of either --download-zlib or --with-zlib 
(if it is installed on your system).

     The new branch barry/fix-insanity-netcdf/maint will give you a very useful 
error message if you don't pass in the zlib. So people won't waste their time 
on this same problem in the future.

      Sorry to waste your time,

        Barry

      The netcdf code didn't build netcdf4 without access to zlib but it didn't 
bother to tell you it wasn't building it. Then when exodusii needed netcdf4 it 
assumed it was there (though it wasn't) and hence the bad compile. I'm also 
surprised this didn't happen before to other users.


> On Aug 19, 2018, at 9:01 PM, Adrian Croucher <[email protected]> 
> wrote:
> 
> Should I try wiping out the externalpackages directory as well as $PETSC_ARCH?
> 
> - Adrian
> 
> On 20/08/18 14:00, Smith, Barry F. wrote:
>>    Trying to reproduce it now but I'm pretty sure we've tested it.
>> 
>>    Do you have some old files lying around that might be causing the problem?
>> 
>> /home/acro018/software/PETSc/code/linux-gnu-c-opt/externalpackages/git.exodusii/packages/seacas/libraries/exodus/src/ex_create_par.c:375:9:
>>  error: 'netcdf4_mode' undeclared (first use in this function)
>>      if (netcdf4_mode == -1) {
>> 
>> Maybe externalpackages has downloads from a previous build still located 
>> that don't work with the latest exodusii?
>> 
>> 
>>    Barry
>> 
>> 
>> 
>> 
>>> On Aug 19, 2018, at 8:51 PM, Adrian Croucher <[email protected]> 
>>> wrote:
>>> 
>>> hi
>>> 
>>> I just pulled the latest PETSc master branch (v3.9.3) but am having trouble 
>>> building it. It's been running fine on v3.8.4.
>>> 
>>> I deleted my $PETSC_ARCH directory and tried to configure. But it seems to 
>>> be falling over when trying to build Exodus. I've attached the 
>>> configure.log.
>>> 
>>> Any ideas?
>>> 
>>> - Adrian
>>> 
>>> -- 
>>> Dr Adrian Croucher
>>> Senior Research Fellow
>>> Department of Engineering Science
>>> University of Auckland, New Zealand
>>> email: [email protected]
>>> tel: +64 (0)9 923 4611
>>> 
>>> <configure.log>
> 
> -- 
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: [email protected]
> tel: +64 (0)9 923 4611
> 

Reply via email to