[P4-dev] install switch

mostafa ammar mostafaammar79 at gmail.com
Tue Oct 17 23:36:44 EDT 2017


Dear All,

I am installing switch.p4 with open flow support I followed the tutorial in
https://github.com/p4lang/switch

i received the following error

make[4]: Entering directory
'/home/mininet/switch/switchapi/third-party/tommyds'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory
'/home/mininet/switch/switchapi/third-party/tommyds'
make[4]: Entering directory '/home/mininet/switch/switchapi'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/mininet/switch/switchapi'
make[3]: Leaving directory '/home/mininet/switch/switchapi'
make[2]: Leaving directory '/home/mininet/switch/switchapi'
Making all in bmv2
make[2]: Entering directory '/home/mininet/switch/bmv2'
  CCLD     libbmswitchp4.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     bmswitchp4_drivers
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_output_table_modify_with_ofpat_output'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv4_table_add_with_ofpat_dec_nw_ttl_ipv4'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_group_egress_table_modify_with_ofpat_group_egress_update'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_mpls_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv4_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_output_table_add_with_ofpat_output'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_vlan_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_table_modify_with_openflow_apply'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv6_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_field_table_modify_with_ofpat_set_vlan_vid'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_table_add_with_openflow_miss'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv6_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv6_table_modify_with_ofpat_set_nw_ttl_ipv6'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_set_default_action_openflow_miss'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv6_table_add_with_ofpat_set_nw_ttl_ipv6'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv4_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_vlan_table_modify_with_ofpat_push_vlan'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_vlan_table_add_with_ofpat_pop_vlan'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_mpls_ttl_table_add_with_ofpat_dec_mpls_ttl'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv4_table_add_with_ofpat_set_nw_ttl_ipv4'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_group_egress_set_default_action_nop'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_mpls_table_modify_with_ofpat_pop_mpls'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_table_modify_with_openflow_miss'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_output_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_mpls_table_add_with_ofpat_pop_mpls'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv4_table_modify_with_ofpat_dec_nw_ttl_ipv4'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_mpls_ttl_table_add_with_ofpat_set_mpls_ttl'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_set_default_action_openflow_apply'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_mpls_ttl_table_modify_with_ofpat_dec_mpls_ttl'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_mpls_ttl_table_modify_with_ofpat_set_mpls_ttl'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_mpls_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv6_table_add_with_ofpat_dec_nw_ttl_ipv6'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_group_ingress_table_add_with_ofpat_group_ingress_mc'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_field_table_add_with_ofpat_set_vlan_vid'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_nw_ttl_ipv4_table_modify_with_ofpat_set_nw_ttl_ipv4'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_vlan_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_group_egress_table_add_with_ofpat_group_egress_update'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_nw_ttl_ipv6_table_modify_with_ofpat_dec_nw_ttl_ipv6'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_mpls_ttl_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_vlan_table_add_with_ofpat_push_vlan'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_group_egress_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_mpls_table_modify_with_ofpat_push_mpls'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_dec_mpls_ttl_table_delete'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_dmac_table_add_with_openflow_apply'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_pop_vlan_table_modify_with_ofpat_pop_vlan'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_push_mpls_table_add_with_ofpat_push_mpls'
../p4-build/bmv2/.libs/libof.so: undefined reference to
`p4_pd_dc_ofpat_set_field_table_delete'
collect2: error: ld returned 1 exit status
Makefile:543: recipe for target 'bmswitchp4_drivers' failed
make[2]: *** [bmswitchp4_drivers] Error 1
make[2]: Leaving directory '/home/mininet/switch/bmv2'
Makefile:469: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/mininet/switch'
Makefile:393: recipe for target 'all' failed
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20171018/c2ced080/attachment-0002.html>


More information about the P4-dev mailing list