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

No such file or directory #include <switch_sai_rpc_server.h> #548

Closed
stcheng opened this issue Apr 27, 2017 · 10 comments
Closed

No such file or directory #include <switch_sai_rpc_server.h> #548

stcheng opened this issue Apr 27, 2017 · 10 comments
Labels

Comments

@stcheng
Copy link
Contributor

stcheng commented Apr 27, 2017

syncd.h:20:35: fatal error: switch_sai_rpc_server.h: No such file or directory
 #include <switch_sai_rpc_server.h>

Build failure on p4 platform:
https://sonic-jenkins.westus.cloudapp.azure.com/job/p4/job/buildimage-p4-all-pr/649/console

@pavel-shirshov
Copy link
Contributor

As soon as p4 will have libsaithrift the build will work.

@junghongkao
Copy link

This issue is related to #522 commit

@stcheng stcheng closed this as completed Jun 7, 2017
@junghongkao
Copy link

junghongkao commented Jun 7, 2017 via email

lguohan added a commit that referenced this issue Jul 28, 2018
* 8f52e29 2018-07-25 | Postpone intf task after buffer configuration applied on the port. (#539) (HEAD, origin/201803) [Jipan Yang]
* 2d2fdaa 2018-07-26 | [portsorch]: Refix: Don't print error when alias equal to PortConfigDone (#548) [Qi Luo]
* 87d34db 2018-07-12 | [MirrorOrch]: Fix bug when NULL is returned from the getenv function (#537) [Shuotian Cheng]
yxieca added a commit to yxieca/sonic-buildimage that referenced this issue Jun 13, 2019
Submodule src/sonic-utilities 46b5aa8..5b73b83:
  > [intfutil] Fix error when <interface name> specified in show interface related commands (sonic-net#548)

Submodule src/sonic-swss a637562..93497ec:
  > [orchagent] PFC WD support for BFN platform (sonic-net#916)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
yxieca added a commit that referenced this issue Jun 13, 2019
Submodule src/sonic-utilities 46b5aa8..5b73b83:
  > [intfutil] Fix error when <interface name> specified in show interface related commands (#548)

Submodule src/sonic-swss a637562..93497ec:
  > [orchagent] PFC WD support for BFN platform (#916)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
lguohan pushed a commit that referenced this issue Jul 17, 2019
* ee56d54 2019-07-16 | [fast-reboot] Stop services after killing containers to prevent automatic restart (#572) (HEAD -> master, origin/master, origin/HEAD) [Joe LeVeque]
* c718cab 2019-07-17 | [acl_loader]: Fix show mirror_session error (#580) [JaredLius]
* 2764c6c 2019-07-16 | [Mellanox] Improve the prompt of the Mellanox sdk sniffer command. (#546) [Stephen Sun]
* 5a5b74d 2019-07-10 | Generate interface table to have an entry for default VRF (#525) [Prince Sunny]
* c30e9ff 2019-07-10 | [show] Don't abort in InterfaceAliasConverter ctor if PORT table doesn't exist (#571) [Joe LeVeque]
* 1aac696 2019-07-10 | [fast reboot] stop removing opennsl module before reboot (#560) [Ying Xie]
* 37823d4 2019-07-09 | Modified CLI doc for 201904 release, changed the config interface command, etc., (#561) [kannankvs]
* 77ae6b8 2019-07-03 | [PR template] Add reminder to update Command Line Reference Guide if modifying user-facing commands (#569) [Joe LeVeque]
* dc52015 2019-06-25 | [Sonic-utilities]: Added commands to view acl and port running configs (#557) [Prem Prakash]
* c7f45c3 2019-06-19 | [warm-reboot] Use retryCount option of orchagent_restart_check program (#555) [Jipan Yang]
* c6a08f7 2019-06-17 | [scripts]: add support to db_migrator for non-default unix socket (#551) [Lawrence Lee]
* 98e087f 2019-06-06 | [show]: Edit comment (#549) [Vasant Patil]
* 5667a90 2019-06-06 | [intfutil] Fix error when <interface name> specified in show interface related commands (#548) [Gord Chen]
* b7fcb1f 2019-06-04 | Add buffer pool watermark support in watermarkstat and counterpoll (#521) [Wenda Ni]
* 635dc88 2019-06-03 | [config]: Add config acl add/remove table command (#541) [Shuotian Cheng]
* dcdc922 2019-06-03 | [show]: Add show policer command (#540) [Shuotian Cheng]
* 82ef3ec 2019-06-01 | IP Address validation check (#530) [Tapash Das]
* 1f326ad 2019-05-31 | [show] Remove ability to clear counters from 'show' commands (#518) [Joe LeVeque]
* 669d36d 2019-06-01 | Add SONIC CLI Manual (#533) [kannankvs]
* 7657001 2019-06-01 | 'show vlan config' not displaying the VLAN members, after the clear config and reload with default l2 configuration. (#457) [RAMA CHANDRA REDDY GADDAM]
* 9493883 2019-05-28 | use vlan members (#542) [trzhang-msft]
* 128462a 2019-05-22 | [config]: Add --policer option for mirror session (#537) [Shuotian Cheng]
* 38da7f3 2019-05-22 | [acl_loader]: Add policer attribute in show mirror_session command (#538) [Shuotian Cheng]
* f95ff00 2019-05-22 | [acl_loader]: Do not apply default DENY rule for MIRRORV6 table (#522) [Shuotian Cheng]
* 50b7256 2019-05-21 | [sonic_installer] If asked to install an image which is already installed, simply set as default (#534) [Joe LeVeque]
* d823062 2019-05-20 | [201811] enable DB migrator code (#536) [Ying Xie]
* 7f7f384 2019-05-10 | update scheme variable name (#531) [trzhang-msft]
* c66315a 2019-05-10 | Config interface Loopback0 ip add/del is not working (#443) [Kiran Kumar Kella]
* 430d4b8 2019-05-10 | decode-syseeprom : added new option to show the Product Name. (#496) [Olivier Singla]
@Rancho333
Copy link

In file included from syncd_saiswitch.cpp:1:0:
syncd.h:20:35: fatal error: switch_sai_rpc_server.h: No such file or directory
 #include <switch_sai_rpc_server.h>

I found this error in branch 201904, How to fix it?

@pavel-shirshov
Copy link
Contributor

@Rancho333 How we can reproduce this?

@Rancho333
Copy link

@pavel-shirshov I run commands as follow:

1.sudo modprobe overlay
2.git checkout 201904
3.make init
4.make configure PLATFORM=centec
5make target/sonic-centec.bin

The attach file make-targetsonic-centec.bin.log with the error info is part of the whole logs.
make-targetsonic-centec.bin.log

@pavel-shirshov
Copy link
Contributor

Try to build the image broadcom?
If that works for you, you have an issue of dependency of LIBSAITHRIFT_DEV inside of sonic-buildimage
If it doesn't we need to check that further.

@pavel-shirshov
Copy link
Contributor

Also check that you have libsaithrift-dev*.deb inside of the target dir

@Rancho333
Copy link

@pavel-shirshov Sorry, I'm doing something else in the meantime. I can make image of broadcom and do nothing special. Ha, I don't known what i have done,but now i have libsaithrift-dev*.deb inside of the target dir. So ,it's the issue of dependency of LIBSAITHIRFT_DEV? How can i fix it?

@pavel-shirshov
Copy link
Contributor

I can only suggest to check the difference between broadcom Makefiles and your platform Makefiles.

Kalimuthu-Velappan pushed a commit to Kalimuthu-Velappan/sonic-buildimage that referenced this issue Sep 12, 2019
lguohan pushed a commit that referenced this issue Jan 22, 2020
update multiDB changes in sairedis, including:

[MultiDB]: repalce old APIs with New APIs incuding testing (#537)

[syncd] Move port map and port map parser to proper class (#542)

[syncd] Update syncd to expect correct object query message (#548)

Support for snat available entry switch attribute in vslib (needed to run vs pytests) (#546)

Move apiInitialized flag to Globals namespace (#545)

Move command line options and parser to separate classes (#541)

Move ntf_queue to proper NotificationQueue class (#539)

Move api mutex to global class and add sairedis namespace (#544)

Clean sairedis.h header (#543)

Fix mlnx.pl script for perl include local directory (#540)

Layer 2 Forwarding Enhancements (#510)

Signed-off-by: Dong Zhang d.zhang@alibaba-inc.com
madhanmellanox pushed a commit to madhanmellanox/sonic-buildimage that referenced this issue Mar 23, 2020
dmytroxshevchuk pushed a commit to dmytroxshevchuk/sonic-buildimage that referenced this issue Aug 31, 2020
bocon13 pushed a commit to pins/sonic-buildimage-public that referenced this issue Nov 22, 2021
Incorporates:

95aec72 2021-11-19 [PINS] Add Bazel support for external projects (sonic-net#557)
1dfe06f 2021-11-18 P4Runtime : Status Code additions (sonic-net#545)
8c93532 2021-11-18 Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (sonic-net#501)
74264d9 2021-11-17 [PINS] Add AppDB ACL schema values shared between the P4RT app and P4Orch (sonic-net#556)
a18618f 2021-11-15 [schema] Add vnet route tunnel and advertise network tables for state db (sonic-net#560)
155770e 2021-11-12 [VS test] Increase test timeout (sonic-net#559)
2b11dea 2021-11-08 [PINS] Update Redis schema to match P4Orch (sonic-net#548)
be7d483 2021-11-08 [schema] add ACL_TABLE_TYPE table (sonic-net#546)

Signed-off-by: Don Newton <don@opennetworking.org>
prsunny pushed a commit that referenced this issue Nov 23, 2021
[sonic-swss-common] submodule update:
95aec72 2021-11-19 [PINS] Add Bazel support for external projects (#557)
1dfe06f 2021-11-18 P4Runtime : Status Code additions (#545)
8c93532 2021-11-18 Ported Marvell armhf build on amd64 host for debian buster to use cross-comp… (#501)
74264d9 2021-11-17 [PINS] Add AppDB ACL schema values shared between the P4RT app and P4Orch (#556)
a18618f 2021-11-15 [schema] Add vnet route tunnel and advertise network tables for state db (#560)
155770e 2021-11-12 [VS test] Increase test timeout (#559)
2b11dea 2021-11-08 [PINS] Update Redis schema to match P4Orch (#548)
be7d483 2021-11-08 [schema] add ACL_TABLE_TYPE table (#546)

Signed-off-by: Don Newton <don@opennetworking.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants