bug-make
[Top][All Lists]
Advanced

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

Assert stuff


From: David Gómez
Subject: Assert stuff
Date: Fri, 6 Jul 2001 23:53:32 -0400 (EDT)

Hi,

Somebody mail me about an error he gets compiling some program, but it's
look like is a problem related to make. I don't know about his config,
only he's using gnu make 3.79. When i compile that code (same code/same
Makefile/same make version) it works fine.

Problem he gets is that make code reach an assert() in expand.c (in
function allocated_variable_append). I know nothing about make source
code, so maybe you can help me about what causes this error.

Below is error and Makefile used:

make: expand.c:485: allocated_variable_append: Assertion
`current_variable_set_list->next != 0' failed.
Aborted

-----------------------------------------------------------

.SUFFIXES:
.DELETE_ON_ERROR:
.PHONY: all clean

# Do not modify below this point
PROJECT=pawm
CC=gcc
RM=rm
TOUCH=touch
WARNINGS=-Wundef -Wshadow -Wcast-qual \
         -Wcast-align -Wsign-compare
INCLUDE=-I/usr/X11R6/include
LIBINCLUDE=-L/usr/X11R6/lib
CFLAGS=-Wall -W $(WARNINGS) $(INCLUDE) -D_GNU_SOURCE 
LDFLAGS=$(LIBINCLUDE) -lX11 -lm

# Build debugging versions only
devel: CFLAGS+=-DTEST -UNDEBUG -O0 -g
release: CFLAGS+=-UTEST -DNDEBUG -O3
release: LDFLAGS+=-s
devel release: all

all: $(PROJECT)

OBJECTS=main.o olist.o x.o \
        wm.o pawindow.o button.o palabel.o pabar.o paclock.o

$(PROJECT): $(OBJECTS)
        @echo "Making $@ from $^"
        @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

%.o: %.c
        @echo "Making $@ from $<"
        @$(CC) $(CFLAGS) -c -o $@ $<

%.c: %.h
        @echo "Touching $@"
        @$(TOUCH) $@

#       @echo "Making $@ from $($@:%.h=%.c)"
#       @$(CC) $(CFLAGS) -c -o $($@:%.h=%.c)

# Can't get any better by now

clean:
        @$(RM) -f *.o core *~ $(OBJECTS) $(PROJECT)




Thanks,

David GĂłmez







reply via email to

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