Download raw body.
hdf5 needs c++ in COMPILER_LANGS
Am 19.11.25 um 21:26 schrieb Stuart Henderson:
> On 2025/11/17 14:30, Claudio Jeker wrote:
>> The base c++ compiler is not good enough to compile hdf5.
>> Since this is already depending on ports-gcc just use it also for c++.
>
> oops, that was my mistake when fixing it for not setting fortran in
> COMPILER_LANGS. generally if C++ libs are in WANTLIB and it's using
> COMPILER then it needs to have c++ in COMPILER_LANGS, the whole point
> being that everything possible needs to use the same C++ standard lib.
>
> (yes that is a bit of a problem for mesa but we don't have a way
> around that...).
>
>> Code fails because of missing cinttypes include.
>>
>> With this I can build hdf5 on sparc64 (using gcc15 but gcc8 may work as
>> well)
>> --
>> :wq Claudio
>>
>> Index: Makefile
>> ===================================================================
>> RCS file: /cvs/ports/math/hdf5/Makefile,v
>> diff -u -p -r1.30 Makefile
>> --- Makefile 5 Sep 2025 22:33:59 -0000 1.30
>> +++ Makefile 5 Nov 2025 10:58:46 -0000
>> @@ -29,7 +29,7 @@ PERMIT_PACKAGE = Yes
>> WANTLIB += c m ${COMPILER_LIBCXX} z aec sz
>>
>> COMPILER = base-clang ports-gcc base-gcc
>
> better drop base-gcc here too. please bump REVISION and it's ok sthen.
>
+1 OK martin@
hdf5 needs c++ in COMPILER_LANGS