git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Oct 29, 2023, 01:33 UTC
Message-ID
<CAPig+cScxS=NYBpeoyWe8JQA6HBO+PNCKJpzL=57-9mu3Dxwbg@mail.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.

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

Previous: h hm
Message 2 of 2 in “[Bugs] Hello,I can't build git by ./configure”
  1. h hmOct 28, 2023
  2. Eric SunshineOct 29, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.