[openssl-dev] [openssl.org #4356] 64-bit OS X on x86_64 misidentified as i686

noloader@gmail.com via RT rt at openssl.org
Sun Feb 28 22:11:56 UTC 2016


Working from Master:

$ git reset --hard HEAD && git pull
HEAD is now at 31ba0e1 Fix mk1mf build
Already up-to-date.

MacBook Pro from 2013 (Intel, x86_64), OS X 10.8.5, fully patched:

$ ./config
Operating system: i686-apple-darwinDarwin Kernel Version 12.6.0: Wed
Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64
WARNING! If you wish to build 64-bit library, then you have to
         invoke './Configure darwin64-x86_64-cc ' *manually*.
         You have about 5 seconds to press Ctrl-C to abort.
  ...

This code from config seems to be responsible:

    Darwin:*)
    case "$MACHINE" in
        Power*)
        echo "ppc-apple-darwin${VERSION}"
        ;;
        *)
        echo "i686-apple-darwin${VERSION}"
        ;;
    esac
    exit 0
    ;;

And:

  i?86-apple-darwin*)
    ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null`
    if [ "$ISA64" = "1" -a -z "$KERNEL_BITS" ]; then
        echo "WARNING! If you wish to build 64-bit library, then you have to"
        echo "         invoke '$THERE/Configure darwin64-x86_64-cc
$options' *manually*."
        if [ "$TEST" = "false" -a -t 1 ]; then
          echo "         You have about 5 seconds to press Ctrl-C to abort."
          # The stty technique used elsewhere doesn't work on
          # MacOS. At least, right now on this Mac.
          sleep 5
        fi
    fi
    if [ "$ISA64" = "1" -a "$KERNEL_BITS" = "64" ]; then
        OUT="darwin64-x86_64-cc"
    else
        OUT="darwin-i386-cc"
    fi ;;

$MACHINE looks like it could help here:

    $ uname -m
    x86_64

Maybe its time to add a case for x86_64. For those who really want
32-bit, they can 'export KERNEL_BITS=32'.


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4356
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list