Date: Mon, 6 Mar 2006 12:18:20 GMT From: Max.N@FreeBSD.org, Boyarov <zotrix@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/94138: [patch] Mk/bsd.gcc.mk, Mk/bsd.port.mk: CPUTYPE cause build problems if used USE_GCC=2xx Message-ID: <200603061218.k26CIK8v093048@www.freebsd.org> Resent-Message-ID: <200603061220.k26CKBWT011848@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603061218.k26CIK8v093048>