Bug 13805 - allarch recipes conflicting between musl/glibc
Summary: allarch recipes conflicting between musl/glibc
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.1 M3
Assignee: Khem Raj
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-02-20 07:45 UTC by Khem Raj
Modified: 2020-03-17 00:01 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khem Raj 2020-02-20 07:45:59 UTC
set TCLIBC = "glibc"
bitbake phoronix-test-suite

TCLIBC = "musl"
bitbake phoronix-test-suite -cconfigure

results in

ERROR: phoronix-test-suite-9.2.1-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: '/mnt/b/yoe/sources/openembedded-core/meta/classes/staging.bbclass', lineno: 570, function: extend_recipe_sysroot
     0566:                    if "/bin/" in l or "/sbin/" in l:
     0567:                        # defer /*bin/* files until last in case they need libs
     0568:                        binfiles[l] = (targetdir, dest)
     0569:                    else:
 *** 0570:                        staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0571:
     0572:    # Handle deferred binfiles
     0573:    for l in binfiles:
     0574:        (targetdir, dest) = binfiles[l]
File: '/mnt/b/yoe/sources/openembedded-core/meta/classes/staging.bbclass', lineno: 152, function: staging_copyfile
     0148:        os.symlink(linkto, dest)
     0149:        #bb.warn(c)
     0150:    else:
     0151:        try:
 *** 0152:            os.link(c, dest)
     0153:        except OSError as err:
     0154:            if err.errno == errno.EXDEV:
     0155:                bb.utils.copyfile(c, dest)
     0156:            else:
Exception: FileExistsError: [Errno 17] File exists: '/mnt/b/yoe/build/tmp/sysroots-components/core2-32/bsd-headers/usr/include/sys/cdefs.h' -> '/mnt/b/yoe/build/tmp/work/all-yoe-linux/phoronix-test-suite/9.2.1-r0/recipe-sysroot/usr/include/sys/cdefs.h'

ERROR: Logfile of failure stored in: /mnt/b/yoe/build/tmp/work/all-yoe-linux/phoronix-test-suite/9.2.1-r0/temp/log.do_prepare_recipe_sysroot.129
ERROR: Task (/mnt/b/yoe/sources/meta-openembedded/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_9.2.1.bb:do_prepare_recipe_sysroot) failed with exit code '1'
Comment 1 Richard Purdie 2020-02-20 12:51:10 UTC
With master? There were some fixes in this area after zeus...
Comment 2 Khem Raj 2020-02-20 15:28:52 UTC
yes master, the reason seesm to to latest changes to mime.bbclass and mime-xdg.bbclass which now depend on desktop-file-utils and shared-mime-info so
if a recipe inherits any one of these classes along with allarch then we get into this problem. 

Perhaps started after oe-core/6467b7b98c9a55e27d1ab9f253ec48da2a722e77

errors are also caught by sstate test

http://jenkins.nas-admin.org/view/OE/job/oe_world_workspace-compare-signatures/954/console
Comment 3 Khem Raj 2020-02-25 05:44:24 UTC
patch is on ml
Comment 4 Khem Raj 2020-03-17 00:01:58 UTC
Fixed in meta-oe/be2cf1984951b7d74f275fa470260bc5cf8ee574 meta-oe/f4ef3feef26588e9e80e8c7845031fb0eedf9687