Few small fixes to allow envoy to compile on ARM32#1781
Few small fixes to allow envoy to compile on ARM32#1781costinm wants to merge 31 commits intoenvoyproxy:masterfrom
Conversation
|
Note that I compiled/tested using a custom cmake, not bazel. |
|
|
||
| TCLAP::CmdLine cmd("envoy", ' ', VersionInfo::version()); | ||
| TCLAP::ValueArg<uint64_t> base_id( | ||
| TCLAP::ValueArg<uint32_t> base_id( |
There was a problem hiding this comment.
I get this error with the pi cross-compiler. Not sure if there is some other fix, not an expert in c++...
In file included from /ws/istio-master/src/tclap/include/tclap/Arg.h:54:0,
from /ws/istio-master/src/tclap/include/tclap/SwitchArg.h:30,
from /ws/istio-master/src/tclap/include/tclap/CmdLine.h:27,
from /ws/istio-master/envoy/source/server/options_impl.cc:13:
/ws/istio-master/src/tclap/include/tclap/ArgTraits.h: In instantiation of 'struct TCLAP::ArgTraits':
/ws/istio-master/src/tclap/include/tclap/ValueArg.h:403:66: required from 'void TCLAP::ValueArg::_extractValue(const string&) [with T = long long unsigned int; std::string = std::basic_string]'
/ws/istio-master/src/tclap/include/tclap/ValueArg.h:363:29: required from 'bool TCLAP::ValueArg::processArg(int*, std::vector<std::basic_string >&) [with T = long long unsigned int]'
/ws/istio-master/envoy/source/server/options_impl.cc:120:1: required from here
/ws/istio-master/src/tclap/include/tclap/ArgTraits.h:80:39: error: 'long long unsigned int' is not a class, struct, or union type
typedef typename T::ValueCategory ValueCategory;
There was a problem hiding this comment.
Also - I don't think any of the options would need 64 bit parameters.
There was a problem hiding this comment.
That's with arm-rpi-4.9.3-linux-gnueabihf
There was a problem hiding this comment.
Might be an issue in converting from the literal to the type. I think in general, for clean 32/64-bit support, we should have some macros for writing fixed width literals, e.g. CONST64(0), since we're going to hit this elswhere. I do agree that these are fine as uint32_t though.
There was a problem hiding this comment.
Seems specific to tclap macros - so far everything else seems to work on 32 bit arm, I'll do more testing and try to get it into a continuous build.
|
In general this seems fine to me but please fix DCO and format. |
include/envoy/http/codec.h
Outdated
| static const uint32_t DEFAULT_HPACK_TABLE_SIZE = (1 << 12); | ||
| // no maximum from HTTP/2 spec, use unsigned 32-bit maximum | ||
| static const uint32_t MAX_HPACK_TABLE_SIZE = (1UL << 32) - 1; | ||
| static const uint32_t MAX_HPACK_TABLE_SIZE = 0xFFFFFFFF; |
There was a problem hiding this comment.
You should be able to use the C++ numeric_limits for this:
#include <limits>
static const uint32_t MAX_HPACK_TABLE_SIZE = std::numeric_limits<uint32_t>::max();
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Stephan Zuercher <stephan@turbinelabs.io>
) The v2 API supports using the downstream (source) IP address to route HTTP requests to upstream hosts. This PR implements that functionality, as specified in envoyproxy#1296. Signed-off-by: Alex Konradi <akonradi@google.com>
…1753) Generalizes existing zone support. Fixes envoyproxy#1750. Signed-off-by: Harvey Tuch htuch@google.com
…yproxy#1757) Signed-off-by: Matt Klein <mklein@lyft.com>
…ion (envoyproxy#1733) resolves envoyproxy#1711 Signed-off-by: Gary Brown <gary@brownuk.com>
Signed-off-by: Daniel Hochman <dhochman@lyft.com>
Fixes envoyproxy#1422 Signed-off-by: Alex Konradi <akonradi@google.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Gabriel Rosenhouse <grosenhouse@pivotal.io>
Signed-off-by: Gabriel Rosenhouse <grosenhouse@pivotal.io>
Signed-off-by: Matt Rice <mattrice@google.com>
Signed-off-by: Matt Rice <mattrice@google.com>
There is no minimal language and due to travis-ci/travis-ci#4895, it will fallback to ruby. shell should serve our usecase Signed-off-by: bndw <benjamindwoodward@gmail.com>
Signed-off-by: bndw <benjamindwoodward@gmail.com>
Signed-off-by: Daniel Hochman <dhochman@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: bndw <benjamindwoodward@gmail.com>
Signed-off-by: Stephan Zuercher <stephan@turbinelabs.io>
Tested compilation for rasbperry pi and android (the 'endian' change is required for android NDK - recent androids can compile with 64 bit).
Signed-off-by: Costin Manolache <costin@google.com>
This PR adds per-host counters to support UpstreamLocalityStats. At load report time, these will be aggregated on a per-locality basis. Signed-off-by: Harvey Tuch htuch@google.com
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
…nvoyproxy#1776) Signed-off-by: Greg Greenway <ggreenway@apple.com>
Signed-off-by: Stephan Zuercher <stephan@turbinelabs.io>
…yproxy#1786) This is helpful for Google import and shouldn't affect anybody else. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
See ci/README.md for instructions. Signed-off-by: David Mackey tdmackey@booleanhaiku.com
…envoyproxy#1790) Signed-off-by: Harvey Tuch <htuch@google.com>
This makes it appopriate to use the OsSysCalls abstraction in other areas of the code-base, such as hot-restart. Signed-off-by: Greg Greenway <ggreenway@apple.com>
Tested compilation for rasbperry pi and android (the 'endian' change is required for android NDK - recent androids can compile with 64 bit). Signed-off-by: Costin Manolache <costin@google.com>
|
Git mixups attempting to edit commits to add DCO - will upload a clean PR |
Description: Move tsan workflow to Engflow's remote execution Same as envoyproxy/envoy-mobile#1745 but using a couple of tsan flags instead of asan. Using a separate config for modularity. Risk Level: Low Testing: See tsan workflow Docs Changes: N/A Release Notes: N/A Signed-off-by: Luis Fernando Pino Duque <luis@engflow.com> Signed-off-by: JP Simard <jp@jpsim.com>
Description: Move tsan workflow to Engflow's remote execution Same as envoyproxy/envoy-mobile#1745 but using a couple of tsan flags instead of asan. Using a separate config for modularity. Risk Level: Low Testing: See tsan workflow Docs Changes: N/A Release Notes: N/A Signed-off-by: Luis Fernando Pino Duque <luis@engflow.com> Signed-off-by: JP Simard <jp@jpsim.com>
Signed-off-by: fbalicchia <fbalicchia@cuebiq.com>
Tested compilation for rasbperry pi and android (the 'endian' change is
required for android NDK - recent androids can compile with 64 bit).
Signed-off-by: Costin Manolache costin@gmail.com