From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 6B5BB3858412 for ; Fri, 15 Oct 2021 06:26:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6B5BB3858412 Received: by mail-pg1-x531.google.com with SMTP id s136so4452474pgs.4 for ; Thu, 14 Oct 2021 23:26:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BiJ+AxWiLVlB0fQ2t9kXXo459Z5a0bYq4wZkLBSQr+E=; b=jmtEAu1hwhzuBFT7KFvbmCzVYkgT8pAlWx1OMNrNfe8/mq03d4XXHIJj7F6VZxAK5b 1LUN18q30SL0AArqf41j/dA7o2CtGF4TNGx/STEEd1My2BYPwCbswTvmy3wnheGIrwFw Zp/y0tp3VI2p9Ikp0H5TKeNBKbAcWMz73TXx0EYxIqld+5L6iz9yeh87D1FuDkEVJfJO P17wV7Zy3qRF4XN/VvH+M1aTlX3IidyecDuiPoAlOXoJhVGmkMA+x0NYtr2ZACyhzZQq 1AD79FB2n5hqarSVu3v4+1CbmQ9bYm8sGoDKyCXVNpVcde5O46pzfO2SaGEEkA1xxN2F JeGg== X-Gm-Message-State: AOAM532YGZQuF2ysBii+t9EE4/iEcowpxIwO2YuRtLCCXB4mv5A37To+ me9J9McBZXlQbzIxjSb1sOetiB+tNiOJ3NxiPgw= X-Google-Smtp-Source: ABdhPJyDLBl9qLlbcwNSMRtg4gVX4kWC9zPBYtVEpbSV/9jfpc9YTi85asxAH0orb/Vi/gdBCGCtwFxEdeXLOCf1mJQ= X-Received: by 2002:a05:6a00:1312:b0:44c:becf:b329 with SMTP id j18-20020a056a00131200b0044cbecfb329mr9662779pfu.5.1634279211218; Thu, 14 Oct 2021 23:26:51 -0700 (PDT) MIME-Version: 1.0 References: <73119125.3793.17c826b1285.Coremail.ljl18583113302@163.com> In-Reply-To: <73119125.3793.17c826b1285.Coremail.ljl18583113302@163.com> From: =?UTF-8?B?4piCSm9zaCBDaGlhICjorJ3ku7vkuK0p?= Date: Fri, 15 Oct 2021 14:26:40 +0800 Message-ID: Subject: Re: Request:How to install gcc in ubuntu18.04 int the way of offline? To: =?UTF-8?B?5p2O6YeR6b6Z?= Cc: gcc-help X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, 15 Oct 2021 06:26:54 -0000 What is MCU? Microcontroller unit? What's the relationship to apt-get? The problem is just as the error message says. You can't build gcc without an existing C compiler. Perhaps your real problem is getting "apt-get install" to work, and not building gcc from scratch without an existing compiler. On Fri, Oct 15, 2021 at 1:27 PM =E6=9D=8E=E9=87=91=E9=BE=99 via Gcc-help wrote: > Dear Ladies or Gentelman: > > My MCU can=E2=80=99t connect to the ubuntu=E2=80=99s apt-source(like = Ubuntu,aliyun,163 > etc). So It certainly can=E2=80=99t use the command =E2=80=9Csudo apt-get= install gcc" to > make it all right. > So I want to know how to install gcc in the way of offline in > ubuntu18.04. > I search the solution from the internet then find one: > https://blog.csdn.net/weixin_40671425/article/details/92762839. But > unfortunately, it worked wrong on the steps: " ./configure > --disable-multilib --prefix=3D/data2/upchen/MyPackages/gcc/gcc-5.4.0 > --enable-add-ons ". The result is as follows: > ---------------------linux@test:~/gcc-5.4.0$ ./configure > --disable-multilib --prefix=3D/data2/upchen/MyPackages/gcc/gcc-5.4.0 > --enable-add-ons > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether ln works... yes > checking whether ln -s works... yes > checking for a sed that does not truncate output... /bin/sed > checking for gawk... gawk > checking for libatomic support... yes > checking for libcilkrts support... yes > checking for libitm support... yes > checking for libsanitizer support... yes > checking for libvtv support... yes > checking for gcc... no > checking for cc... no > checking for cl.exe... no > configure: error: in `/home/linux/gcc-5.4.0': > configure: error: no acceptable C compiler found in $PATH > See `config.log' for more details. > > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------------------------- > the config.log is in attachment. > Thanks for the kind of selfless help in good faith. > > >