Bug 25409 - ABI identity comparison failed on clang-compiled binary
Summary: ABI identity comparison failed on clang-compiled binary
Status: RESOLVED FIXED
Alias: None
Product: libabigail
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: dodji
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-17 14:45 UTC by dodji
Modified: 2020-01-17 15:41 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
dpdk library compiled with clang that exhibits the issue (126.43 KB, application/x-sharedlib)
2020-01-17 14:45 UTC, dodji
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dodji 2020-01-17 14:45:29 UTC
Created attachment 12216 [details]
dpdk library compiled with clang that exhibits the issue

Comparing the attached file (with abidiff) against its ABI representation (generated with abidw) should yield the empty set.

Yet, it does yield this bogus result:

$ abidiff librte_bus_dpaa.so.20.0 librte_bus_dpaa.so.20.0.abi
Functions changes summary: 0 Removed, 1 Changed (25 filtered out), 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

1 function with some indirect sub-type change:

  [C]'function qman_portal* fsl_qman_fq_portal_create(int*)' at qman_driver.c:129:1 has some indirect sub-type changes:
    return type changed:
      in pointed to type 'struct qman_portal' at qman.c:63:1:
        type size hasn't changed
        1 data member changes (2 filtered):
         type of 'qm_portal qman_portal::p' changed:
           type size hasn't changed
           1 data member change:
            type of 'qm_mc qm_portal::mc' changed:
              type size hasn't changed
              1 data member change:
               type of 'qm_mc_result* qm_mc::rr' changed:
                 in pointed to type 'struct qm_mc_result' at fsl_qman.h:1014:1:
                   type size hasn't changed
                   1 data member change:
$
Comment 1 dodji 2020-01-17 15:41:28 UTC
This should hopefully be fixed in the master branch of the Git repository by the commit https://sourceware.org/git/gitweb.cgi?p=libabigail.git;a=commit;h=aa15698aaf8cc354c09dee0b1a0d6a631ee4a403.

The fix should be available in the 1.7 version of libabigail.