[1] should fix this behavior in the future, checking the lib presence and
version before trying to compile the quicly plugin.
-Nathan

[1] https://gerrit.fd.io/r/c/vpp/+/24872

Le mar. 3 mars 2020 à 10:16, Nathan Skrzypczak via Lists.Fd.Io
<nathan.skrzypczak=gmail....@lists.fd.io> a écrit :

> Hi Kausik,
>
> This error comes from a discrepancy between the installed version of
> libquicly and the one required for the build.
> For now we sadly do not have a version-checking mechanism, I'll try to
> write a patch to avoid those errors and keep you posted.
>
> To fix the build issue you can :
> * If `dpkg -l | grep vpp-ext-deps` gives you an entry, maybe try rebuild
> external deps `make install-ext-deps`
> * If not, the older version of quicly might come with the e-build, try
> `make wipe-release && git clean -ffdx` and re-run `build.sh`
> * If this keeps bothering you and you don't need quicly, you can just
> remove `./src/plugins/quic/CMakeLists.txt` and rebuild
>
> Hope this helps
>
> -Nathan
>
>
> Le mar. 3 mars 2020 à 05:27, Majumdar, Kausik <
> kausik.majum...@commscope.com> a écrit :
>
>>
>>
>> Hi All,
>>
>>
>>
>> I have pulled latest VPP codebase from the master and tried to run
>> “build.sh” from the /vpp/build-root/vagrant folder. I see following build
>> errors. Anyone seen this ? Is there any patch available ?
>>
>>
>>
>> I didn’t see it when I built from v20.01 release.
>>
>>
>>
>> [1671/1816] Building C object
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic.c.o
>>
>> FAILED: plugins/quic/CMakeFiles/quic_plugin.dir/quic.c.o
>>
>> /opt/rh/devtoolset-7/root/bin/cc -Dquic_plugin_EXPORTS
>> -I/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src -I. -Iinclude
>> -I/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins -Iplugins
>> -I/opt/vpp/external/x86_64/include -Wno-address-of-packed-member -g -fPIC
>> -Werror -Wall -march=corei7 -mtune=corei7-avx  -O2 -fstack-protector
>> -DFORTIFY_SOURCE=2 -fno-common  -fPIC -MD -MT
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic.c.o -MF
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic.c.o.d -o
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic.c.o   -c
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic.c
>>
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic.c:
>> In function 'quic_init_crypto_context':
>>
>> */root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic.c:277:32:
>> error: 'quicly_transport_parameters_t {aka struct 
>> *st_quicly_transport_parameters_t}'
>> has no member named 'max_idle_timeout'; did you mean 'idle_timeout'?
>>
>>    quicly_ctx->transport_params.max_idle_timeout = qm->connection_timeout;
>>
>>                                 ^~~~~~~~~~~~~~~~
>>
>>                                 idle_timeout
>>
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic.c:
>> At top level:
>>
>> cc1: error: unrecognized command line option
>> '-Wno-address-of-packed-member' [-Werror]
>>
>> cc1: all warnings being treated as errors
>>
>> [1672/1816] Building C object
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic_crypto.c.o
>>
>> FAILED: plugins/quic/CMakeFiles/quic_plugin.dir/quic_crypto.c.o
>>
>> /opt/rh/devtoolset-7/root/bin/cc -Dquic_plugin_EXPORTS
>> -I/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src -I. -Iinclude
>> -I/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins -Iplugins
>> -I/opt/vpp/external/x86_64/include -Wno-address-of-packed-member -g -fPIC
>> -Werror -Wall -march=corei7 -mtune=corei7-avx  -O2 -fstack-protector
>> -DFORTIFY_SOURCE=2 -fno-common  -fPIC -MD -MT
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic_crypto.c.o -MF
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic_crypto.c.o.d -o
>> plugins/quic/CMakeFiles/quic_plugin.dir/quic_crypto.c.o   -c
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic_crypto.c
>>
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic_crypto.c:
>> In function 'quic_crypto_decrypt_packet':
>>
>> */root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic_crypto.c:258:5:
>> error: implicit declaration of function 
>> *'quicly_get_next_expected_packet_number';
>> did you mean 'quicly_determine_packet_number'?
>> [-Werror=implicit-function-declaration]
>>
>>      quicly_get_next_expected_packet_number (qctx->conn);
>>
>>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>      quicly_determine_packet_number
>>
>> /root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/src/plugins/quic/quic_crypto.c:
>> At top level:
>>
>> cc1: error: unrecognized command line option
>> '-Wno-address-of-packed-member' [-Werror]
>>
>> cc1: all warnings being treated as errors
>>
>> [1674/1816] Building C object
>> plugins/rdma/CMakeFiles/rdma_plugin_avx2.dir/input.c.o
>>
>> ninja: build stopped: subcommand failed.
>>
>> make[3]: *** [Makefile:693: vpp-build] Error 1
>>
>> make[3]: Leaving directory
>> '/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/build-root'
>>
>> make[2]: *** [Makefile:929: install-packages] Error 1
>>
>> make[2]: Leaving directory
>> '/root/vpp_master/vpp/build-root/rpmbuild/vpp-20.05/build-root'
>>
>> error: Bad exit status from /var/tmp/rpm-tmp.uvq9PV (%build)
>>
>>
>>
>>
>>
>> RPM build errors:
>>
>>     Bad exit status from /var/tmp/rpm-tmp.uvq9PV (%build)
>>
>> make[1]: *** [RPM] Error 1
>>
>> make[1]: Leaving directory `/root/vpp_master/vpp/extras/rpm'
>>
>> make: *** [pkg-rpm] Error 2
>>
>> [root@localhost vagrant]#
>>
>>
>>
>> Thanks,
>>
>> Kausik
>>
>>
>>
>> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15675): https://lists.fd.io/g/vpp-dev/message/15675
Mute This Topic: https://lists.fd.io/mt/71693777/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to