From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oUMjHZtXW2CnYQAAWB0awg (envelope-from ) for ; Wed, 24 Mar 2021 11:15:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 696C01EF78; Wed, 24 Mar 2021 11:15:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 8FDA91E789 for ; Wed, 24 Mar 2021 11:15:38 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1998C3857C50; Wed, 24 Mar 2021 15:15:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1998C3857C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1616598938; bh=Bnvv+4yzhw1w9B5tILD6+QWQxtaMLV9KJeJQRkqiFAk=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Dwbp7YgAAY8AZ4+qr7j/oFjXCwwLHHXaIbNdKpFQOaneK0BO/syeyhRfiAElueRoz w08ploU2xMU8669mRg6SlP1AlkBmDAiR2vCZCkhD2HljltysLxOTx/uenockkoPOwg M/xcru+1aotpw5qz0ugJZDT6t/CO99MLnKcFlO64= Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by sourceware.org (Postfix) with ESMTPS id 22E8F3857C50 for ; Wed, 24 Mar 2021 15:15:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 22E8F3857C50 Received: by mail-qk1-x72f.google.com with SMTP id g15so18364155qkl.4 for ; Wed, 24 Mar 2021 08:15:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=Bnvv+4yzhw1w9B5tILD6+QWQxtaMLV9KJeJQRkqiFAk=; b=X4ThsbUGG7bhhoCKuVceOvUzcpXLbM8DgqGNTfG6u2fDASvnb0gpoCdJSmcA/j6gSz WHYChZ0+nHm3mx9twoaCc5PE7Bd0bBCBLSLTJMq5hbwDQdm3De50+cvG5CrIhOsb+04C Lrr3waL67RZEQW2s+yFR5eXd86unNEHma4I1zsyAnssbga36bJQ4wAY/uUQW3NvV2J+d XN9chMN6MWZeddND4PX3FobmplNKxGtIMJRSCpQN/kkN2mJtTTNBqilcWYKO0TgRPsFe ElmtaouyaGGwQEk8Y+tPRP/sAuKEwswcdaaFUcXCMmHywfaH0vWmyR/sk52dRxe5z8WS JmEA== X-Gm-Message-State: AOAM531tGNwTPsX03joHTOgAPYa/sTd0phcV+SAGD+7D47ptWtk5ULyZ 2fb/xQUVq96GXVMds41aLn50DA== X-Google-Smtp-Source: ABdhPJyW2cKJao29KVC7bSwdaD5ZgL7uoGbN++u1u8OfMTU3A9v4F4ocQ3nT+VqDYLRHcjLFgWF6Kg== X-Received: by 2002:a37:6848:: with SMTP id d69mr3591362qkc.159.1616598935662; Wed, 24 Mar 2021 08:15:35 -0700 (PDT) Received: from ?IPv6:2804:7f0:4841:2841:ad61:3bf4:83da:f1f1? ([2804:7f0:4841:2841:ad61:3bf4:83da:f1f1]) by smtp.gmail.com with ESMTPSA id m17sm1943769qkh.82.2021.03.24.08.15.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Mar 2021 08:15:34 -0700 (PDT) To: "gdb@sourceware.org" , jan.kratochvil@redhat.com, Jeff Law Subject: Broken libcc1 lookup in GDB/Ubuntu Message-ID: <51acf4b8-5c69-d9e4-c155-e7af083a3c33@linaro.org> Date: Wed, 24 Mar 2021 12:15:31 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , From: Luis Machado via Gdb Reply-To: Luis Machado Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" 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 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