From owner-freebsd-mips@FreeBSD.ORG Wed Nov 19 00:47:37 2014 Return-Path: Delivered-To: freebsd-mips@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 CA696D43; Wed, 19 Nov 2014 00:47:37 +0000 (UTC) Received: from isis.morrow.me.uk (isis.morrow.me.uk [204.109.63.142]) by mx1.freebsd.org (Postfix) with ESMTP id A8789CFE; Wed, 19 Nov 2014 00:47:37 +0000 (UTC) Received: from anubis.morrow.me.uk (unknown [93.89.81.46]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id 902F84508A; Wed, 19 Nov 2014 00:47:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 isis.morrow.me.uk 902F84508A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=morrow.me.uk; s=dkim201101; t=1416358055; bh=Wdmi7UNoqi5nPQYmALnHJHJNs8UTAYR2he/cPe55uAU=; h=Date:From:To:Subject:In-Reply-To; b=MD75xzKruWBY+jFJCZe4Gz4YlgFVHfmpo+E+HjKYkRrzKxELHzdmaitKFH1AMNgwl FwOT9hO4caWkaR4TNTlJW9wkyIUtTkXsanE0h2bsQ5LWVUJ6f3Cbf4JztALwO6p5Ca uyT6kJ76X3aYTAEUEoopDyLFjWWoPwLXI36JOuvs= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.4 at isis.morrow.me.uk Received: by anubis.morrow.me.uk (Postfix, from userid 5001) id ED09F164AE; Wed, 19 Nov 2014 00:47:33 +0000 (GMT) Date: Wed, 19 Nov 2014 00:47:33 +0000 From: Ben Morrow To: sbruno@freebsd.org, freebsd-mips@freebsd.org Subject: Re: Compiling ports, mips64 Message-ID: <20141119004731.GA95832@anubis.morrow.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1416350711.1248.56.camel@bruno> X-Newsgroups: gmane.os.freebsd.devel.mips User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 00:47:37 -0000 Quoth sbruno@freebsd.org: > > I've tried with both gcc and clang+small hack and I keep getting stopped > here while building ports. > > --- pkg_config.h --- > ===> Staging for pkg-1.3.8_3 > ===> Generating temporary packing list [...] > libtool: install: strip --strip-debug > /usr/ports/ports-mgmt/pkg/work/stage/usr/local/lib/libpkg_static.a > libtool: install: chmod 644 > /usr/ports/ports-mgmt/pkg/work/stage/usr/local/lib/libpkg_static.a > libtool: install: ranlib > /usr/ports/ports-mgmt/pkg/work/stage/usr/local/lib/libpkg_static.a > ranlib: fatal: Invalid filename > *** Error code 70 There is a bug in strip on mips; it doesn't strip static libraries properly. I am using this as a (very crude) workaround: --- a/contrib/binutils/binutils/objcopy.c +++ b/contrib/binutils/binutils/objcopy.c @@ -2754,6 +2754,9 @@ strip_main (int argc, char *argv[]) continue; } + if (fnmatch("*.a", argv[i], 0) == 0) + continue; + if (preserve_dates) /* No need to check the return value of stat(). It has already been checked in get_file_size(). */ There isn't much point stripping static libs anyway, given that the final executable is going to be stripped again. Ben