[petsc-dev] Compiling error with Hypre-2.11.2
Smith, Barry F.
bsmith at mcs.anl.gov
Thu Aug 2 12:49:36 CDT 2018
How come we don't have version checks as a matter of course for config/packages/xxx.py we constantly get email from people using the wrong version of external packages with obscure error messages wasting their time and hours. Better that hypre.py (and others) compare the version number and exit with a nice error message when incompatible.
Barry
We could have a field called say
supportedversions = ['version1', 'version2',....]
> On Aug 2, 2018, at 11:50 AM, Satish Balay <balay at mcs.anl.gov> wrote:
>
> https://bitbucket.org/petsc/petsc/commits/e6de09342ce9c4562cc062ff2c1bac4bd956bda0
>
> It is compatible with Hypre-2.14. For Hypre-2.11 - you would have to revert the above change.
>
> Satish
>
> On Thu, 2 Aug 2018, Antonio Trande wrote:
>
>> Hi all.
>>
>> Petsc-3.9.3 does not compile against Hypre-2.11.2:
>>
>> mpicc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
>> -m64 -mtune=generic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
>> -grecord-gcc-switches -m64 -mtune=generic -O3 -Wl,-z,now -fPIC
>> -I/builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/include
>> -I/builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/x86_64/include
>> -I/usr/include/openmpi-x86_64 -I/usr/include/openmpi-x86_64/hypre
>> -MMD -MP
>> /builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/src/mat/impls/composite/mcomposite.c
>> -o x86_64/obj/mat/impls/composite/mcomposite.o
>> /builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/src/mat/impls/hypre/mhypre.c:
>> In function 'hypre_array_destroy':
>> /builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/src/mat/impls/hypre/mhypre.c:1453:37:
>> error: macro "hypre_TFree" passed 2 arguments, but takes just 1
>> hypre_TFree(ptr,HYPRE_MEMORY_HOST);
>> ^
>> /builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/src/mat/impls/hypre/mhypre.c:1453:4:
>> error: 'hypre_TFree' undeclared (first use in this function)
>> hypre_TFree(ptr,HYPRE_MEMORY_HOST);
>> ^
>> /builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir/src/mat/impls/hypre/mhypre.c:1453:4:
>> note: each undeclared identifier is reported only once for each function
>> it appears in
>> gmake[2]: *** [x86_64/obj/mat/impls/hypre/mhypre.o] Error 1
>> gmake[2]: *** Waiting for unfinished jobs....
>> gmake[2]: Leaving directory
>> `/builddir/build/BUILD/petsc-3.9.3/buildopenmpi_dir'
>>
>> Full build log:
>> https://koji.fedoraproject.org/koji/getfile?taskID=28789567&volume=DEFAULT&name=build.log
>>
>> Dependencies list:
>> https://kojipkgs.fedoraproject.org//work/tasks/9567/28789567/root.log
>>
>
More information about the petsc-dev
mailing list