<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14601</bug_id>
          
          <creation_ts>2021-10-13 10:14:35 +0000</creation_ts>
          <short_desc>python3-native: undefined symbol: archive_version_number</short_desc>
          <delta_ts>2021-11-14 19:54:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Perrot">thomas.perrot</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>anuj.mittal</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91735</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Perrot">thomas.perrot</who>
    <bug_when>2021-10-13 10:14:35 +0000</bug_when>
    <thetext>This issue only occurs on Ubuntu 16.04, it seems due to a missing dependency to libarchive.

2021-10-13 03:07:25,141 - oe-selftest - INFO - ======================================================================
2021-10-13 03:07:25,141 - oe-selftest - INFO - FAIL: test_diffoscope (reproducible.DiffoscopeTests)
2021-10-13 03:07:25,142 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-10-13 03:07:25,142 - oe-selftest - INFO - Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/meta/lib/oeqa/selftest/cases/reproducible.py&quot;, line 131, in test_diffoscope
    run_diffoscope(&apos;A&apos;, &apos;A&apos;, tmpdir,
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/meta/lib/oeqa/selftest/cases/reproducible.py&quot;, line 118, in run_diffoscope
    return runCmd([&apos;diffoscope&apos;, &apos;--no-default-limits&apos;, &apos;--exclude-directory-metadata&apos;, &apos;yes&apos;, &apos;--html-dir&apos;, html_dir, a_dir, b_dir],
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/meta/lib/oeqa/utils/commands.py&quot;, line 207, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;[&apos;diffoscope&apos;, &apos;--no-default-limits&apos;, &apos;--exclude-directory-metadata&apos;, &apos;yes&apos;, &apos;--html-dir&apos;, &apos;/tmp/tmpulzgsw7k&apos;, &apos;A&apos;, &apos;A&apos;]&apos; returned non-zero exit status 2:
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/diffoscope/main.py&quot;, line 722, in main
    import libarchive  # noqa
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/libarchive/__init__.py&quot;, line 1, in &lt;module&gt;
    from .entry import ArchiveEntry
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/libarchive/entry.py&quot;, line 4, in &lt;module&gt;
    from . import ffi
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/libarchive/ffi.py&quot;, line 160, in &lt;module&gt;
    version_number = ffi(&apos;version_number&apos;, [], c_int, check_int)
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/libarchive/ffi.py&quot;, line 104, in ffi
    f = getattr(libarchive, &apos;archive_&apos;+name)
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/ctypes/__init__.py&quot;, line 387, in __getattr__
    func = self.__getitem__(name)
  File &quot;/home/pokybuild/yocto-worker/reproducible-ubuntu/build/build-st/tmp/work/x86_64-linux/diffoscope-native/182-r0/recipe-sysroot-native/usr/lib/python3.10/ctypes/__init__.py&quot;, line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: nativepython3: undefined symbol: archive_version_number
Missing or incomplete libarchive module. Try installing your system&apos;s &apos;libarchive&apos; package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91738</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Perrot">thomas.perrot</who>
    <bug_when>2021-10-14 09:16:36 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/119/builds/822/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91872</commentid>
    <comment_count>2</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2021-11-02 08:41:47 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/119/builds/924</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92004</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-14 19:54:32 +0000</bug_when>
    <thetext>Issue occurs on systems using buildtools tarball. Behind the scenes in strace you see it compiling something with gcc to access libarchive and that fails with glibc symbol mismatches since the glibc used for libarchive was newer than the one in buildtools.

Upgrading buildtools resolves the issue:

http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/commit/?id=f5e89b7431fcde4c54617eca2fbeae43557811d8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>