From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) by sourceware.org (Postfix) with ESMTPS id 8B49A38930F4 for ; Wed, 27 Jan 2021 16:25:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8B49A38930F4 Date: Wed, 27 Jan 2021 16:24:58 +0000 To: Jonathan Wakely From: lordmund Cc: "psmith@gnu.org" , "gcc-help@gcc.gnu.org" Reply-To: lordmund Subject: Re: GCC 6.3.0 build fails on Ubuntu 20.04: make: *** [Makefile:924: all] Error 2 - libitm / libquadmath Message-ID: In-Reply-To: References: <652952153.239717.1611695083707.JavaMail.administrator@n8.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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: Wed, 27 Jan 2021 16:25:09 -0000 Hi Jonathan / Hi All, Thank you very much for the very prompt reply and hint. You are right! That was rather a general Ubuntu related question. I'm sorry= for that. I took the N.B. on PATH for the rest of my life. Thanks much. Back to the previous topic. The truth is that the directory "/usr/local/gcc= -6.3/bin" was already correctly added to PATH after editing ".bashrc". I've= just checked it now. How I can see now, the reasons for throwing a "sudo: gcc-6: command not" fo= und output after "sudo gcc-6 --version" command are two fold: (1) the name of the file in that specific folder "usr/local/gcc-6.3/bin" is= not "gcc-6" but "gcc-6.3" in my case; (2) with the "sudo" prefix it does not work only without it. cf. below. rawpointer@rawpointer-ubuntu:~$ gcc-6.3 --version gcc-6.3 (GCC) 6.3.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rawpointer@rawpointer-ubuntu:~$ sudo gcc-6.3 --version [sudo] password for rawpointer: sudo: gcc-6.3: command not found I think it should be fine now, and I can go to direct MATLAB (which is the = only reason why I built the legacy GCC 6.3.0 from source) to pick the path = for GCC 6.3.0. Thank you once again. I highly appreciate your support. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, January 27, 2021 4:48 PM, Jonathan Wakely wrote: > On Wed, 27 Jan 2021 at 15:45, lordmund via Gcc-help > gcc-help@gcc.gnu.org wrote: > > > The GCC 6.3.0 was installed in the below directory of my computer: > > /usr/local/gcc-6.3 > > However, my Ubuntu (terminal) cannot find the path to the recently inst= alled GCC 6.3.0, which I find very interesting why. > > Because you installed it to a directory that isn't in your PATH. This > is normal, and how linux/unix works. > > Either run /usr/local/gcc-6.3/bin/gcc or add /usr/local/gcc-6.3/bin to > your PATH. > > N.B. this is not a GCC question, this is a basic "how do I use > ubuntu?" question.