[P4-dev] [Released] Re: Error when running installation script

Ramana Reddy gtvrreddy at gmail.com
Thu Feb 18 21:16:50 EST 2016


Which submodule is missing?  Whenever I see such error , i just go to
parent folder and run the git submodule update command as Antonin
mentioned.
On 19 Feb 2016 12:38 am, "Antonin Bas" <antonin at barefootnetworks.com> wrote:

> Hi,
>
> This veth_setup.sh is perfectly normal. As a matter of fact, I think I get
> the same one on my machine.
> If subdirectories are missing under submodules, it may be because you did
> not follow the README instructions (
> https://github.com/p4lang/p4factory#important-git-submodules) and did not
> run "git submodule update --init --recursive" after cloning the p4factory
> repository.
>
> Antonin
>
> On Thu, Feb 18, 2016 at 10:29 AM, Vibhaalakshmi Sivaraman <
> vibhaa at princeton.edu> wrote:
>
>> Thank you for this! I increased the memory and managed to get the
>> installation script to run, but am now running into some trouble on the
>> veth_setup.
>> This is an excerpt from the output of running veth_setup.sh
>>
>> Actual changes:
>> tx-checksumming: off
>>     tx-checksum-ip-generic: off
>> tcp-segmentation-offload: off
>>     tx-tcp-segmentation: off [requested on]
>>     tx-tcp-ecn-segmentation: off [requested on]
>>     tx-tcp6-segmentation: off [requested on]
>> udp-fragmentation-offload: off [requested on]
>> Actual changes:
>> tx-checksumming: off
>>     tx-checksum-ip-generic: off
>> tcp-segmentation-offload: off
>>     tx-tcp-segmentation: off [requested on]
>>     tx-tcp-ecn-segmentation: off [requested on]
>>     tx-tcp6-segmentation: off [requested on]
>> udp-fragmentation-offload: off [requested on]
>> Actual changes:
>> scatter-gather: off
>>     tx-scatter-gather: off
>>     tx-scatter-gather-fraglist: off
>> generic-segmentation-offload: off [requested on]
>> Actual changes:
>> scatter-gather: off
>>     tx-scatter-gather: off
>>     tx-scatter-gather-fraglist: off
>> generic-segmentation-offload: off [requested on]
>> Cannot change large-receive-offload
>> Cannot change large-receive-offload
>> Cannot change receive-hashing
>> Cannot change receive-hashing
>>
>> after which autogen.sh and configure fail since certain subdirectories
>> are missing under submodules.
>>
>> What could be causing this? Thanks!
>>
>> Vibhaa
>>
>> On Wed, Feb 10, 2016 at 1:36 PM, Antonin Bas <
>> antonin at barefootnetworks.com> wrote:
>>
>>> In this case, this is failing while the script is trying to install
>>> thrift.
>>> By default, the install script uses parallel build with "make -j4" (
>>> https://github.com/p4lang/p4factory/blob/master/install_deps.sh#L73).
>>> If you remove the -j4, parallel make will be disabled and the script will
>>> consume way less memory.
>>> You can also increase the amount of memory allocated to your VM,
>>> assuming you are running this in a VM. This would probably be best because
>>> if you don;t you may run into the same problem later on when compiling P4
>>> programs.
>>>
>>> Thanks,
>>>
>>> Antonin
>>>
>>> On Wed, Feb 10, 2016 at 10:26 AM, Ramana Reddy <gtvrreddy at gmail.com>
>>> wrote:
>>>
>>>> Your program might be taking lot of memory.  I got similar problem.
>>>> What linux system you are using right now?
>>>>
>>>> On Wed, Feb 10, 2016 at 9:40 PM, Vibhaalakshmi Sivaraman <
>>>> vibhaa at princeton.edu> wrote:
>>>>
>>>>> I am running into the following errors while running the install
>>>>> script as specified at https://github.com/p4lang/p4factory. What
>>>>> might be causing this and how should I go about fixing this?
>>>>>
>>>>> g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift  -I./src
>>>>> -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT thrift-t_csharp_generator.o
>>>>> -MD -MP -MF .deps/thrift-t_csharp_generator.Tpo -c -o
>>>>> thrift-t_csharp_generator.o `test -f 'src/generate/t_csharp_generator.cc'
>>>>> || echo './'`src/generate/t_csharp_generator.cc
>>>>> g++: internal compiler error: Killed (program cc1plus)
>>>>> Please submit a full bug report,
>>>>> with preprocessed source if appropriate.
>>>>> See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
>>>>> make[3]: *** [thrift-t_c_glib_generator.o] Error 4
>>>>> make[3]: *** Waiting for unfinished jobs....
>>>>> mv -f .deps/thrift-t_java_generator.Tpo .deps/thrift-t_java_generator.
>>>>> Po
>>>>> mv -f .deps/thrift-t_csharp_generator.Tpo .deps/thrift-t_csharp_
>>>>> generator.Po
>>>>> mv -f .deps/thrift-t_cpp_generator.Tpo .deps/thrift-t_cpp_generator.Po
>>>>> make[3]: Leaving directory `/home/vibhaa/p4factory/
>>>>> install_tmp/thrift-0.9.2/compiler/cpp'
>>>>> make[2]: *** [all] Error 2
>>>>> make[2]: Leaving directory `/home/vibhaa/p4factory/
>>>>> install_tmp/thrift-0.9.2/compiler/cpp'
>>>>> make[1]: *** [all-recursive] Error 1
>>>>> make[1]: Leaving directory `/home/vibhaa/p4factory/
>>>>> install_tmp/thrift-0.9.2'
>>>>> make: *** [all] Error 2
>>>>>
>>>>> Thanks,
>>>>> Vibhaa
>>>>>
>>>>> --
>>>>> Vibhaalakshmi Sivaraman
>>>>> Computer Science
>>>>> Princeton University '17
>>>>>
>>>>> _______________________________________________
>>>>> P4-dev mailing list
>>>>> P4-dev at lists.p4.org
>>>>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> P4-dev mailing list
>>>> P4-dev at lists.p4.org
>>>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>>>
>>>
>>>
>>>
>>> --
>>> Antonin
>>>
>>
>>
>>
>> --
>> Vibhaalakshmi Sivaraman
>> Computer Science
>> Princeton University '17
>>
>
>
>
> --
> Antonin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160219/984400bb/attachment-0002.html>


More information about the P4-dev mailing list