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

compile problem with gcc 2.95

From
DHDave Hansen <haveblue@us.ibm.com>
Date
Aug 29, 2005, 18:28 UTC
Message-ID
<1125340116.26108.12.camel@localhost>

I know it's an ancient compiler, but last time I checked it is still faster at runtime than the 3.x versions. If it's not going to be supported, it would probably be nice to at least detect that in the build system. I've confirmed that it works just fine with gcc 3.3.

dave@spirit:~/bin/git$ make gcc -o rev-cache.o -c -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' rev-cache.c In file included from rev-cache.c:2: cache.h:107: field `name' has incomplete type cache.h:290: field `base' has incomplete type cache.h:303: field `pack_name' has incomplete type cache.h:318: field `name' has incomplete type make: *** [rev-cache.o] Error 1 dave@spirit:~/bin/git$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs gcc version 2.95.4 20011002 (Debian prerelease)

> struct cache_entry {
...
>         char name[]; <--- cache.h:107
> };
-- Dave
Next: Junio C Hamano
Message 1 of 3 in “compile problem with gcc 2.95”
  1. Dave HansenAug 29, 2005
  2. Junio C HamanoAug 29, 2005
  3. [HOWTO] Reverting an existing commitJunio C Hamano, Aug 30, 2005

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.