tech-pkg archive

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

Re: CVS commit: pkgsrc/mk/compiler



Martin Husemann <martin%duskware.de@localhost> writes:

> On Wed, Apr 01, 2020 at 07:50:07AM -0400, Greg Troxel wrote:
>> Thomas Klausner <wiz%NetBSD.org@localhost> writes:
>> 
>> > On Wed, Apr 01, 2020 at 07:43:29AM -0400, Greg Troxel wrote:
>> >> Thomas Klausner <wiz%NetBSD.org@localhost> writes:
>> >> > My bulk builds now pull in gcc8 on 9.99.52/amd64 which comes with gcc
>> >> > 8.4.0.
>> >> >
>> >> > AFAICT this comes from math/coinmp and devel/libtool-fortran, which
>> >> > set "fortran" in USE_LANGUAGES.
>> >> >
>> >> > Does this need to use gcc8 from pkgsrc or can it use gcc8 from base?
>> >> 
>> >> Yes, because gcc8 in base does not include fortran.  I am pretty sure
>> >> that if there is /usr/bin/gfortran then it would have been used, and if
>> >> not we can fix that.

(I meant that if a decision is made to put gfortran in base, and pkgsrc
doesn't pick it up, we can fix that.  I didn't mean to use the word
"fix" about enabling fortran in base.)

> Would fortran itself w/o any associated libs be usefull?

There is a basic system lib that is surely needed to be able to build
and run fortran programs and libraries.

> Or: what amount of libs would this add (both in space and build time)?

I may have missed something, but from looking at the gcc9 plist and
trying to include everything on my gcc7 build:

pkg_info -L gcc7 |egrep 'ortran|finclude|libcaf|f951' | xargs ls -l
-rwxr-xr-x  2 root  wheel    978472 Mar 13 13:10 /usr/pkg/gcc7/bin/gfortran
-rwxr-xr-x  2 root  wheel    978472 Mar 13 13:10 /usr/pkg/gcc7/bin/x86_64--netbsd-gfortran
-rw-r--r--  1 root  wheel    874070 Mar 13 13:10 /usr/pkg/gcc7/info/gfortran.info
-rw-r--r--  1 root  wheel      9642 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/ieee_arithmetic.mod
-rw-r--r--  1 root  wheel      2150 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/ieee_exceptions.mod
-rw-r--r--  1 root  wheel      1195 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/ieee_features.mod
-rw-r--r--  1 root  wheel     15411 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/omp_lib.f90
-rw-r--r--  1 root  wheel      5335 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/omp_lib.h
-rw-r--r--  1 root  wheel      2981 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/omp_lib.mod
-rw-r--r--  1 root  wheel       610 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/omp_lib_kinds.mod
-rw-r--r--  1 root  wheel     28053 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/openacc.f90
-rw-r--r--  1 root  wheel      3409 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/openacc.mod
-rw-r--r--  1 root  wheel       434 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/openacc_kinds.mod
-rw-r--r--  1 root  wheel     12388 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/finclude/openacc_lib.h
-rw-r--r--  1 root  wheel    304252 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/libcaf_single.a
-rwxr-xr-x  1 root  wheel       934 Mar 13 13:10 /usr/pkg/gcc7/lib/gcc/x86_64--netbsd/7.5.0/libcaf_single.la
-rw-r--r--  1 root  wheel  18706240 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.a
-rwxr-xr-x  1 root  wheel      1004 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.la
lrwxr-xr-x  1 root  wheel        18 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.so -> libgfortran.so.4.0
lrwxr-xr-x  1 root  wheel        18 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.so.4 -> libgfortran.so.4.0
-rwxr-xr-x  1 root  wheel   7319456 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.so.4.0
-rw-r--r--  1 root  wheel       269 Mar 13 13:10 /usr/pkg/gcc7/lib/libgfortran.spec
-rwxr-xr-x  1 root  wheel  24551024 Mar 13 13:10 /usr/pkg/gcc7/libexec/gcc/x86_64--netbsd/7.5.0/f951
-rw-r--r--  1 root  wheel     73103 Mar 13 13:10 /usr/pkg/gcc7/man/man1/gfortran.1

As for incremental build time, I don't know.  But given we are building
the rest of gcc and llvm, I doubt it's huge.


Home | Main Index | Thread Index | Old Index