From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Dec 30 17:40:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D981DCEA for ; Sun, 30 Dec 2012 17:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9BDBF8FC12 for ; Sun, 30 Dec 2012 17:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBUHe04C010456 for ; Sun, 30 Dec 2012 17:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBUHe0Vs010455; Sun, 30 Dec 2012 17:40:00 GMT (envelope-from gnats) Resent-Date: Sun, 30 Dec 2012 17:40:00 GMT Resent-Message-Id: <201212301740.qBUHe0Vs010455@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Klaus Aehlig Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B91DD91D for ; Sun, 30 Dec 2012 17:36:54 +0000 (UTC) (envelope-from aehlig@linta.de) Received: from linta.de (isilmar-3.linta.de [188.40.101.200]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8D08FC0C for ; Sun, 30 Dec 2012 17:36:53 +0000 (UTC) Received: (qmail 452 invoked by uid 10); 30 Dec 2012 17:30:11 -0000 Received: from hilbert.linta.de by isilmar.linta.de with BSMTP; 30 Dec 2012 17:30:11 -0000 Received: by hilbert.linta.de (Postfix, from userid 1001) id 23DF856441; Sun, 30 Dec 2012 18:07:08 +0100 (CET) Message-Id: <20121230170708.23DF856441@hilbert.linta.de> Date: Sun, 30 Dec 2012 18:07:08 +0100 (CET) From: Klaus Aehlig To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.114 Subject: ports/174837: lang/intercal semantic incorrect compiler, when built with gcc 4.2.1 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Klaus Aehlig List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2012 17:40:01 -0000 >Number: 174837 >Category: ports >Synopsis: lang/intercal semantic incorrect compiler, when built with gcc 4.2.1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 30 17:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Klaus Aehlig >Release: FreeBSD 8.3-STABLE amd64 >Organization: >Environment: System: FreeBSD hilbert.linta.de 8.3-STABLE FreeBSD 8.3-STABLE #10 r243473: Sun Nov 25 06:27:11 CET 2012 root@hilbert.linta.de:/usr/obj/usr/src/sys/HILBERT amd64 >Description: If build with gcc 4.2.1 (i.e., the base cc on stable/8), ick produces compile errors when trying to use the system libraries. >How-To-Repeat: Build lang/intercal on stable/8 (where the base compiler is gcc 4.2.1). Try to compile the attached program with 'ick -b add.i'. You get the compiler error ICL997I ILLEGAL POSSESSION OF A CONTROLLED UNARY OPERATOR. ON THE WAY TO 27 CORRECT SOURCE AND RESUBNIT instead of the expected addition program. This happens with other system library calls as well. If lang/intercal is built with gcc46 everything works as expected. I have not tried which other C compilers do or do not work. >Fix: Enforce building with a specific version of gcc, i.e., by applying the following patch (intercal.diff). --- intercal.diff begins here --- diff -ruN intercal.orig/Makefile intercal/Makefile --- intercal.orig/Makefile 2012-12-30 17:44:48.000000000 +0100 +++ intercal/Makefile 2012-12-30 17:45:04.000000000 +0100 @@ -15,6 +15,7 @@ GNU_CONFIGURE= yes USE_GMAKE= yes +USE_GCC= 4.6 CFLAGS+= -D_POSIX_SOURCE DATADIR= ${PREFIX}/share/ick --- intercal.diff ends here --- --- add.i begins here --- PLEASE DO WRITE IN .1 DO WRITE IN .2 DO READ OUT .1 DO READ OUT .2 DO (1009) NEXT PLEASE DO READ OUT .3 DO GIVE UP --- add.i ends here --- >Release-Note: >Audit-Trail: >Unformatted: