Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A2EEC8303C for ; Sat, 5 Jul 2025 16:37:45 +0000 (UTC) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by mx.groups.io with SMTP id smtpd.web11.20885.1751733463913315105 for ; Sat, 05 Jul 2025 09:37:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=LR/FEEu1; spf=pass (domain: linuxfoundation.org, ip: 209.85.208.46, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-6097b404f58so2630188a12.3 for ; Sat, 05 Jul 2025 09:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1751733462; x=1752338262; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=2M9tvvii2zG9uPCoUtRhF3tm9xA1kvujR4D25GmpJCA=; b=LR/FEEu1a0REPfvm/2ON8Vw9D2lh+wrj2MgT+NyO/DljWPI8Ut5tgo7GGXzVuSWcFt nxgxpRSi4/sRG2d53xQTggftH4MYVZYTuix4kM1CvLonLhrL1pEWLWN71sNnIe3nkjhO D4gM/7wuglLfOm59Gfe1jGNpvdYVCVWjuK7ak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751733462; x=1752338262; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2M9tvvii2zG9uPCoUtRhF3tm9xA1kvujR4D25GmpJ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d7f45d1cf-60ff388875dmr1884828a12.11.1751733462075; Sat, 05 Jul 2025 09:37:42 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:44e5:6183:e700:8e38? ([2001:8b0:aba:5f3c:44e5:6183:e700:8e38]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-60fca695d66sm2796400a12.17.2025.07.05.09.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jul 2025 09:37:41 -0700 (PDT) Message-ID: Subject: Re: [PATCH] bitbake.conf: Add relative path from B to S to From: Richard Purdie To: Michal Sieron Cc: openembedded-core@lists.openembedded.org, raj.khem@gmail.com Date: Sat, 05 Jul 2025 17:37:39 +0100 In-Reply-To: <20250705144126.36056-1-michalwsieron@gmail.com> References: <20250705144126.36056-1-michalwsieron@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.0-1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 05 Jul 2025 16:37:45 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/219956 On Sat, 2025-07-05 at 16:41 +0200, Michal Sieron wrote: > > in that we removed -fcanon-prefix-map thinking it worked and it > > clearly > > doesn't. > >=20 > > We *need* that option and it will need to be put back, probably gcc > > specific. Copying Khem. >=20 > But then what do we do about clang, which behaves the same way and > doesn't support -fcanon-prefix-map? There is also Kirkstone, which is > still on gcc 11 (that option was introduced in gcc 13). We ran into this issue and convinced gcc it needed a patch. I suspect kirkstone has that patch. The patch was merged by gcc 13 so we no longer had to carry it. I suspect someone needs to add this support to clang as I suspect there isn't another way to handl relative paths. > I also went and adjusted the 'reproduction' example a little bit to > be more similar to Yocto setup. I put the meson.build and hello.c > files in a 'git' directory. Then from parent of 'git' directory I am > calling meson with absolute paths to source and build dirs (again to > mirror how Yocto works). >=20 > Now regardless of the order of prefix-map flags I get the same > output: > =C2=A0=C2=A0=C2=A0 $ dwarfsrcfiles build/hello > =C2=A0=C2=A0=C2=A0 /usr/src/debug/hello/1.0/../git/hello.c > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /usr/src/debug/hello/1.0/../gi= t/hello.c > which reminded me that this is the actual reason I first saw this as > a bug couple weeks ago. After all, Yocto won't create a 'git' > directory in the -src package. >=20 > With -fcanon-prefix-map it's a little better: > =C2=A0=C2=A0=C2=A0 $ dwarfsrcfiles build/hello > =C2=A0=C2=A0=C2=A0 /usr/src/debug/hello/1.0//usr/src/debug/hello/1.0/hell= o.c > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /usr/src/debug/hello/1.0/hello= .c That does look a bit more like what I'd have expected. Cheers, Richard