This is the only line in a makefile: a: CFLAGS += -DMAIN There is a file a.c, which is irrelevant. I used a simple helloworld program. Run make as: binand@binand[~/testprogs]:(25) make CFLAGS+=-DMAIN a This is the output: cc -DMAIN -DMAIN a.c -o a make: expand.c:489: allocated_variable_append: Assertion `current_variable_set_list->next != 0' failed. Aborted (core dumped)
I have had this problem with make-3.79.1-8 included in RedHat 7.3. I ran into this problem while trying to compile an rpm. I found for whatever reason that if I compiled it outside of rpm it worked, but always have the error message on a certain file building a rpm. I did a search and found the url below with a patch that after modifying so it would apply it fixed the problem. I also had to modify the make tar.gz file because of ^Ls in the text. The patch could probably be modified so that it would deal with the ^Ls. http://www.geocrawler.com/mail/msg.php3?msg_id=7907232&list=351
This still occurs in rawhide make. and I also can't reproduce it outside of rpmbuild.
Ran into this problem again while trying to build a xawtv-3.76 rpm. Again I am building a new version of make with the patch I mentioned before. The problem is still in make-3.79.1-14. Please fix it.
Confirmed still present in 8.0 touch a.c make CFLAGS+=-DMAIN a cc -DMAIN -DMAIN a.c -o a make: expand.c:489: allocated_variable_append: Assertion `current_variable_set_list->next != 0' failed. Aborted
*** Bug 88846 has been marked as a duplicate of this bug. ***
Can't reproduce this with make-3.80-4.