[P4-dev] Error when running installation script

Antonin Bas antonin at barefootnetworks.com
Wed Feb 10 13:36:47 EST 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20160210/79bfba66/attachment-0002.html>


More information about the P4-dev mailing list