Ole
i checkout tag * (HEAD detached at v18.01)
but the errors are also in the master.
can you tell me how to run the vppapigen ?
this is my api file:
option version = "1.0.0";

autoreply define my_policer_if_action
{
  /* Client identifier, set from api_main.my_client_index */
  u32 client_index;

  /* Arbitrary context, so client can match reply to request */
  u32 context;

  u8 action;

  /* Interface handle */
  u32 sw_if_index;

};

/*
 * Local Variables:
 * eval: (c-set-style "gnu")
 * End:
 */

Regards
-Sara

On Wed, Apr 25, 2018 at 4:21 PM, Ole Troan <otr...@employees.org> wrote:

> Hi Sara,
>
> > can you specify the vppapigen syntax ?
>
> Sure, especially if you can provide review and feedback.
>
> Cheers,
> Ole
>
> > On Wed, Apr 25, 2018 at 3:47 PM, Ole Troan <otr...@employees.org> wrote:
> > Sara,
> >
> > Can you run vppapigen manually.
> > And also include the .api you are having problems with.
> >
> > I presume you are on latest master?
> >
> > Cheers,
> > Ole
> >
> > > On 25 Apr 2018, at 14:41, Sara Gittlin <sara.gitt...@gmail.com> wrote:
> > >
> > > Chris and Neale,
> > > Can we  go back to the original problem  pasted below -
> > > the 53 is *not* a line in my_policer/forwarder.api
> > > ----------------------------------
> > > I've encountered this build error few times and managed to get rid of
> it somehow.
> > > the error  is always with the my_plugin.api.h  file.
> > > Can you tell me what is the problem here ?
> > >
> > >  /bin/sh ./config.status
> > > config.status: creating Makefile
> > > config.status: creating plugins/Makefile
> > > config.status: creating vpp-api/python/Makefile
> > > config.status: creating vpp-api/java/Makefile
> > > config.status: creating vpp-api/vapi/Makefile
> > > config.status: creating vpp-api/vom/Makefile
> > > config.status: executing libtool commands
> > > config.status: executing depfiles commands
> > > make  all-recursive
> > > make[3]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp'
> > > Making all in .
> > > make[4]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp'
> > > make[4]: Nothing to be done for 'all-am'.
> > > make[4]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > Making all in plugins
> > > make[4]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp/plugins'
> > >   APIGEN   my_forwarder/my_forwarder.api.h
> > >   APIGEN   my_policer/my_policer.api.h
> > > (null):53 syntax error
> > > make[4]: *** [Makefile:3301: my_forwarder/my_forwarder.api.h] Error 1
> > > make[4]: *** Waiting for unfinished jobs....
> > > (null):53 syntax error
> > > make[4]: *** [Makefile:3301: my_policer/my_policer.api.h] Error 1
> > > make[4]: Leaving directory '/home/vpp/build-root/build-
> vpp-native/vpp/plugins'
> > > make[3]: *** [Makefile:7757: all-recursive] Error 1
> > > make[3]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > make[2]: *** [Makefile:3967: all] Error 2
> > > make[2]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > make[1]: *** [Makefile:686: vpp-build] Error 2
> > > make[1]: Leaving directory '/home/vpp/build-root'
> > > make: *** [Makefile:339: build-release] Error 2
> > > Thank you
> > > -Sara
> > >
> > > On Mon, Apr 16, 2018 at 7:15 PM, Luke, Chris <chris_l...@comcast.com>
> wrote:
> > > I’d recommend working from master, personally. :) Though that DPDK
> version should work fine; there was a period not long ago in which DPDK
> broke their packages and invalidated the checksums we had, but I thought
> that was evident only on master and only briefly, not 18.01*.
> > >
> > >
> > >
> > > Chris.
> > >
> > >
> > >
> > >
> > >
> > > From: Sara Gittlin [mailto:sara.gitt...@gmail.com]
> > > Sent: Monday, April 16, 2018 12:05 PM
> > >
> > >
> > > To: Luke, Chris <chris_l...@cable.comcast.com>
> > > Cc: vpp-dev@lists.fd.io
> > > Subject: Re: [vpp-dev] Build error with my_plugin.api.h file.
> > >
> > >
> > >
> > > Chris
> > >
> > > i did it and now i have another problem (which i saw also before)
> > > "Bad Checksum! Please remove /home/vpp/dpdk/dpdk-17.11.tar.xz and
> retry"
> > >
> > > maybe in addition to my original problem my version is not stable
> > > my version is  git clone the master and then checkout * (HEAD detached
> at v18.01.1)
> > >
> > >
> > >
> > > Thank you again
> > >
> > > -Sara
> > >
> > >
> > >
> > >
> > >
> > > On Mon, Apr 16, 2018 at 6:41 PM, Luke, Chris <chris_l...@comcast.com>
> wrote:
> > >
> > > Bit of a long-shot, but it is plausible that autotools didn’t rebuild
> completely after you added your plugin files I suppose. It’s sometimes
> worth cleaning the tree to force it. “make wipe” or to be doubly sure “git
> clean -fxd” (making sure you have your local files added to git etc)
> > >
> > >
> > >
> > > Chris
> > >
> > >
> > >
> > > From: Sara Gittlin [mailto:sara.gitt...@gmail.com]
> > > Sent: Monday, April 16, 2018 11:29 AM
> > > To: Luke, Chris <chris_l...@cable.comcast.com>
> > > Cc: vpp-dev@lists.fd.io
> > >
> > >
> > > Subject: Re: [vpp-dev] Build error with my_plugin.api.h file.
> > >
> > >
> > >
> > > Thank you Neale and Chris
> > >
> > >
> > > Neale -
> > >
> > > this is my_policer.api  file:  ( i dont have other files related to
> api)
> > > option version = "1.0.0";
> > >
> > > autoreply define my_policer_if_action {
> > >     /* Client identifier, set from api_main.my_client_index */
> > >     u32 client_index;
> > >
> > >     /* Arbitrary context, so client can match reply to request */
> > >     u32 context;
> > >
> > >     /* Enable / disable the feature */
> > >     u8 action;
> > >
> > >     /* Interface handle */
> > >     u32 sw_if_index;
> > > };
> > >
> > > Chris
> > >
> > > this is the line from my_policer.am file
> > >
> > > API_FILES += my_policer/my_policer.api
> > >
> > > -Sara
> > >
> > >
> > >
> > > On Mon, Apr 16, 2018 at 6:18 PM, Luke, Chris <chris_l...@comcast.com>
> wrote:
> > >
> > > Do you list the .api files in the variable API_FILES in your plugin
> .am file?
> > >
> > >
> > >
> > > Chris
> > >
> > >
> > >
> > > From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of
> Sara Gittlin
> > > Sent: Monday, April 16, 2018 11:08 AM
> > > To: vpp-dev@lists.fd.io
> > > Subject: Re: [vpp-dev] Build error with my_plugin.api.h file.
> > >
> > >
> > >
> > > I see that this file (and the my_plugin.api.json)  are  not auto
> generated in the build
> > >
> > > Why ?
> > > -Sara
> > >
> > >
> > >
> > > On Mon, Apr 16, 2018 at 5:27 PM, Sara Gittlin <sara.gitt...@gmail.com>
> wrote:
> > >
> > > Hello,
> > >
> > >
> > >
> > > I've encountered this build error few times and managed to get rid of
> it somehow.
> > >
> > > the error  is always with the my_plugin.api.h  file.
> > >
> > > Can you tell me what is the problem here ?
> > > -----------------
> > >  /bin/sh ./config.status
> > > config.status: creating Makefile
> > > config.status: creating plugins/Makefile
> > > config.status: creating vpp-api/python/Makefile
> > > config.status: creating vpp-api/java/Makefile
> > > config.status: creating vpp-api/vapi/Makefile
> > > config.status: creating vpp-api/vom/Makefile
> > > config.status: executing libtool commands
> > > config.status: executing depfiles commands
> > > make  all-recursive
> > > make[3]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp'
> > > Making all in .
> > > make[4]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp'
> > > make[4]: Nothing to be done for 'all-am'.
> > > make[4]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > Making all in plugins
> > > make[4]: Entering directory '/home/vpp/build-root/build-
> vpp-native/vpp/plugins'
> > >   APIGEN   my_forwarder/my_forwarder.api.h
> > >   APIGEN   my_policer/my_policer.api.h
> > > (null):53 syntax error
> > > make[4]: *** [Makefile:3301: my_forwarder/my_forwarder.api.h] Error 1
> > > make[4]: *** Waiting for unfinished jobs....
> > > (null):53 syntax error
> > > make[4]: *** [Makefile:3301: my_policer/my_policer.api.h] Error 1
> > > make[4]: Leaving directory '/home/vpp/build-root/build-
> vpp-native/vpp/plugins'
> > > make[3]: *** [Makefile:7757: all-recursive] Error 1
> > > make[3]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > make[2]: *** [Makefile:3967: all] Error 2
> > > make[2]: Leaving directory '/home/vpp/build-root/build-vpp-native/vpp'
> > > make[1]: *** [Makefile:686: vpp-build] Error 2
> > > make[1]: Leaving directory '/home/vpp/build-root'
> > > make: *** [Makefile:339: build-release] Error 2
> > >
> > > Thank you
> > >
> > > -Sara
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 
> >
> >
>
>

Reply via email to