Hi Sreejith,

This is an error which is just treating the warnings as errors. For the
compilation to continue, u can disable the Werror flag for now from your
makefiles. Use a fresh repo, search for Werror flag, comment it out
wherever they are used, your compilation will continue.

Please do note that the current setup works only on 64bit machines.

Regards,
Ajay Vishnu Bhat

On 21 Nov 2016 10:41 am, "Sreejith Surendran Nair" <
[email protected]> wrote:

> Hi Team,
>
>>
>> I am getting  below compilation error in code when trying to run VPP
>> first time. If possible can anyone help.
>>
>> Compilation Error:
>> -----------------------
>> ./build-root/vagrant/build.sh
>> CC       vppinfra/mem_mheap.lo
>> */home/sree/source/vpp/build-data/../vppinfra/vppinfra/mheap.c: In
>> function 'mheap_small_object_cache_mask':*
>>
>> */home/sree/source/vpp/build-data/../vppinfra/vppinfra/mheap.c:317:5:
>> error: left shift count >= width of type [-Werror]     mask |= _(2) | _(3);*
>>      ^
>> /home/sree/source/vpp/build-data/../vppinfra/vppinfra/mheap.c:317:5:
>> error: left shift count >= width of type [-Werror]
>> cc1: all warnings being treated as errors
>> make[3]: *** [vppinfra/mheap.lo] Error 1
>> make[3]: *** Waiting for unfinished jobs....
>> make[3]: Leaving directory `/home/sree/source/vpp/build-r
>> oot/build-vpp-native/vppinfra'
>> make[2]: *** [vppinfra-build] Error 2
>> make[2]: Leaving directory `/home/sree/source/vpp/build-root'
>> make[1]: *** [install-deb] Error 1
>> make[1]: Leaving directory `/home/sree/source/vpp/build-root'
>> make: *** [pkg-deb] Error 2
>> sree@sree-VirtualBox:~/source/vpp$
>>
>>
>> Build Environment:
>> ------------------------
>> Virtual Box booted with Ubuntu 14.04.
>>
>>
>> I had pulled the view from git (git clone https://[email protected]/
>> r/a/vpp). I found a similar issue reported earlier(https://lists.fd.io/pi
>> permail/vpp-dev/2016-April/000657.html) but the workaround steps did not
>> help.
>>
>> Any help is appreciated.
>>
>> Thanks & Regards,
>> Sreejith
>>
>>
>
> _______________________________________________
> vpp-dev mailing list
> [email protected]
> https://lists.fd.io/mailman/listinfo/vpp-dev
>
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to