On Thu, Apr 30, 2015 at 9:00 AM, Neil Horman <nhorman at tuxdriver.com> wrote:
> On Wed, Apr 29, 2015 at 10:47:04AM -0700, Ravi Kerur wrote: > > > > I tried to run validate-abi.sh on BSD but ran into errors. If there > is a > > > > way to check against BSD please let me know. > > > > > > > The ABI checker should work on BSD as far as I know, since it only > relies > > > on > > > dwarf information in the output binary. What errors are you seeing? > > > > > > > dpdk-bsd:/home/rkerur/dpdk-validate-abi-1/dpdk # sh > > ./scripts/validate-abi.sh v2.0.0-rc3 v2.0.0-abi > x86_64-native-bsdapp-clang > > mktemp: illegal option -- p > Ah, bsd mktemp doesn't support the -p option. I'll see if I can fix that. > I think there are couple of other issues I found freeBSD sed is different from Linux (GNU sed) and I get following errors with the script "sed 1 command c expects \ followed by text". I have to use gsed (GNU sed) in freeBSD to get rid of that error and similarly freeBSD uses gmake instead of make. I have made those minor changes and sending them with this email as an attachment. > > usage: mktemp [-d] [-q] [-t prefix] [-u] template ... > > mktemp [-d] [-q] [-u] -t prefix > > Cant find abi-compliance-checker utility > > > > abi-compliance-checker is installed as shown below. > > > > dpdk-bsd:/home/rkerur/dpdk-validate-abi-1/dpdk # pkg install > > devel/abi-compliance-checker > > Updating FreeBSD repository catalogue... > > FreeBSD repository is up-to-date. > > All repositories are up-to-date. > > Checking integrity... done (0 conflicting) > > The most recent version of packages are already installed > > > > Whats the path for abi-compliance checker there? It would seem that the > binary > isn't in your path, as which isn't locating it. > I am using regular freeBSD port install which doesn't install in any /usr/bin or /usr/local/bin. I finally decided to install both abi-dumper and abi-compliance-checker from source, compile and install it in correct directory. Above error is fixed after that, however, abi utilities use "eu-readelf" and I can't find that utility to install in freeBSD. I get following errors ERROR: can't find "eu-readelf" command freeBSD has only readelf. Please let me know if there is a way to get rid of this error. Thanks, Ravi > > > > > > > Neil > > > > > > >