On 23-05-2026 07:08 am, Khem Raj wrote:
**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender and know the content is safe.


On Tue, May 19, 2026 at 12:26 AM Hemanth Kumar M D via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIU6FfjAXI$> <[email protected]> wrote:

    From: Hemanth Kumar M D <[email protected]>

    libatomic constructs gcc_objdir using `pwd` and assumes
    MULTIBUILDTOP is relative. Passing an absolute MULTIBUILDTOP
    from OE results in malformed paths during libtool install
    operations in both compile and install stages.

    Avoid passing MULTIBUILDTOP for libatomic and use the upstream
    default handling instead.

    Link:
    
https://github.com/gcc-mirror/gcc/commit/e63cf4b130b86dd7dde1bf499d3d40faca10ea2e
    
<https://urldefense.com/v3/__https://github.com/gcc-mirror/gcc/commit/e63cf4b130b86dd7dde1bf499d3d40faca10ea2e__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUeqxA3yQ$>


It would be good to start a discussion/bug in gcc about it, I think using pwd relative paths is perhaps less than ideal to use here. We can accept this additional logic here for OE in the meantime.
Hi Khem,

I’ve filed a GCC bug for this issue here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125449 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125449>

    Signed-off-by: Hemanth Kumar M D <[email protected]>
    ---
     meta/recipes-devtools/gcc/gcc-runtime.inc
    
<https://urldefense.com/v3/__http://gcc-runtime.inc__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUzaMJWEM$>
    | 12 ++++++++++--
     1 file changed, 10 insertions(+), 2 deletions(-)

    diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc
    
<https://urldefense.com/v3/__http://gcc-runtime.inc__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUzaMJWEM$>
    b/meta/recipes-devtools/gcc/gcc-runtime.inc
    
<https://urldefense.com/v3/__http://gcc-runtime.inc__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUzaMJWEM$>
    index 30b2832c82..e305180c64 100644
    --- a/meta/recipes-devtools/gcc/gcc-runtime.inc
    
<https://urldefense.com/v3/__http://gcc-runtime.inc__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUzaMJWEM$>
    +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
    
<https://urldefense.com/v3/__http://gcc-runtime.inc__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIUzaMJWEM$>
    @@ -83,14 +83,22 @@ do_configure[depends] += "${COMPILERDEP}"
     do_compile () {
            for d in libgcc ${RUNTIMETARGET}; do
                    cd ${B}/${TARGET_SYS}/$d/
    -               oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/
    +               if [ "$d" = "libatomic" ]; then
    +                       oe_runmake
    +               else
    +                       oe_runmake
    MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/
    +               fi
            done
     }

     do_install () {
            for d in ${RUNTIMETARGET}; do
                    cd ${B}/${TARGET_SYS}/$d/
    -               oe_runmake 'DESTDIR=${D}'
    MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/ install
    +               if [ "$d" = "libatomic" ]; then
    +                       oe_runmake 'DESTDIR=${D}' install
    +               else
    +                       oe_runmake 'DESTDIR=${D}'
    MULTIBUILDTOP=${B}/${TARGET_SYS}/$d/ install
    +               fi
            done
            install -d ${D}${datadir}/gdb/auto-load/${libdir}
            mv ${D}${libdir}/libstdc++*-gdb.py
    
<https://urldefense.com/v3/__http://-gdb.py__;!!AjveYdw8EvQ!fIjDCZOqeIvU5tBeDszltF5-mgerauWqLOnwdmO_dVbVBxKuk8pb1o8dHC4hYiKpJWfgElDScNKN2kIU-UrTfKo$>
    ${D}${datadir}/gdb/auto-load/${libdir}
-- 2.49.0


--
Regards,
Hemanth Kumar M D
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237633): 
https://lists.openembedded.org/g/openembedded-core/message/237633
Mute This Topic: https://lists.openembedded.org/mt/119387078/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to