tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gfortran-9.3 from lang/gcc9 on NetBSD/amd64 9.99.72 (GCC-9.3 in base)



Hi,

Ryo ONODERA <ryo%tetera.org@localhost> writes:

> Hi,
>
> Greg Troxel <gdt%lexort.com@localhost> writes:
>
>> Ryo ONODERA <ryo%tetera.org@localhost> writes:
>>
>>> => Checking for missing run-time search paths in blas-3.9.0
>>> ERROR: lib/libblas.so.3.9.0: missing library: libgfortran.so.5
>>> ERROR: lib/libblas.so.3.9.0: missing library: libquadmath.so.0
>>> *** Error code 1
>>>
>>> I think that the following patch fixes the problem and it is
>>> not harmful for BUILDLINK_DEPMETHOD=full case.
>>>
>>> Index: mk/compiler/gfortran.mk
>>> ===================================================================
>>> RCS file: /cvsroot/pkgsrc/mk/compiler/gfortran.mk,v
>>> retrieving revision 1.15
>>> diff -u -r1.15 gfortran.mk
>>> --- mk/compiler/gfortran.mk	26 Mar 2020 12:44:46 -0000	1.15
>>> +++ mk/compiler/gfortran.mk	16 Sep 2020 03:28:33 -0000
>>> @@ -99,6 +99,8 @@
>>>  # Add the dependency on gfortran.
>>>  BUILDLINK_DEPMETHOD.gcc${GFORTRAN_VERSION}=	full
>>>  .  include "../../lang/gcc${GFORTRAN_VERSION}/buildlink3.mk"
>>> +LDFLAGS+=	-L${BUILDLINK_PREFIX.gcc${GFORTRAN_VERSION}}/gcc${GFORTRAN_VERSION}/lib
>>> +LDFLAGS+=	${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc${GFORTRAN_VERSION}}/gcc${GFORTRAN_VERSION}/lib
>>>  
>>>  .  if defined(GFORTRAN_DIR) && !empty(GFORTRAN_DIR)
>>>  PKGSRC_MAKE_ENV+=	GFORTRAN_DIR=${GFORTRAN_DIR:Q}
>>
>> (I am not an expert in this area.)
>>
>> That seems plausible.
>>
>> I wonder if this belongs in each gcc bl3, but I guess it's only for
>> gfortran.  I wonder if they each have exactly a dir like this -
>> basically  I am saying "are you sure that what looks like hoisting this
>> to a group file is safe"?
>>
>> I also wonder if you get this error with gcc8 from pkgsrc, and if not
>>  - what's different
>>  - given that something is different, why is this fix ok for that
>>    situation
>
> Thanks for your comment.
>
> I am investigating GCC 7 (netbsd-9) case and I will see the difference.

lang/gcc8/patches/patch-gcc_Makefile.in should be applied to
lang/gcc9 too.
I will test another test and commit this.

>> I don't mean to suggest you are incorrect - just asking questions.

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index