From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id 85FA23857817 for ; Fri, 16 Oct 2020 13:19:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 85FA23857817 Received: by mail-il1-x130.google.com with SMTP id j8so2643764ilk.0 for ; Fri, 16 Oct 2020 06:19:09 -0700 (PDT) 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; bh=222TM7VU4qyOwBnlFsffRMYSMvR/ENE+uMclhS6oZjE=; b=PzlcjCHiLD7WGVN1G1DtlnFyoH4EYQpSaj/UEZMqMkAW8nvAweZYeirYy7RsSOt8Gi BCjKllDFZ2K/OcrVF2E0sJ6FtElQ/j+FD41j5K9teMKw3lZLZHVkUl/UQHly2SmhYI36 r+USUD4t6HteFzwsTBX1XpxZyq6x5i1UuwrZNSbLT7CCnt8XDsYGb35mfK0Yf/SDwZMS G7j+PJsObXBeI3mE2j9ZhcrrDbtn1ee734pQjDVxdwsSlDShhnsco9MysIsGTtRw0t3Q JLRhUCznrUmcNdnkwsBePuYIMu7nSFJyDKWCpq6pCg9wknwbr5II6A85WtLr0QOG0NPP 8fCg== X-Gm-Message-State: AOAM530SsZqy7AHZUF8QJBIxIclyzOeQXCuC/nmyYt4Y05ZaYb35Ch8V r7IOLtKhuE84Bnkh2H0pnw+TlIRIcY5OUkYjDy/sVNz2 X-Google-Smtp-Source: ABdhPJynzu89wjFoO/14aKpQsBeG8MHnpfLSeaodLBt64QHgSmciJaFGFnq1t1V0SnOqPYRS4846Q1aAA22SHpK5pCo= X-Received: by 2002:a05:6e02:c85:: with SMTP id b5mr2656447ile.187.1602854348752; Fri, 16 Oct 2020 06:19:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: William ML Leslie Date: Sat, 17 Oct 2020 00:18:56 +1100 Message-ID: Subject: Re: Building a cross compiler fails due to hardcoding host=target in gcc/Makefile.in To: gcc-help@gcc.gnu.org X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 16 Oct 2020 13:19:11 -0000 Sorry, i found bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94761 so I'll continue there tomorrow. On Fri, 16 Oct 2020, 11:39 pm William ML Leslie, < william.leslie.ttg@gmail.com> wrote: > Greetings, > > Please keep me CC'd as I'm not subscribed. > > I've been trying to build a cross compilation toolchain (for a new OS) > and ran into a confusing error while building gcc 10.2.0. While > building libgcc, it fails running libgcc/config.host as it gets passed > my target instead of the actual host. I traced this back to the root > Makefile.in, for which the `configure-target-libgcc` rule ends with: > > CONFIG_SITE=no-such-file $(SHELL) \ > $$s/$$module_srcdir/configure \ > --srcdir=$${topdir}/$$module_srcdir \ > $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \ > --target=${target_alias} \ > || exit 1 > > This is probably someone trying to be helpful when building a Canadian > Cross (host == target), however there is already a host_alias variable > defined at the very top of `Makefile.in`. When using a traditional > cross compiler, the host is equal to the build machine; but the > makefile ignores this case. > > Have I missed something, or should I send a patch for this? > > Snippet of make output where I hit this: > > Checking multilib configuration for libgcc... > mkdir -p -- i386-unknown-capros/libgcc > Configuring in i386-unknown-capros/libgcc > ... > checking for target glibc version... 0.0 > *** Configuration i386-unknown-capros not supported > Makefile:12629: recipe for target 'configure-target-libgcc' failed > make[1]: *** [configure-target-libgcc] Error 1 > make[1]: Leaving directory > '/extra/wleslie/xenv2/build/gcc-10.2.0/build-capros' > Makefile:954: recipe for target 'all' failed > make: *** [all] Error 2 > > -- > William Leslie > > Q: What is your boss's password? > A: "Authentication", clearly > > Notice: > Likely much of this email is, by the nature of copyright, covered > under copyright law. You absolutely MAY reproduce any part of it in > accordance with the copyright law of the nation you are reading this > in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without > prior contractual agreement. >