Operating System - Linux
1753843 Members
7879 Online
108806 Solutions
New Discussion юеВ

Make command giving error recursive macro

 
Rajesh Karelia
Frequent Advisor

Make command giving error recursive macro

When I am doing a make on the HP-UX 11.23 I am getting the following error.

$ make -f makefile.uds -k all_make
make -f makefile.uds -k all_make
+ make -f makefile.uds -k all_make
Make: infinitely recursive macro?. Stop.
$

Please provide a solution for the same.
11 REPLIES 11
Peter Nikitka
Honored Contributor

Re: Make command giving error recursive macro

Hi,

at first sight I guess, that you are calling the make itself recursivly.

Please attach your 'makefile.uds' - solutions are difficult to get without it.


mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Rajesh Karelia
Frequent Advisor

Re: Make command giving error recursive macro

I am attaching my makefile.uds
OldSchool
Honored Contributor

Re: Make command giving error recursive macro

also going to need all of the included files, plus anything they include.....
Rajesh Karelia
Frequent Advisor

Re: Make command giving error recursive macro

I am including all the files included.
Peter Nikitka
Honored Contributor

Re: Make command giving error recursive macro

Hi,

in your makefile.uds you include e.g.
makefile.common
makefile.userlock

but makefile.userlock
includes makefile.common

as well. The duplicate include(s) is/are the source of your problem.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Rajesh Karelia
Frequent Advisor

Re: Make command giving error recursive macro

Hi Peter,

I have actually commented that out from the files.
Rajesh Karelia
Frequent Advisor

Re: Make command giving error recursive macro

Hi Peter,

Sorry for an incomplete answer. I tried it that way too. But the same error came in.

If you have a look at the file, I have put # before it. Thus I have commented out that includes.
Peter Nikitka
Honored Contributor

Re: Make command giving error recursive macro

Hi,

a quick test did not show this error message.
The cause may be in the ORACLE-part of the make-includes which was not attached.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Peter Nikitka
Honored Contributor

Re: Make command giving error recursive macro

Hi,

I just saw this line in makefile.common:

CCFLAGS = $(CCFLAGS) -w1

This is at least a not portable but nearly always an illegal construct.

Use
CCFLAGS += -w1
or set this way at all places:
CCFLAGS := ...


mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"