Git 2.4.8 built from kernel.org sources and missing HTTP/HTTPS helpers

前端 未结 1 1848
我寻月下人不归
我寻月下人不归 2020-12-22 13:09

This is similar to git clone: fatal: Unable to find remote helper for \'https\'. This is a little different than other similar questions. The other similar question was on U

相关标签:
1条回答
  • 2020-12-22 13:46

    Why is Git failing to build the helpers it needs?

    There appears to be at least two problems. First, Git's configure does not report errors. Rather, it silently swallows them. It silently swallowed an error with the PCRE library, too.

    Second, the cURL architecture -arch ppc is being changes to -arch ppc7400. So the eight or so dependent libraries look like:

    $ file /usr/local/lib/libcrypto.a
    /usr/local/lib/libcrypto.a: Mach-O universal binary with 2 architectures
    /usr/local/lib/libcrypto.a (for architecture ppc):    current ar
    archive random library
    /usr/local/lib/libcrypto.a (for architecture ppc64):    current ar
    archive random library
    

    But cURL looks like:

    $ file /usr/local/lib/libcurl.a
    /usr/local/lib/libcurl.a: Mach-O universal binary with 2 architectures
    /usr/local/lib/libcurl.a (for architecture ppc7400):    current ar
    archive random library
    /usr/local/lib/libcurl.a (for architecture ppc64):    current ar
    archive random library
    

    I verified its not my setting:

    export CFLAGS="-arch ppc"
    ./configure ...
    make
    

    Then:

    $ find . -name libcurl.a
    ./lib/.libs/libcurl.a
    $ lipo -info ./lib/.libs/libcurl.a
    ...
    Non-fat file: ./lib/.libs/libcurl.a is architecture: ppc7400
    

    export LDFLAGS="-arch ppc" had no effect on the issue.

    There's a related, follow up question that is tracking down the behavior at Cause of change from -arch ppc to -arch ppc7400?

    0 讨论(0)
提交回复
热议问题