From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by sourceware.org (Postfix) with ESMTPS id 146613861030 for ; Wed, 24 Mar 2021 16:45:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 146613861030 Received: by mail-io1-xd34.google.com with SMTP id x16so22189040iob.1 for ; Wed, 24 Mar 2021 09:45:30 -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:cc; bh=1aqnFxPGQ/86lOkQfR0jv/xAYTxxA1jQ9M5OlZHi15M=; b=n3mjAg8L+1G6cSAMS5oSv6g++jqC/rBSrqmpjipgrK3PqQnsK/NIqiFJUEihzoj1tl 1H10j6wcTkB/avFW8nxsIUyK7l62Ba/srJjKxpRXvyCxMDfLDY51uYrzydLywasu0p6S zXb+kZXvlrq84aISs8Fma/9+LVg8MDIosCB0iCIx0LCQTrRkcUVZbTFs+ZHrJt7YTliO 4FjhG0prOHz/acpXfvB5rJ92TfiOD6T/YXH8CTTBXQ7EXxabccpvqHNGombgXJJjaRPx Ne5h/PoNJnQtpxqowz21Va23uMQ06M4DDcCFfZ6GT7kgYtzaxt3tU5tihakssX/kQQGq 1izA== X-Gm-Message-State: AOAM532yH27qwpuef6ogKP3UAoK4fXTnZaO2tF0k7kFqG8kpMhbcaKQ7 dt6iJhO51hcrfjkXfMdkovOH4CgVZU53thRbQB4= X-Google-Smtp-Source: ABdhPJwOW8cKAZ6Uh4OIHmSGFLDRwznYF7fMSoBncIMWXkjjQ+7hN1/hHfM1GF2VpKcIenbPzClDnsLronQIDcf8VLo= X-Received: by 2002:a5e:d907:: with SMTP id n7mr3331213iop.177.1616604329595; Wed, 24 Mar 2021 09:45:29 -0700 (PDT) MIME-Version: 1.0 References: <51acf4b8-5c69-d9e4-c155-e7af083a3c33@linaro.org> In-Reply-To: <51acf4b8-5c69-d9e4-c155-e7af083a3c33@linaro.org> From: Ruslan Kabatsayev Date: Wed, 24 Mar 2021 19:45:18 +0300 Message-ID: Subject: Re: Broken libcc1 lookup in GDB/Ubuntu To: Luis Machado Cc: "gdb@sourceware.org" , jan.kratochvil@redhat.com, Jeff Law Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, 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 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2021 16:45:31 -0000 Hi, On Wed, 24 Mar 2021 at 18:15, Luis Machado via Gdb wrote: > > Hi, > > While looking at enabling the compile tests in GDB's testsuite, I > noticed GDB doesn't find the right shared library because it is looking > for a different naming pattern. > > In the case of Ubuntu 18.04/20.04, the shared library is named like so: > > /usr/lib/aarch64-linux-gnu/libcc1.so.0.0.0 > /usr/lib/aarch64-linux-gnu/libcc1.so.0 -> libcc1.so.0.0.0 "apt-file search libcc1.so" shows me that e.g. gcc-9 package (and other versions of gcc) provides the suffixless version. It's installed as a symlink into /usr/lib/gcc/aarch64-linux-gnu/9/libcc1.so . Can it not be found? > > But GDB is looking for libcc1.so in the following ways: > > #define GCC_C_FE_LIBCC libcc1.so > #define GCC_CP_FE_LIBCC libcc1.so > > So, basically, the gdb.compile tests will never be exercised > out-of-the-box, even if you install the libcc1 package. I had to add a > symlink named "libcc1.so" to make GDB happy. > > Now, I noticed there was a proposed fix for this many years ago, in the > following series: > > https://gcc.gnu.org/legacy-ml/gcc-patches/2015-04/msg01241.html > https://gcc.gnu.org/legacy-ml/gcc-patches/2015-04/msg01242.html > https://gcc.gnu.org/legacy-ml/gcc-patches/2015-04/msg01243.html > https://gcc.gnu.org/legacy-ml/gcc-patches/2015-04/msg01244.html > https://gcc.gnu.org/legacy-ml/gcc-patches/2015-04/msg01245.html > > Was this dropped for some reason? Or is this still valid and should be > pursued upstream? > > > Thanks, > Luis Regards, Ruslan