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

Re: How to build to debug with gdb?

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 27, 2019, 18:36 UTC
Message-ID
<20190827183640.GC8571@szeder.dev>
In-Reply-To
<20190827162725.GA29263@instance-template-2.europe-west6-a.c.vaulted-journal-250706.internal>
On Tue, Aug 27, 2019 at 04:27:25PM +0000, Giuseppe Crino' wrote:
> Hello, to debug some issues I built and installed git via
> 
> $ make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g"
> $ sudo make install

What do the output of these two command look like? After the first command build Git with the custom prefix and CFLAGS, the second command is supposed to start with printing "* new build flags" and then to build Git again with the default prefix and CFLAGS.

>  What am I missing?
Just a couple hundred lines worth of build output :)
Try using the same build flags for the install, i.e.:
  make prefix=/usr/local DEVELOPER=1 CFLAGS="-O0 -g" install
Previous: Giuseppe Crino'
Message 9 of 9 in “How to build to debug with gdb?”
  1. Giuseppe Crino'Aug 27, 2019
  2. Matheus Tavares BernardinoAug 27, 2019
  3. Randall S. BeckerAug 27, 2019
  4. Johannes SixtAug 27, 2019
  5. Giuseppe Crino'Aug 28, 2019
  6. SZEDER GáborAug 28, 2019
  7. Giuseppe Crino'Aug 28, 2019
  8. Giuseppe Crino'Aug 28, 2019
  9. SZEDER GáborAug 27, 2019

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.