From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 5 14:10:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 937BA16A419 for ; Sun, 5 Aug 2007 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7B26A13C465 for ; Sun, 5 Aug 2007 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l75EA153023579 for ; Sun, 5 Aug 2007 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l75EA17M023578; Sun, 5 Aug 2007 14:10:01 GMT (envelope-from gnats) Resent-Date: Sun, 5 Aug 2007 14:10:01 GMT Resent-Message-Id: <200708051410.l75EA17M023578@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, Douglas Wells Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF59416A417 for ; Sun, 5 Aug 2007 14:03:45 +0000 (UTC) (envelope-from sysmaint@contek.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id BE29713C458 for ; Sun, 5 Aug 2007 14:03:45 +0000 (UTC) (envelope-from sysmaint@contek.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 05 Aug 2007 10:03:45 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id IYY12318; Sun, 5 Aug 2007 10:03:42 -0400 (EDT) Received: from 207-172-216-55.s817.apx1.sbo.ma.dialup.rcn.com (HELO mail.contek.com) ([207.172.216.55]) by smtp01.lnh.mail.rcn.net with ESMTP; 05 Aug 2007 10:03:36 -0400 Received: by mail.contek.com (Postfix, from userid 10112) id 4505F39864; Sun, 5 Aug 2007 08:48:22 -0400 (EDT) Message-Id: <20070805124822.4505F39864@mail.contek.com> Date: Sun, 5 Aug 2007 08:48:22 -0400 (EDT) From: Douglas Wells To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: sysmaint@contek.com Subject: ports/115216: ADA florist exit_process program doesn't compile due to internal error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Douglas Wells List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2007 14:10:01 -0000 >Number: 115216 >Category: ports >Synopsis: ADA florist exit_process program doesn't compile due to internal error >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 Aug 05 14:10:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Douglas Wells >Release: FreeBSD 6.2-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD flame.contek.com 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #0: Sun Feb 11 18:14:07 EST 2007 root@flame.contek.com:/other5/src.6.2/sys/i386/compile/FLAME.6.2 i386 GNAT: gnat-3.15p_1 / gnat-gcc-3.4.6_3 florist: florist-3.15p_1 (tools installed via ports compilation) >Description: A simple Ada program using devel/florist to access POSIX process primitives encounters the error: px_true.adb:2:06: file "posix-implementation-ok_signals.ads" not found px_true.adb:2:06: "px_true (body)" depends on "posix.process_primitives (spec)" px_true.adb:2:06: "posix.process_primitives (spec)" depends on "posix.signals (spec)" px_true.adb:2:06: "posix.signals (spec)" depends on "posix.implementation.ok_signals (spec)" gnatmake: "px_true.adb" compilation error Note that posix-implementation-ok_signals.ads is internal to florist. >How-To-Repeat: Use the command: gnatmake -I/usr/local/lib/florist px_true.adb with this test program: ------------------------- px_true.adb ------------------------ with POSIX.Process_Primitives; procedure px_true is package PPP renames POSIX.Process_Primitives; begin PPP.Exit_Process (0); end px_true; ----------------------- end px_true.adb ---------------------- >Fix: The problem arises because the configuration process has somehow become confused about the use of threads. If, after running "make configure", the Makefile is altered so that the line (~26): SIGNALS_GENERATED = is changed to: SIGNALS_GENERATED = posix-implementation-ok_signals.ads the resulting system properly creates and installs the file posix-implementation-ok_signals.ads, but this results in a system with errors due to duplicate signal values. This problem, in turn, seems to arise because several BSD signals are only defined in XSI mode or if a later version of POSIX is assumed. If pconfig.h is then changed to include: #define #define __XSI_VISIBLE 1 near the top, the resulting system properly compiles and executes this program and several others with the command: gnatmake -I/usr/local/lib/florist -gnato px_true.adb \ -L/usr/local/lib -largs -lflorist && ./px_true Note that there is clearly an underlying problem in the configuration mechanism that this workaround does not address. Also note that if the compilation is changed to include the "-gnato" flag, execution of the program results in the error: raised CONSTRAINT_ERROR : posix-signals.adb:1167 overflow check failed which is also some form of internal error for which I have not determined a workaround. >Release-Note: >Audit-Trail: >Unformatted: