From owner-freebsd-questions@freebsd.org Sat Oct 17 22:35:00 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BE7C443FA8 for ; Sat, 17 Oct 2020 22:35:00 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4CDHrz4NGgz3T7Z for ; Sat, 17 Oct 2020 22:34:59 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.be-well.ilk.org (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id E9BAB33C0A; Sat, 17 Oct 2020 18:34:47 -0400 (EDT) Received: by lowell-desk.be-well.ilk.org (Postfix, from userid 1147) id 581CD16323B5; Sat, 17 Oct 2020 18:34:47 -0400 (EDT) From: Lowell Gilbert To: Christoph Kukulies Cc: freebsd-questions@freebsd.org Subject: Re: Which ports to install to compile gnu binutils? References: <283908A2-7765-450B-9746-D51FF58C99B2@kukulies.org> <20201015214755.GB26691@geeks.org> <2F004468-03AA-4F02-9367-1A963F69ED38@kukulies.org> <448sc6szgz.fsf@be-well.ilk.org> Date: Sat, 17 Oct 2020 18:34:46 -0400 In-Reply-To: (Christoph Kukulies's message of "Sat, 17 Oct 2020 09:21:48 +0200") Message-ID: <44y2k4cwhl.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4CDHrz4NGgz3T7Z X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-questions-local@be-well.ilk.org has no SPF policy when checking 23.30.133.173) smtp.mailfrom=freebsd-questions-local@be-well.ilk.org X-Spamd-Result: default: False [0.81 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.48)[-0.481]; NEURAL_HAM_LONG(-0.37)[-0.369]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ilk.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.34)[-0.345]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:7922, ipnet:23.30.0.0/15, country:US]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2020 22:35:00 -0000 Christoph Kukulies writes: >> Am 16.10.2020 um 22:11 schrieb Lowell Gilbert : >> Do you need that specific version? >>=20 > > Yes. Reason: I =84inherited=93 a project from someone, who passed away and > it is to me to continue the project. He had developed everything under > that specific > version of the gnu-arm toolchain. I moved everything to Unix and to be > sure that my build environment will produce the exact same results - > which isn=92t the > case at the moment (some instructions are assembled differently) - I=92m = in need of the exact version. But not necessarily permanently; only until you can verify that another version gives you good results. [Where "good" is for you to define based on the project's criteria.] >> If not, the devel/binutils port with the arm-none-eabi flavor will build >> it for you. I can't find the user documentation for using flavors at the >> moment, but >> # make -C /usr/ports/devel/binutils FLAVOR=3Darm_none_eabi install >> should do it, or the equivalent for your build system (e.g. >> # portmaster devel/binutils@arm_none_eabi >> will also work). >>=20 >> If you do need the specific version, then the (some would say optional) >> first step is to badmouth the person forcing you to use a specific old > > :) difficult. I could stand at his grave. May God bless him. Yeah, sounds inappropriate for this case. My sympathies to his memory. If he were around, I'm sure you wouldn't have the problem at all. >> version. After you've done that, you can either change the port or build >> it by hand. Both are fairly simple: the first involves changing the >> tarfile name in the Makefile and distinfo, while the second involves >> unpacking the tarball and following the README instructions, which will >> generally lead you to a 2-line command invocation. > > This gives me a little hope.=20 I suspect that doing everything out-of-tree until you've verified your changes is probably the way to go. I typically do this in my own home directory until I'm ready to package it up for production, but that's somewhat a matter of personal style. The tarball you quoted has a lot more than just binutils in it; the binutils tarball is included, but lots of other things are also. The instructions in the top directory of it seem to cover everything, including scripts to build it. They'll all need to be adapted slightly (for example, they assume that the base system's /bin/sh is bash, or can be made so), but there's a full set of build scripts included for Ubuntu, so it's a nice start. I'd go a little further in terms of helping, but some of the details depend on exactly what your "real" project is like and why you can't actually use other versions. Be well. Lowell