Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the suggested usage? #19

Open
jczhang07 opened this issue Apr 12, 2019 · 1 comment
Open

What is the suggested usage? #19

jczhang07 opened this issue Apr 12, 2019 · 1 comment

Comments

@jczhang07
Copy link

jczhang07 commented Apr 12, 2019

Hello,
I followed instructions in the "Usage with ABI Dumper" section of the index.html documentation, since this usage is very convenient. I built the library (libpetsc.so) with "-g -Og" on a Linux machine with gcc. Then,

~/abi-dumper/abi-dumper.pl ~/old/linux-gnu-dbg/lib/libpetsc.so -lver 0 -o old.dump
ERROR: missed type id 713704
<many similar errors>
Creating ABI dump
The object ABI has been dumped to:
  old.dump

~/abi-dumper/abi-dumper.pl ~/new/linux-gnu-dbg/lib/libpetsc.so -lver 1 -o new.dump
ERROR: missed type id 696722
<many similar errors>
Creating ABI dump
The object ABI has been dumped to:
  new.dump

~/abi-compliance-checker/abi-compliance-checker.pl -l libpetsc -old old.dump -new new.dump
Preparing, please wait ...
Comparing ABIs ...
Comparing APIs ...
Creating compatibility report ...
Binary compatibility: 100%
Source compatibility: 100%
Total binary compatibility problems: 0, warnings: 0
Total source compatibility problems: 0, warnings: 0
Report: compat_reports/libpetsc/0_to_0/compat_report.html

But actually, the new library is not API compatible with the old since it changed the name of an enum. So, what is the recommended way of using abi-compliance-checker.pl if I want very accurate results.
Thank you.

@lvc
Copy link
Owner

lvc commented Jul 6, 2019

Hi,

The library has been added to the ABI tracker. See daily reports here: https://abi-laboratory.pro/?view=timeline&l=petsc

It works in my environment: CentOS 7 / x86_64.

Please provide the output of the following command for debugging:

abi-dumper -extra-info ./DEBUG ~/old/linux-gnu-dbg/lib/libpetsc.so -lver 0 -o old.dump
tar -cJf DEBUG.txz ./DEBUG

Also please provide your Linux distribution version.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants