From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 22 17:10:22 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7657016A4CE for ; Thu, 22 Jan 2004 17:10:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 377AB43D49 for ; Thu, 22 Jan 2004 17:10:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0N1AHFR067597 for ; Thu, 22 Jan 2004 17:10:17 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0N1AHUv067595; Thu, 22 Jan 2004 17:10:17 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 22 Jan 2004 17:10:17 -0800 (PST) Resent-Message-Id: <200401230110.i0N1AHUv067595@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, "James E. Housley" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E7CF16A4CE for ; Thu, 22 Jan 2004 17:06:11 -0800 (PST) Received: from thehousleys.net (frenchknot.ne.client2.attbi.com [24.34.30.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2A4B43D2D for ; Thu, 22 Jan 2004 17:06:09 -0800 (PST) (envelope-from jeh@thehousleys.net) Received: from cat.int.thehousleys.net (localhost [IPv6:::1]) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i0N1647X003267 for ; Thu, 22 Jan 2004 20:06:04 -0500 (EST) (envelope-from jeh@cat.int.thehousleys.net) Received: (from jeh@localhost) by cat.int.thehousleys.net (8.12.9p2/8.12.9/Submit) id i0N164Ii003266; Thu, 22 Jan 2004 20:06:04 -0500 (EST) (envelope-from jeh) Message-Id: <200401230106.i0N164Ii003266@cat.int.thehousleys.net> Date: Thu, 22 Jan 2004 20:06:04 -0500 (EST) From: "James E. Housley" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/61757: FreeBSD 4.9 barfs on an empty _CPUCFLAGS with WITHOUT_CPUC_CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "James E. Housley" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 01:10:22 -0000 >Number: 61757 >Category: ports >Synopsis: FreeBSD 4.9 barfs on an empty _CPUCFLAGS with WITHOUT_CPUC_CFLAGS >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 22 17:10:16 PST 2004 >Closed-Date: >Last-Modified: >Originator: James E. Housley >Release: FreeBSD 4.9-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD cat.int.thehousleys.net 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Fri Nov 28 16:19:53 EST 2003 root@cat.int.thehousleys.net:/usr/obj/usr/src/sys/SERVERKERNEL i386 >Description: : It seems your recent commit to devel/i386-rtems-g77 breaks INDEX: : : lemur# make -V CFLAGS : RE substitution error: empty (sub)expression : Variable CFLAGS is recursive. : : Can you look into this? : : CHeers, : -erwin : That is fixed. Are you good with makefiles? The problem, at least on 4.9, seems to be if _CPUCFLAGS is empty or not defined this error happens. I have tried all the possible ways I can think of to test for _CPUCFLAGS being empty to prevent the subsitution from happening and none worked. .if defined(WITHOUT_CPU_CFLAGS) && ${_CPUCFLAGS} != "" .if defined(WITHOUT_CPU_CFLAGS) && defined(_CPUCFLAGS) .if defined(WITHOUT_CPU_CFLAGS) && "${_CPUCFLAGS}x" != "x" .if defined(WITHOUT_CPU_CFLAGS) && !empty(_CPUCFLAGS) Unless this can be fixed this will have to be removed or converted to a messier: CFLAGS:= ${CFLAGS:C/-mcpu=[^ ]*//:C/-march=[^ ]*//:C/-mtune=[^ ]*//} CXXFLAGS:= ${CXXFLAGS:C/-mcpu=[^ ]*//:C/-march=[^ ]*//:C/-mtune=[^ ]*//} >How-To-Repeat: Create a simple port Makefile that sets WITHOUT_CPU_CFLAGS=YES and on a 4.9 machine without and _CPUCFLAGS defined. I believe this worked fine on 5.1 >Fix: >Release-Note: >Audit-Trail: >Unformatted: