From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 1 23:50:09 2011 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 BC3141065674 for ; Wed, 1 Jun 2011 23:50:09 +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 962FD8FC12 for ; Wed, 1 Jun 2011 23:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p51No98f058410 for ; Wed, 1 Jun 2011 23:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p51No9p3058409; Wed, 1 Jun 2011 23:50:09 GMT (envelope-from gnats) Resent-Date: Wed, 1 Jun 2011 23:50:09 GMT Resent-Message-Id: <201106012350.p51No9p3058409@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, Carl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4A251065672 for ; Wed, 1 Jun 2011 23:49:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 9C9968FC14 for ; Wed, 1 Jun 2011 23:49:10 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p51NnAsG047002 for ; Wed, 1 Jun 2011 23:49:10 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p51NnAVA047001; Wed, 1 Jun 2011 23:49:10 GMT (envelope-from nobody) Message-Id: <201106012349.p51NnAVA047001@red.freebsd.org> Date: Wed, 1 Jun 2011 23:49:10 GMT From: Carl To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157512: sysutils/libutempter: setting TARGET_ARCH variable prevents compilation 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: Wed, 01 Jun 2011 23:50:09 -0000 >Number: 157512 >Category: ports >Synopsis: sysutils/libutempter: setting TARGET_ARCH variable prevents compilation >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: Wed Jun 01 23:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Carl >Release: FreeBSD-8.2-RELEASE-amd64/i386 >Organization: >Environment: FreeBSD xxxxxxxx 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Trying to cross-build /usr/ports/sysutils/libutempter with the following command results in a compilation failure: env TARGET_ARCH=i386 make The error message is: cc: i386: No such file or directory This is the identical problem documented in all of the following problem reports: http://www.freebsd.org/cgi/query-pr.cgi?pr=147853 http://www.freebsd.org/cgi/query-pr.cgi?pr=151224 http://www.freebsd.org/cgi/query-pr.cgi?pr=156607 http://www.freebsd.org/cgi/query-pr.cgi?pr=157457 http://www.freebsd.org/cgi/query-pr.cgi?pr=157479 Yes indeed, folks, that's a hint that a widespread problem exists and should be dealt with systematically rather than leaving it to end users to discover and report one at a time. Please assign someone knowledgeable about this problem to the task of searching the entire ports collection for all instances of this same bug. Carl / K0802647 >How-To-Repeat: env TARGET_ARCH=i386 make >Fix: The attached patch applied to /usr/ports/sysutils/libutempter/Makefile fixed the problem for me, just as similar patches worked for problem reports ports/147853, ports/151224, ports/156607, ports/157457, and ports/157479. Note that the eventually committed fix for ports/156607 is implemented differently. Since I do not really understand the problem, my patch is not intended to imply an optimal solution. Patch attached with submission follows: --- old/Makefile 2011-05-31 15:17:01.000000000 -0700 +++ new/Makefile 2011-05-31 15:18:13.000000000 -0700 @@ -16,6 +16,7 @@ USE_BZIP2= yes USE_GMAKE= yes USE_LDCONFIG= yes +MAKE_ENV= TARGET_ARCH= .include >Release-Note: >Audit-Trail: >Unformatted: