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

compiling failure #46

Open
gogosholo opened this issue Oct 17, 2021 · 4 comments
Open

compiling failure #46

gogosholo opened this issue Oct 17, 2021 · 4 comments

Comments

@gogosholo
Copy link

Compiling error by following the tutorial in the youtube video 'T4P4S: Translator for P4 Switches' from the time mark 11:37 to time mark 14:49.
The error code shown in our terminal is "Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)".

@rst0git
Copy link
Member

rst0git commented Oct 17, 2021

This error is reported from this line t4p4s.sh#L288

Could you please check if t4p4s.service has been stopped (with systemctl status t4p4s.service)?

Alternatively, you can disable the service and reboot.

systemctl disable t4p4s.service
reboot

After reboot, you should be able to run the switch as follows:

sudo -i
cd /root/t4p4s/
./t4p4s.sh :arp_icmp p4rt

@gogosholo
Copy link
Author

Sorry for the late response. This was not out problem because as you mentioned systemctl status t4p4s.service), we turned it off and instead got some another kind of compiling failure. We suspect it is because we can't get internet to the P4Pi device.

We also have this problem where we can't run in the web interface, which is probably also because of internet.

This error is reported from this line t4p4s.sh#L288

Could you please check if t4p4s.service has been stopped (with systemctl status t4p4s.service)?

Alternatively, you can disable the service and reboot.

systemctl disable t4p4s.service
reboot

After reboot, you should be able to run the switch as follows:

sudo -i
cd /root/t4p4s/
./t4p4s.sh :arp_icmp p4rt

@rst0git
Copy link
Member

rst0git commented Nov 7, 2021

Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)

This error indicates that t4p4s.sh has failed to reserve enough hugepages. It is not related to having an internet connection.

we turned it off and instead got some another kind of compiling failure

Was there an error message? (perhaps @slaki may be able to help)

@gogosholo
Copy link
Author

gogosholo commented Nov 8, 2021

IMG_2010
We tried the regular way as the image above, but got compiling failure.

internet
We tried with internet by a certain way: Testing as a hotspot sharing the Internet access of a home router (or a private network domain)
And we tried again as the image above, but still got compiling failure.

Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)

This error indicates that t4p4s.sh has failed to reserve enough hugepages. It is not related to having an internet connection.

we turned it off and instead got some another kind of compiling failure

Was there an error message? (perhaps @slaki may be able to help)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants