lvc / abi-compliance-checker

A tool for checking backward API/ABI compatibility of a C/C++ library
https://lvc.github.io/abi-compliance-checker/
GNU Lesser General Public License v2.1
621 stars 76 forks source link

abi-compliance-checker include directories #108

Open ahcorde opened 3 years ago

ahcorde commented 3 years ago

Hello,

I don't know if this is the right place to ask this kind of questions. Let me know if I should ask this in another place.

I'm executing the abi-compliance-checker with the following command:

abi-compliance-checker -l orig -tolerance 12 --gcc-path /usr/bin/x86_64-linux-gnu-gcc-9 -dump /tmp/rcpputils-apt/files -gcc-options '-I/opt/ros/foxy/include'

But for some reason when it's trying to compile the code it's including the directory -I/usr/include/x86_64-linux-gnu/sys which I think it's wrong, this should be just I/usr/include/.

  /usr/bin/x86_64-linux-gnu-gcc-9 -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w -I/opt/ros/foxy/include "/tmp/5OumYVXBst/dump1.h"  -I/tmp/rcpputils-apt/files/opt/ros/foxy/include -I/usr/include/x86_64-linux-gnu/sys

How can I modify this include? This include it's generating a bunch of this kind of error:

                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/x86_64-linux-gnu/sys/errno.h:1,
                 from /usr/include/c++/9/cerrno:42,
                 from /usr/include/c++/9/ext/string_conversions.h:44,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /tmp/rcpputils-apt/files/opt/ros/foxy/include/rcpputils/find_library.hpp:22,
                 from /tmp/5OumYVXBst/dump1.h:3:
/usr/include/x86_64-linux-gnu/sys/errno.h:1:19: error: #include nested too deeply
    1 | #include <errno.h>

Thank you.

I-m-SuperMan commented 2 months ago

@ahcorde Have you found any solution? I meet the same issue😭