help-make
[Top][All Lists]
Advanced

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

RE: Question about error detection


From: Cooper, Robert (Ftg Ops)
Subject: RE: Question about error detection
Date: Thu, 2 Oct 2014 15:35:32 -0400

(as requested, and emailed separately..)

We are running Make 4.0 on Red Hat Linux --

Linux version 2.6.18-348.6.1.0.1.el5 (address@hidden) (gcc version 4.1.2 
20080704 (Red Hat 4.1.2-54))

My primary makefile build recipe –

build : $(VERSION_FILE) rel_dirs shlib vendor_libs
        $(QUIET) echo "SPM:  Constructing release directory tree"
        $(QUIET) for dir in $(BLD_DIRS); do \
        $(MAKE) -f Makefile.gnu --directory $$dir build TYPE=$(TYPE) 
VERSION=$(VERSION) VERBOSE=$(VERBOSE) ; \
                 done
        $(QUIET) $(FLAG_FULL_BUILD)

The above “shlib” prerequisite –

shlib :
        echo "SHLIB:  Build will run using branch $(SHLIB_BR) build command 
$(SHLIB_BLD_CMD)"
        cd $(SHLIB_HOME) ; git checkout $(SHLIB_BR) ; \
        $(MAKE) -f Makefile.gnu TYPE=$(TYPE) VERBOSE=$(VERBOSE) 
APP-HOME=$(APP-HOME) SHLIB-BLD=$(SHLIB-BLD) $(SHLIB_BLD_CMD)

Thanks for your assistance,
-Bob


- - - - - - - - - - - - - - - -
Bob Cooper
(m) 603-305-9599


-----Original Message-----
From: Paul Smith [mailto:address@hidden 
Sent: Thursday, October 02, 2014 2:31 PM
To: Cooper, Robert (Ftg Ops)
Cc: address@hidden
Subject: Re: Question about error detection

On Thu, 2014-10-02 at 14:19 -0400, Cooper, Robert (Ftg Ops) wrote:
> The mystery is - sometimes when there is a build error in the shared
> library, the build terminates with an error as expected.  But other
> times, an error occurs and if my eyes are on the screen, I am lucky
> enough to see it fly by yet the build continues as if nothing failed.

There's very little help we can give without more detail.  At the very
minimum, we need to know what version of GNU make you're using and what
your build platform is (Windows, GNU/Linux, MacOS, etc.)

Also, we'd need to see an example of the make rule you use to
recursively invoke the sub-make.  There are some common idioms in use
all over for invoking sub-makes which are wrong and can cause behaviors
such as you are describing (not catching errors).

To directly provide the only answer I can based on the information
given, I'm not aware of any bugs or issues where GNU make will ignore
errors and continue on, when use properly.

Cheers!


reply via email to

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