bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with current cvs make


From: Art Haas
Subject: Re: Problem with current cvs make
Date: Mon, 28 Feb 2005 16:13:47 -0600
User-agent: Mutt/1.5.6+20040907i

I've rebuilt 'make' with debugging info and started a GCC build. The
build failed as expected and I've got a core file to examine. Make dies
in the record_files() function in read.c at line 1918. The 'this' variable
is null, so 'this->name' fails.

$ gdb make core
...
1918                  if (find_percent (this->name) != 0)
(gdb) p this
$2 = (struct dep *) 0x0
(gdb) info args
filenames = (struct nameseq *) 0x810ad18
pattern = 0x810a978 "%.o"
pattern_percent = 0x810a978 "%.o"
deps = (struct dep *) 0x0
cmds_started = 2551
commands = 0x809f0d0 "\t$(CC_FOR_BUILD) -c $(BUILD_CFLAGS)
$(BUILD_CPPFLAGS) $(INCLUDES) \\\n\t -o $@ $<\nUILD_SUPPORT)
$(BUILD_PRINT) \\\n\t\t$(BUILD_ERRORS)
$(BUILD_LIBS)\n(GTFILES_SRCDIR)\\\"\" >> tmp-gtyp.h\n\techo \";\" >>
tmp-gtyp.h\n"...
commands_idx = 79
two_colon = 0
flocp = (const struct floc *) 0xbfffab78
(gdb) where
#0  0x0805eb3c in record_files (filenames=0x810ad18, pattern=0x810a978
"%.o", 
  pattern_percent=0x810a978 "%.o", deps=0x0, cmds_started=2551, 
  commands=0x809f0d0 "\t$(CC_FOR_BUILD) -c $(BUILD_CFLAGS)
  $(BUILD_CPPFLAGS) $(INCLUDES) \\\n\t -o $@ $<\nUILD_SUPPORT)
  $(BUILD_PRINT) \\\n\t\t$(BUILD_ERRORS)
  $(BUILD_LIBS)\n(GTFILES_SRCDIR)\\\"\" >> tmp-gtyp.h\n\techo
  \";\" >> tmp-gtyp.h\n"..., commands_idx=79, two_colon=0,
flocp=0xbfffab78) at read.c:1918
#1  0x0805c803 in eval (ebuf=0xbfffac84, set_default=1) at read.c:874
#2  0x0805b525 in eval_makefile (filename=0x8079370 "Makefile", flags=0)
    at read.c:401
#3  0x0805b084 in read_all_makefiles (makefiles=0x0) at read.c:238
#4  0x080578f9 in main (argc=90, argv=0xbfffe484, envp=0xbfffe5f0)
    at main.c:1563

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822




reply via email to

[Prev in Thread] Current Thread [Next in Thread]