[Bug 287211] lang/gcc13: gfortran doesn't find libgfortran.spec on riscv64

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 01 Jun 2025 11:35:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287211

            Bug ID: 287211
           Summary: lang/gcc13: gfortran doesn't find libgfortran.spec on
                    riscv64
           Product: Ports & Packages
           Version: Latest
          Hardware: riscv
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: salvadore@freebsd.org
          Reporter: laurent.chardon@gmail.com
                CC: fortran@FreeBSD.org, riscv@FreeBSD.org
             Flags: maintainer-feedback?(salvadore@freebsd.org)
          Assignee: salvadore@freebsd.org
                CC: riscv@FreeBSD.org

Created attachment 260862
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260862&action=edit
failed configure log

While testing net/openmpi on riscv64, I found that gfortran tests in
./configure fail for not finding the file libgfortran.spec.

I fixed it temporarily in net/openmpi, but the issue should be fixed in gcc13
(and later?) itself.

# gfortran doesn't find libgfortran.spec on riscv64                             
.if ${ARCH} == "riscv64"                                                        
FCFLAGS+=  -B${LOCALBASE}/lib/gcc${GCC_DEFAULT}                                 
.endif

I don't need this patch with amd64, i386 or aarch64.

-- 
You are receiving this mail because:
You are on the CC list for the bug.