From owner-freebsd-ports@FreeBSD.ORG Mon Jan 19 08:24:15 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92A29F6F for ; Mon, 19 Jan 2015 08:24:15 +0000 (UTC) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 32DA5840 for ; Mon, 19 Jan 2015 08:24:14 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnQGAHa+vFRbsIcT/2dsb2JhbABbgwZSxwKFeQKBHEQBAQEBAX2EDQEFOhwjEAsYCSUPKh4GE4gwAc8EAQEBAQEFAQEBAR6PeQeEKQEEkiCFT4FLiFCIECKDbz0xgkMBAQE Received: from 19.135-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.135.19]) by relay.skynet.be with ESMTP; 19 Jan 2015 09:24:05 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t0J8O4Z0001178; Mon, 19 Jan 2015 09:24:05 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Mon, 19 Jan 2015 09:24:04 +0100 From: Tijl Coosemans To: Gerald Pfeifer Subject: Re: INSTALL_TARGET=install-strip runs into "permission denied" Message-ID: <20150119092404.0a448f9f@kalimero.tijl.coosemans.org> In-Reply-To: References: <20150118130127.71b8cba9@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2015 08:24:15 -0000 On Sun, 18 Jan 2015 23:13:56 +0100 (CET) Gerald Pfeifer wrote: > On Sunday 2015-01-18 13:01, Tijl Coosemans wrote: >>> Here is the build log: >>> >>> install -m 555 fixinc.sh .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixinc.sh >>> install -s -m 555 fixincl .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl >>> install -m 555 mkheaders .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/mkheaders >>> test -z 'strip' || strip .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl >>> strip: unable to copy file '.../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl'; reason: Permission denied >>> Makefile:191: recipe for target 'install-strip' failed >>> gmake[3]: *** [install-strip] Error 1 >> This strip command seems redundant. Isn't fixincl already stripped by >> the "install -s" command above? > > Good point. > >> What does this piece of the log look like outside the ports framework? > > /usr/bin/install -c fixinc.sh .../gcc-ref8-amd64/libexec/gcc/x86_64-unknown-freebsd8.4/5.0.0/install-tools/fixinc.sh > /usr/bin/install -c fixincl .../gcc-ref8-amd64/libexec/gcc/x86_64-unknown-freebsd8.4/5.0.0/install-tools/fixincl > /usr/bin/install -c mkheaders .../gcc-ref8-amd64/libexec/gcc/x86_64-unknown-freebsd8.4/5.0.0/install-tools/mkheaders > test -z 'strip' || strip .../gcc-ref8-amd64/libexec/gcc/x86_64-unknown-freebsd8.4/5.0.0/install-tools/fixincl > gmake[2]: Leaving directory '.../OBJ-0118-1528/fixincludes' > > (I also tried setting STRIP_CMD to true, alas that is not used by GCC.) Try adding BINMODE=755 to the port Makefile or STRIP=true to CONFIGURE_ARGS