From se@dialup124.zpr.uni-koeln.de  Sat Oct  3 15:41:28 1998
Received: from Sisyphos.MI.Uni-Koeln.DE (Sisyphos.MI.Uni-Koeln.DE [134.95.212.10])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA11245
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 3 Oct 1998 15:41:26 -0700 (PDT)
          (envelope-from se@dialup124.zpr.uni-koeln.de)
Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124])
	by Sisyphos.MI.Uni-Koeln.DE (8.8.7/8.8.7) with ESMTP id AAA16665
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Oct 1998 00:41:04 +0200 (MET DST)
Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.9.1/8.6.9) id AAA01283; Sun, 4 Oct 1998 00:19:21 +0200 (CEST)
Message-Id: <199810032219.AAA01283@dialup124.zpr.Uni-Koeln.DE>
Date: Sun, 4 Oct 1998 00:19:21 +0200 (CEST)
From: Stefan Esser <se@dialup124.zpr.uni-koeln.de>
Reply-To: se@FreeBSD.ORG
To: FreeBSD-gnats-submit@freebsd.org
Subject: "gcc -pipe xxx.s" hangs
X-Send-Pr-Version: 3.2

>Number:         8138
>Category:       gnu
>Synopsis:       gcc -pipe xxx.s hangs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct  3 15:50:00 PDT 1998
>Closed-Date:    Fri Nov 10 09:16:23 PST 2000
>Last-Modified:  Fri Nov 10 09:17:04 PST 2000
>Originator:     Stefan Esser
>Release:        FreeBSD 3.0-BETA i386
>Organization:
>Environment:
FreeBSD 3.0-BETA (ELF) built 20-Oct-98
>Description:
If the assembler "as" is invoked via "gcc -pipe xxx.s", the parameters
passed to as will end with a hyphen "-", indicating that input should
also be taken from STDIN. The assembler process will wait for input 
until EOF is read.
This may cause unexpected build failures, for example if ports come 
with assembly language files and CFLAGS=-pipe. Since GNU configure 
may contained tests for "as" features, the configure target of a port
may seem to hang indefenitely.
>How-To-Repeat:

	touch xxx.s
	cc -v -pipe xxx.s

The assembler will be called with a "-" as last parameter and will wait
for a ^D to be pressed ...

This situation is triggered by the configure script provided by the 
latest version of WINE (980927).
>Fix:
Fix the parameter processing of "gcc". As far as I can see, the assembler
does not really need "-" for the "cc -pipe" case, since STDIN is assumed,
if no file name is passed. I guess that "/usr/src/contrib/gcc/cp/lang-specs.h"
must be modified, but didn't have time to actually attempt a fix.
>Release-Note:
>Audit-Trail:

From: vanmaren@fast.cs.utah.edu (Kevin Van Maren)
To: freebsd-gnats-submit@freebsd.org, se@freebsd.org
Cc:  Subject: Re: gnu/8138: gcc -pipe xxx.s hangs
Date: Thu, 22 Oct 1998 14:20:57 -0600

 I hit this problem running configure as well.  Roland McGrath told
 me about the problem:
 
 	The problematic bit is "%{pipe:-}" in the `*asm_final:' section of the
 	specs file; remove it.
 
 I haven't tried this, though.
 
 Kevin
Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: steve 
Responsible-Changed-When: Wed Dec 9 18:55:34 PST 1998 
Responsible-Changed-Why:  
Peter Wemm contribified this for FreeBSD, so let's get him to take 
a look the proposed fix. 
Responsible-Changed-From-To: peter->obrien 
Responsible-Changed-By: peter 
Responsible-Changed-When: Sun Nov 28 07:14:18 PST 1999 
Responsible-Changed-Why:  
David's doing the care and feeding of gcc these days. 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: freebsd-gnats-submit@freebsd.org
Cc: se@freebsd.org, obrien@freebsd.org
Subject: RE: gnu/8138 gcc -pipe xxx.s hangs
Date: Sat, 01 Apr 2000 16:36:56 +0200

 Hi
 
 The 'How-To-Repeat' in this PR does not hang on my machine.
 
 k@numeri ~ >uname -a
 FreeBSD numeri.campus.luth.se 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Tue Mar 21 
 21:27:54 CET 2000     troot@numeri.campus.luth.se:/usr/obj/usr/src/sys/NUMERI  
 i386
 k@numeri ~ >
 k@numeri ~ >touch xxx.s
 k@numeri ~ >cc -v -pipe xxx.s
 Using builtin specs.
 gcc version 2.95.2 19991024 (release)
  /usr/libexec/elf/as -v -o /tmp/cca45134.o xxx.s
 GNU assembler version 2.9.1 (i386-unknown-freebsdelf), using BFD version 2.9.1
  /usr/libexec/elf/ld -m elf_i386 -dynamic-linker /usr/libexec/ld-elf.so.1 
 /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/libexec/elf 
 -L/usr/libexec -L/usr/lib /tmp/cca45134.o /usr/lib/libgcc.a -lc 
 /usr/lib/libgcc.a /usr/lib/crtend.o /usr/lib/crtn.o
 /usr/lib/crt1.o: In function `_start':
 /usr/lib/crt1.o(.text+0x79): undefined reference to `main'
 k@numeri ~ >
 
 I guess all the changes in gcc since 3.0 has solved the problem.
 
 This PR can probably be closed :-)
 
 /Johan K
 
 
 

From: Tim Vanderhoek <tim@localhost.nowhere>
To: freebsd-gnats-submit@FreeBSD.org, se@FreeBSD.org
Cc: vanderh@ecf.toronto.edu
Subject: Re: gnu/8138: gcc -pipe xxx.s hangs
Date: Tue, 16 May 2000 18:05:45 -0400 (EDT)

 See also gnu/12122.
 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Fri Nov 10 09:16:23 PST 2000 
State-Changed-Why:  
I am unable to test this as I have no RELENG_3 boxes.  Since others have 
said they do not see the problem, I really cannot do anything other than 
leave it status-quo. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=8138 
>Unformatted:
