Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2022 21:04:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262871] share/mk/bsd.cpu.mk: missing -mabi= in LDFLAGS
Message-ID:  <bug-262871-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262871

            Bug ID: 262871
           Summary: share/mk/bsd.cpu.mk: missing -mabi=3D in LDFLAGS
           Product: Base System
           Version: CURRENT
          Hardware: riscv
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: pkubaj@FreeBSD.org

All ports that enable LTO by default either downstream (port option) or
upstream are broken on riscv64. During build object files are built with
-mabi=3Dlp64d (hard float) but linking happens with implicit -mabi=3Dlp64 (=
soft
float). LTO postpones optimization until linking, so ABI must match.

https://lists.freebsd.org/archives/dev-commits-ports-main/2021-October/0027=
74.html

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262871-227>