Bug 25409

Summary: ABI identity comparison failed on clang-compiled binary
Product: libabigail Reporter: Dodji Seketeli <dodji>
Component: defaultAssignee: Dodji Seketeli <dodji>
Status: RESOLVED FIXED    
Severity: normal CC: david.marchand, libabigail
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: dpdk library compiled with clang that exhibits the issue

Description Dodji Seketeli 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 Seketeli 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.