public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Interesting
@ 1994-05-18 21:24 Jeffrey A Law
  1994-05-18 23:23 ` Interesting Ken Raeburn
  1994-05-19  7:57 ` Interesting Ian Lance Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: Jeffrey A Law @ 1994-05-18 21:24 UTC (permalink / raw)
  To: raeburn; +Cc: gas2

Is gas-2.3 only supposed to build with gnu-make?

Using 4.4 make on a PA I get:

rm -f bfd.h-new 64 ../include/bfd.h
grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null || exit 0
*** Error code 1

cute.

Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interesting
  1994-05-18 21:24 Interesting Jeffrey A Law
@ 1994-05-18 23:23 ` Ken Raeburn
  1994-05-19  0:25   ` Interesting Jeffrey A Law
  1994-05-19  7:57 ` Interesting Ian Lance Taylor
  1 sibling, 1 reply; 5+ messages in thread
From: Ken Raeburn @ 1994-05-18 23:23 UTC (permalink / raw)
  To: law%cs.utah.edu; +Cc: gas2

   Date: Wed, 18 May 94 22:22:56 MDT
   From: Jeffrey A Law <law@snake.cs.utah.edu>


   Is gas-2.3 only supposed to build with gnu-make?

No, it should work with as many versions as possible without requiring
unreasonable amounts of work.

   Using 4.4 make on a PA I get:

   rm -f bfd.h-new 64 ../include/bfd.h
   grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null || exit 0
   *** Error code 1

   cute.

   Jeff

This was the result of a few rounds of changes.

The intent is that the results of grep are always used, regardless of
the exit status, and that the "error code 1" message shouldn't be
displayed, even with "(ignored)", because it may cause confusion.

Some versions of make don't pass the whole line to one shell
invocation if you use a semicolon instead of "||", so a nonzero exit
status from grep aborts the build.  Most versions of make will display
the "ignored error" messages if you use a "-" prefix instead of the
"exit 0".  Keeping these in mind, how can I shut up BSD4.4 make too?

Does this work for you?

	if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null ; then true; \
	else true; fi

If it does, I'll try it out on some of the other systems, and other
versions of make.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interesting
  1994-05-18 23:23 ` Interesting Ken Raeburn
@ 1994-05-19  0:25   ` Jeffrey A Law
  0 siblings, 0 replies; 5+ messages in thread
From: Jeffrey A Law @ 1994-05-19  0:25 UTC (permalink / raw)
  To: Ken Raeburn; +Cc: gas2

	From:    Ken Raeburn <raeburn@cygnus.com>
	Subject:  Re: Interesting

  
  The intent is that the results of grep are always used, regardless of
  the exit status, and that the "error code 1" message shouldn't be
  displayed, even with "(ignored)", because it may cause confusion.
Reasonable.
  
  Does this work for you?
  
  	if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null ; then true; \
  	else true; fi
Yes.  It works with 4.4, 4.4-lite, hpux8, hpux9 & gnumake 3.62
  
Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Interesting
  1994-05-18 21:24 Interesting Jeffrey A Law
  1994-05-18 23:23 ` Interesting Ken Raeburn
@ 1994-05-19  7:57 ` Ian Lance Taylor
  1994-05-19  8:09   ` Interesting Jeffrey A Law
  1 sibling, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 1994-05-19  7:57 UTC (permalink / raw)
  To: law%cs.utah.edu; +Cc: raeburn, gas2

   Date: Wed, 18 May 94 22:22:56 MDT
   From: Jeffrey A Law <law@snake.cs.utah.edu>

   Is gas-2.3 only supposed to build with gnu-make?

   Using 4.4 make on a PA I get:

   rm -f bfd.h-new 64 ../include/bfd.h
   grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null || exit 0
   *** Error code 1

While I agree with Ken's proposed change, this has to be a bug in the
PA make program.  How can the above expression yield an error status
of anything but zero?

Ian


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interesting
  1994-05-19  7:57 ` Interesting Ian Lance Taylor
@ 1994-05-19  8:09   ` Jeffrey A Law
  0 siblings, 0 replies; 5+ messages in thread
From: Jeffrey A Law @ 1994-05-19  8:09 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: raeburn, gas2

	From:    Ian Lance Taylor <ian@cygnus.com>
	Subject:  Interesting

     Date: Wed, 18 May 94 22:22:56 MDT
     From: Jeffrey A Law <law@snake.cs.utah.edu>
  
     Is gas-2.3 only supposed to build with gnu-make?
  
     Using 4.4 make on a PA I get:
  
     rm -f bfd.h-new 64 ../include/bfd.h
     grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null || exit 0
     *** Error code 1
  
  While I agree with Ken's proposed change, this has to be a bug in the
  PA make program.  How can the above expression yield an error status
  of anything but zero?
No doubt about it.  It's certainly not the first bug we've found
in 4.4 make (most of which appear to have been fixed in time for 4.4-lite).

Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-05-19  8:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-05-18 21:24 Interesting Jeffrey A Law
1994-05-18 23:23 ` Interesting Ken Raeburn
1994-05-19  0:25   ` Interesting Jeffrey A Law
1994-05-19  7:57 ` Interesting Ian Lance Taylor
1994-05-19  8:09   ` Interesting Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).