From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by sourceware.org (Postfix) with ESMTPS id E84883858D31 for ; Mon, 20 Apr 2020 18:55:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E84883858D31 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-vk1-xa2e.google.com with SMTP id j188so2904015vkc.2 for ; Mon, 20 Apr 2020 11:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=swIgDZUoqRqx4BNPlBFMBlgQlFGm7FCbeRq+y6pWxeQ=; b=PJicjZnUR89BCO6SPYnhXFUXIO708Or/Fq0wNOaYIQYFDRu9UcQ2T0ZHInnZ4dKtc6 cr/GGebg0u67WCfBVArSfhL82Mf0GJyUpFd8YHHSmRRKsyCt61lIqzzMHEH7tctKldAb m6bx3CvG+2B8zDf/oUbaOCeCfiez8Il/P4tuhV7cqUgyjDiTXBCc7RyfY1s54mJL25q6 wAcxCvaPfjgLAM+uSBJN6oOGWTTi9eMt8JjOKRgWj7mYdSMncvqUld/hf52RNuEjuTr1 3PlR+kHYVdbmaxM+AO+eJq9mi2e7Mg8ORpXhuomskUoenbDu3YrvNPCrPc/BQAlqx1UV Jbnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=swIgDZUoqRqx4BNPlBFMBlgQlFGm7FCbeRq+y6pWxeQ=; b=ptSECe4KE4zKYrf6rQ5u6lRJrFa7Qr+EqJObwDFUn6AtoB7ScIpb1pooxWT3mTFqnp udsjVIkM/0eQXKzt2T403PMuO20VKKwynKHaiPZT4MMlUQPigV2MQ6HF2ev7RNPbhieB 5qKnBC41NVBL1904kiNuvvOVBtvWRDWH+xpRRPKTvxSUSdLir80pyCQHsahmaGDMxXn2 pnpya6VmGwzyK/JmSpIgym91syTUKJfLMrgOxUWB2QMlC4LYtpEGGowE93VgO4I+NODa XuziLPiCFMnO94AqE45bomEgodCf/InXYnsphqJOVayXwMkmb54nMLNFPkKNeqK/yXn+ Dkeg== X-Gm-Message-State: AGi0Pub5nS+/LpxqwKs+04/hW0Celg3T4bi/Oh0R9Bl1xJPlPjk8YEIg TuIRMjukDfSIs0yTsYuttVF0yqGo8UTs9ywB642+JA== X-Google-Smtp-Source: APiQypJvf+KWZiS+SawEVzjuIufwIUZ/v2azANHegdlpWkW224hbPbipYEtE4tZnWuz8N9Zbg4+zNQFjRBGpYuSlnzw= X-Received: by 2002:a1f:8ccf:: with SMTP id o198mr12510588vkd.53.1587408943383; Mon, 20 Apr 2020 11:55:43 -0700 (PDT) MIME-Version: 1.0 References: <921250919.1086849.1587309283539.ref@mail.yahoo.com> <921250919.1086849.1587309283539@mail.yahoo.com> In-Reply-To: <921250919.1086849.1587309283539@mail.yahoo.com> From: Jim Wilson Date: Mon, 20 Apr 2020 11:55:32 -0700 Message-ID: Subject: Re: Specifying where Binutils is and what it is called To: "R. Diez" Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 18:55:45 -0000 On Sun, Apr 19, 2020 at 8:14 AM R. Diez via Gcc-help wrote: > The steps would look like this: > - Build and install Binutils with --prefix=/final/destination > - Build and install GCC phase 1 (minimal compiler) with --prefix=/temporary/destination > - Build and install Newlib with GCC phase 1 with --prefix=/final/destination > - Build and install GCC phase 2 with --prefix=/final/destination > - At this point, we could delete /temporary/destination It looks like the simple solution is to just build and install binutils twice. Once into temporary destination and once into final destination. Then each compiler will be able to find binutils. If you want to optimize this, you might be able to build binutils once, and install it twice, overriding prefix at install time to put it in the other install dir. Jim