Opened 4 years ago

Closed 3 years ago

#60879 closed defect (fixed)

openssh won't install on PowerPC because it blacklists all gcc compilers

Reported by: randomshinichi (Andrew Chiw) Owned by: evanmiller (Evan Miller)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: powerpc leopard Cc:
Port: openssh

Description (last modified by randomshinichi (Andrew Chiw))

OS X 10.5.8

However, when I ran sudo port install libxml2, it offered to start installing its dependencies and prompted me with yes or no!

Users/shinichi] > install openssh
--->  Computing dependencies for openssh
Error: Cannot install clang-7.0 for the arch 'powerpc' because
Error: its dependency libxml2 does not build for the required arch by default
Error: and the configured universal_archs 'i386 ppc' are not sufficient.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port openssh failed
[Users/shinichi] > install libxml2
--->  Computing dependencies for libxml2
The following dependencies will be installed: 
 bzip2
 cctools
 db48
 expat
 gcc7
 gcc_select
 gdbm
 gmp
 icu
 isl
 ld64
 ld64-127
 libedit
 libffi
 libgcc
 libgcc7
 libmpc
 llvm-3.3
 llvm_select
 mpfr
 openssl
 perl5
 perl5.28
 python27
 python2_select
 python_select
 readline
 sqlite3
 xz
 zlib
Continue? [Y/n]: y

Whatever openssh needs (and I doubt it really needs clang), it should work on powerpc because I've seen it here

https://twitter.com/tuxlovesyou/status/1165261140840058880/photo/1

Attachments (1)

openssh.log (28.6 KB) - added by randomshinichi (Andrew Chiw) 4 years ago.
port -d install openssh

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by randomshinichi (Andrew Chiw)

Attachment: openssh.log added

port -d install openssh

comment:1 Changed 4 years ago by randomshinichi (Andrew Chiw)

Keywords: powerpc leopard added
Version: 2.6.3

comment:2 Changed 4 years ago by randomshinichi (Andrew Chiw)

Description: modified (diff)

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Clang doesn't work on PowerPC. I believe Ken has said it's almost working, but it's not working today. I thought we had gotten the MacPorts compiler selection algorithm fixed so that it would not try to use clang on PowerPC.

The specific error message given that "its dependency libxml2 does not build for the required arch by default" is inaccurate and should be ignored. You should be able to install libxml2 with no problem. I haven't yet looked at openssh...

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

openssh is choosing clang because of this block in its portfile:

    platform macosx {
        if {${os.major} <= 11} {
            # clang is required to build the new Apple Keychain integration due
            # to it using the Object Subscripting feature, c.f. #59397.
            # We'll keep it simple and just blacklist any gcc version, cc
            # (which could be anything), system clang versions prior to those
            # shipped with Xcode 4.4.
            # Regarding the macports-clang versions, any version in the
            # MacPorts tree should suit our needs, since the clang
            # documentation lists FOSS clang/llvm 3.1 as the first version to
            # support Object Subscripting and the oldest version in our tree is
            # now 3.3.
            compiler.blacklist-append   *gcc* cc {clang < 421}
        }
    }

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Port: openssh added
Summary: openssh won't install because libxml2 doesn't build for powerpcopenssh won't install on PowerPC because it blacklists all gcc compilers

comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

See #60385 for another similar ticket. A workaround was found there that disabled the keychain integration. We should find a way to include that in the official portfile.

comment:7 Changed 3 years ago by evanmiller (Evan Miller)

Owner: set to evanmiller
Resolution: fixed
Status: newclosed

In f6c274e2348fb4f59508f9eed2bbf4c5fcfde583/macports-ports (master):

openssh: Fix build on 10.4/10.5

Disable Keychain integration (and GCC blacklist) on older systems.

Closes: #60385
Closes: #60879

Note: See TracTickets for help on using tickets.