From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 5 10:10:01 2010 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 2024F1065672 for ; Tue, 5 Oct 2010 10: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 EE1318FC08 for ; Tue, 5 Oct 2010 10:10:00 +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 o95AA0E6040776 for ; Tue, 5 Oct 2010 10:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o95AA04p040775; Tue, 5 Oct 2010 10:10:00 GMT (envelope-from gnats) Resent-Date: Tue, 5 Oct 2010 10:10:00 GMT Resent-Message-Id: <201010051010.o95AA04p040775@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, Olivier Cochard-Labbé Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EB331065670 for ; Tue, 5 Oct 2010 10:02:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 2D3FB8FC0C for ; Tue, 5 Oct 2010 10:02:08 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o95A27aF021338 for ; Tue, 5 Oct 2010 10:02:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o95A27xL021337; Tue, 5 Oct 2010 10:02:07 GMT (envelope-from nobody) Message-Id: <201010051002.o95A27xL021337@www.freebsd.org> Date: Tue, 5 Oct 2010 10:02:07 GMT From: Olivier Cochard-Labbé To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/151224: [multimedia/x264] setting TARGET_ARCH variable prevent to compile 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: Tue, 05 Oct 2010 10:10:01 -0000 >Number: 151224 >Category: ports >Synopsis: [multimedia/x264] setting TARGET_ARCH variable prevent to compile >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 05 10:10:00 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbé >Release: 8.1 >Organization: BSD Media Center >Environment: FreeBSD d630.bsdrp.net 8.1-RELEASE FreeBSD 8.1-RELEASE #73: Sat Jul 24 10:33:11 CEST 2010 root@d630.bsdrp.net:/usr/obj/usr/src/sys/DellD630 amd64 >Description: When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make The make process generate a bad compilation line and failed by displaying this message: (etc...) cc -Wshadow -O3 -ffast-math -O2 -pipe -fno-strict-aliasing -Wall -I. -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include -std=gnu99 -s -fomit-frame-pointer i386 -c -o common/mc.o common/mc.c cc: i386: No such file or directory gmake: *** [common/mc.o] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 1 Stop in /usr/ports/multimedia/x264. *** Error code 1 We can notice that the value of the variable TARGET_ARCH is put just after the "-fomit-frame-pointer" and before the "-c -o common/mc.o" options: Something missing. >How-To-Repeat: When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make >Fix: Same solution than with PR/147853 (patch included) Patch attached with submission follows: --- Makefile.orig 2010-10-05 11:35:51.000000000 +0200 +++ Makefile 2010-10-05 11:36:24.000000000 +0200 @@ -23,6 +23,7 @@ EXTRACT_AFTER_ARGS?= | ${TAR} -xf - --exclude .svn WRKSRC= ${WRKDIR}/${DISTNAME} USE_GMAKE= yes +MAKE_ENV+= TARGET_ARCH= USE_LDCONFIG= yes HAS_CONFIGURE= yes MAKE_JOBS_SAFE= yes >Release-Note: >Audit-Trail: >Unformatted: