From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 6 12:20:12 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 E7BD316A420 for ; Mon, 6 Mar 2006 12:20:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03CF543D45 for ; Mon, 6 Mar 2006 12:20:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k26CKBSr011892 for ; Mon, 6 Mar 2006 12:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k26CKBWT011848; Mon, 6 Mar 2006 12:20:11 GMT (envelope-from gnats) Resent-Date: Mon, 6 Mar 2006 12:20:11 GMT Resent-Message-Id: <200603061220.k26CKBWT011848@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, Max.N@FreeBSD.org, Boyarov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF0716A420 for ; Mon, 6 Mar 2006 12:18:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFF1C43D45 for ; Mon, 6 Mar 2006 12:18:20 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k26CIK1Z093049 for ; Mon, 6 Mar 2006 12:18:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k26CIK8v093048; Mon, 6 Mar 2006 12:18:20 GMT (envelope-from nobody) Message-Id: <200603061218.k26CIK8v093048@www.freebsd.org> Date: Mon, 6 Mar 2006 12:18:20 GMT From: Max.N@FreeBSD.org, Boyarov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/94138: [patch] Mk/bsd.gcc.mk, Mk/bsd.port.mk: CPUTYPE cause build problems if used USE_GCC=2xx X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 12:20:13 -0000 >Number: 94138 >Category: ports >Synopsis: [patch] Mk/bsd.gcc.mk, Mk/bsd.port.mk: CPUTYPE cause build problems if used USE_GCC=2xx >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: Mon Mar 06 12:20:06 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Max N, Boyarov >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: FreeBSD deimos 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Fri Mar 3 15:01:39 EET 2006 root@deimos:/usr/obj/usr/src/sys/deimos i386 >Description: If set CPUTYPE to type unknown for gcc-2xx family build port fail. On ports who used USE_GCC. This cause becouse gcc-2xx not spport all -march supported by base compiller. >How-To-Repeat: cd /usr/ports/net-mgmt/arts++ env CPUTYPE=pentium3 make ===> Vulnerability check disabled, database not found ===> Extracting for arts++-1.1.a11_1,1 => MD5 Checksum OK for arts++-1.1.a11.tar.gz. => SHA256 Checksum OK for arts++-1.1.a11.tar.gz. ===> Patching for arts++-1.1.a11_1,1 ===> arts++-1.1.a11_1,1 depends on executable: gmake - found ===> arts++-1.1.a11_1,1 depends on executable: gcc295 - found ===> Configuring for arts++-1.1.a11_1,1 configure: WARNING: you should use --build, --host, --target checking for i386-portbld-freebsd7.0-gcc... gcc295 checking for C compiler default output... configure: error: C compiler cannot create executables >Fix: --- bsd.gcc295.diff begins here --- Index: bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.529 diff -u -r1.529 bsd.port.mk --- bsd.port.mk 23 Feb 2006 15:37:20 -0000 1.529 +++ bsd.port.mk 2 Mar 2006 16:23:15 -0000 @@ -1442,13 +1442,6 @@ PLIST_REINPLACE+= dirrmtry PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/dev/null || true! -.if defined(WITHOUT_CPU_CFLAGS) -.if defined(_CPUCFLAGS) -.if !empty(_CPUCFLAGS) -CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} -.endif -.endif -.endif .if defined(NOPORTDOCS) PLIST_SUB+= PORTDOCS="@comment " @@ -1497,6 +1490,14 @@ .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif +.if defined(WITHOUT_CPU_CFLAGS) +.if defined(_CPUCFLAGS) +.if !empty(_CPUCFLAGS) +CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} +.endif +.endif +.endif + .if defined(USE_OPENLDAP_VER) USE_OPENLDAP?= yes WANT_OPENLDAP_VER= ${USE_OPENLDAP_VER} Index: bsd.gcc.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.gcc.mk,v retrieving revision 1.7 diff -u -r1.7 bsd.gcc.mk --- bsd.gcc.mk 21 Jan 2006 17:37:01 -0000 1.7 +++ bsd.gcc.mk 2 Mar 2006 16:23:15 -0000 @@ -137,6 +137,15 @@ CXX:= g++${V} F77:= g77-${V} _GCC_BUILD_DEPENDS:= ${CC} + +.if defined(CPUTYPE) && ${CPUTYPE:Mi[34]86}x == x && \ + ${CPUTYPE:Mpentium}x == x && \ + ${CPUTYPE:Mpentiumpro}x == x && \ + ${CPUTYPE:Mk6}x == x && \ + ${V:N2[789]*}x == x +WITHOUT_CPU_CFLAGS= yes +.endif + . endif . endif .endfor --- bsd.gcc295.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: