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

Re: Compile Error on Git 2.0.1 on Redhat 5.9 with Fix

From
ENEldon Nelson <eldon_nelson@ieee.org>
Date
Jul 3, 2014, 20:13 UTC
Message-ID
<CAH5EwqbZygNg=Hiv_fTJ1wg5G07n_kUj77XK9eUmqh9+WPS3Dg@mail.gmail.com>
In-Reply-To
<CAH5EwqY8D=CGxB+rZvwPH5115r9qmRCBBvJMG_o0962d4Uquxw@mail.gmail.com>

Thanks for the tip Jeff. "config.mak.autogen" is created in the git compile only when you do a "./configure". Mine had the bad reference to "gar" in it due to the following.

It was caused because my path had a reference to a non-related "gar" executable (some internal command). I saw the compile trying to execute it and removed it from my path. Doing a "make clean" afterwards didn't remove the "config.mak.autogen" which had mistakenly thought that I was using "gar" and not "ar".

When I fixed my path to not include the company specific "gar" and started with a fresh untar it worked perfectly. It also didn't make a "config.mak.autogen" since that isn't what is recommended to do in the git docs for install.

This is closed due to my own user error.
config.mak.autogen

# git Makefile configuration, included in main Makefile # config.mak.autogen. Generated from config.mak.in by configure.

CC = cc CFLAGS = -g -O2 CPPFLAGS = LDFLAGS = AR = gar TAR = gtar

~~~~~~~~~~~~ Eldon Nelson eldon_nelson@ieee.org

Previous: Jeff King
Message 4 of 4 in “Compile Error on Git 2.0.1 on Redhat 5.9 with Fix”
  1. Eldon NelsonJul 2, 2014
  2. Matthieu MoyJul 2, 2014
  3. Jeff KingJul 2, 2014
  4. Eldon NelsonJul 3, 2014

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.