Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 11:55:41 -0800 (PST)
From:      Andreas Klemm <andreas>
To:        andreas, bugs
Subject:   pgcc
Message-ID:  <199612171955.LAA14778@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
>From root@guest.zipnet.net  Mon May 20 08:29:53 1996
Received: from guest.zipnet.net (guest.zipnet.net [199.232.255.43])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA24959
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 May 1996 08:29:09 -0700 (PDT)
Received: (from root@localhost) by guest.zipnet.net (8.7.5/8.7.3) id LAA00269; Mon, 20 May 1996 11:28:18 GMT
Message-Id: <199605201128.LAA00269@guest.zipnet.net>
Date: Mon, 20 May 1996 11:28:18 GMT
From: Charlie Root <root@guest.zipnet.net>
Reply-To: mi@aldan.zipnet.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: compiling kernel with new gcc
X-Send-Pr-Version: 3.2

>Number:         1221
>Category:       bin
>Synopsis:       new gcc-2.7.2 gives a LOT of warnings, and a few ERRORS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    andreas
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 20 08:30:01 PDT 1996
>Last-Modified:  Mon Oct  7 17:06:18 PDT 1996
>Originator:     Mikhail Teterin
>Organization:
>Release:        FreeBSD 2.2-960501-SNAP i386
>Environment:

	Pentiumized gcc-2.7.2. Patch-level 9.

>Description:

	A lot of warnings compiling many .c files. Errors with
	asm() lines in kern_clock.c and clock.c .

>How-To-Repeat:

	When making kernel use the following instead of `make' :
		make CC="/usr/local/bin/gcc -mpentium"

>Fix:
	
	Ignore the warnings. Compile the two files with the standard
	cc (2.6.3).

>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, mi@aldan.zipnet.net
Cc:  Subject: Re: bin/1221: compiling kernel with new gcc
Date: Tue, 21 May 1996 16:22:22 +1000

 >	Pentiumized gcc-2.7.2. Patch-level 9.
 
 >>Description:
 
 >	A lot of warnings compiling many .c files. Errors with
 >	asm() lines in kern_clock.c and clock.c .
 
 I think the errors are because the Pentiumized gcc doesn't support
 the "A" constraint.  It is based on an ancient version of gcc (2.3.x
 or 2.4.x) and doesn't support all the features of 2.6.x or 2.7.x.
 
 >>Fix:
 >	
 >	Ignore the warnings. Compile the two files with the standard
 >	cc (2.6.3).
 
 Real fix: compile all files with the standard cc (2.6.3 + FreeBSD patches).
 
 Bruce
State-Changed-From-To: open-analyzed 
State-Changed-By: wosch 
State-Changed-When: Wed Sep 18 14:28:25 PDT 1996 
State-Changed-Why:  
we are now update gcc to gcc-2.7.* 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Sep 18 14:28:25 PDT 1996 
Responsible-Changed-Why:  
Responsible-Changed-From-To: peter->andreas 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Oct 7 17:02:47 PDT 1996 
Responsible-Changed-Why:  
The pgcc port is maintained by Andreas. 

As Bruce pointed out, pgcc is a hybrid of gcc-2.4.X and gcc-2.7.X, 
and our kernel uses backend features not present in 2.4.x.  This is a 
pgcc bug, not a kernel problem. 

The warnings are part of gcc-2.7's more picky frontend. 
>Unformatted:

>From root@guest.zipnet.net  Mon May 20 08:37:39 1996
Received: from guest.zipnet.net (guest.zipnet.net [199.232.255.43])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA25565
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 May 1996 08:37:36 -0700 (PDT)
Received: (from root@localhost) by guest.zipnet.net (8.7.5/8.7.3) id LAA00383; Mon, 20 May 1996 11:37:46 GMT
Message-Id: <199605201137.LAA00383@guest.zipnet.net>
Date: Mon, 20 May 1996 11:37:46 GMT
From: Charlie Root <root@guest.zipnet.net>
Reply-To: mi@aldan.zipnet.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: pgcc in ports 
X-Send-Pr-Version: 3.2

>Number:         1222
>Category:       ports
>Synopsis:       Header files conflict
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    andreas
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 20 08:40:01 PDT 1996
>Last-Modified:  Mon Oct  7 17:00:37 PDT 1996
>Originator:     Mikhail Teterin
>Organization:
>Release:        FreeBSD 2.2-960501-SNAP i386
>Environment:

	pgcc, patch level 9

>Description:

	/usr/local/lib/gcc-lib/pentium-uknown-freebsd/2.7.2p/include/stddef.h
	and /usr/include/stdlib.h both define rune_t, which produces a warning
	every time.
	

>How-To-Repeat:

	Use the new compiler to compile anything, which includes <stdlib.h>

>Fix:
	
	Remove the "typedef _BSD_RUNE_T rune_t;" line from gcc's file. Or:
	Ignore the warning, although, it slows down the compilation somewhat.

>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@freebsd.org, mi@aldan.zipnet.net
Cc:  Subject: Re: ports/1222: pgcc in ports
Date: Tue, 21 May 1996 16:35:30 +1000

 >	pgcc, patch level 9
 
 >>Description:
 
 >	/usr/local/lib/gcc-lib/pentium-uknown-freebsd/2.7.2p/include/stddef.h
 >	and /usr/include/stdlib.h both define rune_t, which produces a warning
 >	every time.
 
 This is caused by FreeBSD's std*.h not actually being standard (rune_t isn't
 standard), and gcc's stddef.h being out of date.
 
 >>Fix:
 >	
 >	Remove the "typedef _BSD_RUNE_T rune_t;" line from gcc's file. Or:
 >	Ignore the warning, although, it slows down the compilation somewhat.
 
 Real fix: use the standard headers.
 
 Bruce
State-Changed-From-To: open-analyzed 
State-Changed-By: wosch 
State-Changed-When: Tue Sep 24 17:26:05 PDT 1996 
State-Changed-Why:  
Analyzed by Bruce + we are now update to gcc 2.7.2 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Tue Sep 24 17:26:05 PDT 1996 
Responsible-Changed-Why:  
State-Changed-From-To: analyzed-closed 
State-Changed-By: peter 
State-Changed-When: Mon Oct 7 16:48:18 PDT 1996 
State-Changed-Why:  

State-Changed-From-To: closed-analyzed 
State-Changed-By: peter 
State-Changed-When: Mon Oct 7 16:54:27 PDT 1996 
State-Changed-Why:  
argh, I was trying to abort the last state change but gnats 
went onwards.. :-( 

What I meant to say was that the pgcc port is probably  rather 
broken in other ways too, since it doesn't appear to have the correct 
config/i386/freebsd.h file, as well as a whole host of other fixes. 

And besides, the standard headers are meant to be used with gcc, it 
should not supply it's own.  This is a problem with the port. 
Responsible-Changed-From-To: peter->andreas 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Oct 7 16:59:51 PDT 1996 
Responsible-Changed-Why:  
The pgcc port is maintained by Andreas. 
>Unformatted:




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612171955.LAA14778>