buck error

96 views
Skip to first unread message

ayaskant...@gmail.com

unread,
Dec 11, 2017, 4:03:27 AM12/11/17
to ONOS Discuss
root@mirafra-ThinkCentre-A58:/opt/onos/onos/tools/build# ./onos-buck run onos-local -- clean debug
Updating Buck...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 44.3M  100 44.3M    0     0   302k      0  0:02:30  0:02:30 --:--:--  340k
Archive:  cache/buck-v2017.11.30.01.zip
  inflating: buck                    
 extracting: .buck_version           
   creating: plugins/
  inflating: plugins/onos.jar        
  inflating: plugins/yang.jar        
Successfully updated Buck in /opt/onos/onos/bin/buck to buck-v2017.11.30.01.zip

Not using buckd because NO_BUCKD is set.
[-] PROCESSING BUCK FILES...FINISHED 12.5s [100%] 🐳  New buck daemon
[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
[+] BUILDING...3.8s
BUILD FAILED: Couldn't get dependency '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0' of target '//protocols/p4runtime/api:onos-protocols-p4runtime-api':
Parse error for build file /opt/onos/onos/incubator/grpc-dependencies/BUCK:   File "/opt/onos/onos/buck-out/tmp/buck_run.v7s2w_/buck_python_program7754849100180289477/buck.py", line 1417, in process_with_diagnostics
    diagnostics=diagnostics)
  File "/opt/onos/onos/buck-out/tmp/buck_run.v7s2w_/buck_python_program7754849100180289477/buck.py", line 1316, in process
    implicit_includes=self._implicit_includes)
  File "/opt/onos/onos/buck-out/tmp/buck_run.v7s2w_/buck_python_program7754849100180289477/buck.py", line 1255, in _process_build_file
    implicit_includes=implicit_includes)
  File "/opt/onos/onos/buck-out/tmp/buck_run.v7s2w_/buck_python_program7754849100180289477/buck.py", line 1178, in _process
    exec(code, module.__dict__)
  File "/opt/onos/onos/incubator/grpc-dependencies/BUCK", line 3, in <module>
    fetch_grpc_plugin(version = '1.3.0')
  File "/opt/onos/onos/bucklets/grpc.bucklet", line 64, in fetch_grpc_plugin
    raise Exception('Cannot download %s, architecture or version not supported' % file_name)
Exception: Cannot download protoc-gen-grpc-java-1.3.0-linux-i686.exe, architecture or version not supported

Carmelo Cascone

unread,
Dec 11, 2017, 5:42:04 PM12/11/17
to ayaskant...@gmail.com, ONOS Discuss
Hi,

This error is due to the linux-i686 architecture not being supported by the ONOS build system. Currently we support building ONOS only on osx-x86_64 or linux-x86_64.

Thanks.
Carmelo
> --
> You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
> To post to this group, send email to onos-d...@onosproject.org.
> Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
> To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/4e63775d-94cd-4aa4-8f38-24074e008bd6%40onosproject.org.

Ayaskant Mantu

unread,
Dec 11, 2017, 8:57:06 PM12/11/17
to Carmelo Cascone, ONOS Discuss
Thank you for the clarification. 

> To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss+unsubscribe@onosproject.org.

Faiqa Butt

unread,
Jun 23, 2022, 2:28:46 PM6/23/22
to ONOS Discuss, Carmelo Cascone, ONOS Discuss, ayaskant...@gmail.com
Hey,
My system is already linux-x86_64. but still face this issue

echo "export ONOS_ROOT=~/onos" >> ~/.bashrc && source ~/.bashrc && source $ONOS_ROOT/tools/dev/bash_profile && cd ~/onos &&
> tools/build/onos-buck build onos --show-output && tools/build/onos-buck run onos-local -- clean debug

Updating Buck...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0   
curl: (52) Empty reply from server

can you please help me out
thank you

Eder

unread,
Jun 23, 2022, 3:31:09 PM6/23/22
to ONOS Discuss, Faiqa Butt, Carmelo Cascone, ONOS Discuss, ayaskant...@gmail.com
Hi,


ONOS does not use buck anymore. It uses Bazel. If you want to use a non-supported ONOS version that has to be built with Buck, you need to fix the build script for buck yourself, unfortunately.

Cheers,

Eder

unread,
Jun 23, 2022, 4:11:10 PM6/23/22
to ONOS Discuss, Eder, Faiqa Butt, Carmelo Cascone, ONOS Discuss, ayaskant...@gmail.com
Please do not drop onos address from responses :)

Hey,
Thank you so much for your quick response.
Unfortunately I need buck for it's running.
Is there any way you help me out.
I am on my MS research work .
And I really need it.
Thank you 

If you require a version of ONOS that is considerably older than the current one, you can use the Docker containers or the tar.gz files for that particular version. You do not need to build them. If you need to build it for whatever the reason, it will require some time to spot where the errors come from. I believe some errors will be from libraries or tools from that are not available anymore. You need to check the line of the error and spot it the line of code that prints it. I can see it says "curl", so it is probably trying to reach a URL that is no longer valid. One by one you will have to fix the script, sorry for the news. 

So far, I can tell you that if you use a version like 1.10, the line 24 (see here) seems to be (likely) your first error. You need to spot another URL that hosts the buck tool set version and try again the script. You will likely find several similar errors like this. Best luck!

Cheers,
Reply all
Reply to author
Forward
0 new messages