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

2 messages from 2023-10-28 to 2023-10-29. Participants: h hm, Eric Sunshine.
Thread: https://gitlist.dev/t/60441

## h hm, 2023-10-28 15:39

Subject: [Bugs] Hello,I can't build git by ./configure
Message-ID: <PSBPR01MB3544370EEA032FA47778135DBDA3A@PSBPR01MB3544.apcprd01.prod.exchangelabs.com>
URL: https://gitlist.dev/e/PSBPR01MB3544370EEA032FA47778135DBDA3A%40PSBPR01MB3544.apcprd01.prod.exchangelabs.com

```
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, 2023-10-29 01:33

Subject: Re: [Bugs] Hello,I can't build git by ./configure
Message-ID: <CAPig+cScxS=NYBpeoyWe8JQA6HBO+PNCKJpzL=57-9mu3Dxwbg@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcScxS%3DNYBpeoyWe8JQA6HBO%2BPNCKJpzL%3D57-9mu3Dxwbg%40mail.gmail.com
In-Reply-To: <PSBPR01MB3544370EEA032FA47778135DBDA3A@PSBPR01MB3544.apcprd01.prod.exchangelabs.com>

```
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.

> 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 $?).

```
