threads / discuss / 60441

[Bugs] Hello,I can't build git by ./configure

Subject: [Bugs] Hello,I can't build git by ./configure

## tl;dr

2 messages between Oct 28, 2023 and Oct 29, 2023.

replies: 1people: 2as markdown or json

h hm· Oct 28, 2023, 15:39 UTC · lore
I want to build commit 2e8e77c in the master

Step: cd git make configure ./configure

Out: configure: Setting lib to 'lib' (the default) configure: Will try -pthread then -lpthread to enable POSIX Threads. configure: CHECKS for site configuration checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/haomi/git': configure: error: C compiler cannot create executables See `config.log' for more details

But before that commit ,build ok There is my config.log

Eric Sunshine· Oct 29, 2023, 01:33 UTC · re: h hm · lore

Re: [Bugs] Hello,I can't build git by ./configure

On Sat, Oct 28, 2023 at 11:39 AM h hm <haoming9245@outlook.com> wrote:
> I want to build commit 2e8e77c in the master

This is a merge commit bringing together multiple topics, so it's difficult to say which topic may have caused a regression. Perhaps try git-bisect to narrow the problem down to a single commit.

Show 7 quoted lines
> configure: Setting lib to 'lib' (the default)
> configure: Will try -pthread then -lpthread to enable POSIX Threads.
> configure: CHECKS for site configuration
> checking for gcc... gcc
> checking whether the C compiler works... no
> configure: error: in `/home/haomi/git':
> configure: error: C compiler cannot create executables
Your config.log shows that it is trying to test-compile this tiny program:
    /* confdefs.h */
    #define PACKAGE_NAME "git"
    #define PACKAGE_TARNAME "git"
    #define PACKAGE_VERSION "2.42.GIT"
    #define PACKAGE_STRING "git 2.42.GIT"
    #define PACKAGE_BUGREPORT "git@vger.kernel.org"
    #define PACKAGE_URL ""
    /* end confdefs.h.  */
    int
    main (void)
    {
      ;
      return 0;
    }

with the simplest command `gcc conftest.c`, but it's failing. Perhaps try compiling that program manually in your `/home/haomi/git' directory and see what the result is (also check $?).

← back to recent threads