OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-546-g4083ffd

Gerrit Code Review gerrit@openafs.org
Tue, 21 Jul 2026 14:16:08 -0400


The following commit has been merged in the master branch:
commit 4083ffd08241836f9188c251958d8d41156ad82b
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Jul 16 16:52:26 2026 -0500

    SOLARIS: Use --64 for GNU as
    
    Currently, on Solaris-like systems on amd64, by default we pass -m64 to
    'as' for our assembly code, since the 'as' that comes with Solaris (the
    "Sun as") defaults to generating 32-bit code on amd64.
    
    On illumos-based systems, such as OmniOS, the 'as' in our path may be
    the GNU as, which does not understand the -m64 flag (it uses --64
    instead). This causes a build failure when we're building lwp:
    
        + as -m64 -o process.o process.s
        as: unrecognized option `-m64'
        + rm -f process.s
        rm -f -f liblwp.a
        ar crv liblwp.a lwp.o process.o iomgr.o [...]
        ar: cannot open process.o: No such file or directory
        ar: writing liblwp.a
        ar: process.o not found
    
    To fix this, if we're on an x86 Solaris-like system with ASFLAGS
    containing -m64, check if $AS actually works with the given flags. If
    not, transform -m64 into --64, and use that instead if it works.
    
    Also change the build logic for process.o to check for --64 in addition
    to -m64, since it uses ASFLAGS to determine which assembly code to use.
    
    Only do this for x86 specifically for now, since this issue affects the
    default build on x86. There may be similar issues for SPARC, but we
    don't pass assembler flags by default on SPARC, and SPARC systems are
    much more rare.
    
    This commit introduces the OPENAFS_AS_CHECKS macro in the new as.m4
    file, for checks related to the assembler. The new checks appear in
    ./configure output for Solaris like this, for example:
    
        checking for as -m64... no
        checking for as --64... yes
    
    Change-Id: Ica65c72aaad5d0bdb3a024ff9212d640ada6f732
    Reviewed-on: https://gerrit.openafs.org/16892
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>

 acinclude.m4        |  1 +
 src/cf/as.m4        | 30 ++++++++++++++++++++++++++++++
 src/lwp/Makefile.in |  2 +-
 3 files changed, 32 insertions(+), 1 deletion(-)

-- 
OpenAFS Master Repository