hoytech / strfry

a nostr relay
GNU General Public License v3.0
502 stars 98 forks source link

Ubuntu docker build is broken #69

Open jamesob opened 1 year ago

jamesob commented 1 year ago

I get the following compilation error when attempting to use the Ubuntu dockerfile:

% docker build -t jamesob/strfry -f ubuntu.Dockerfile .
[+] Building 20.4s (13/14)                                                                                                                     docker:default
 => [internal] load build definition from ubuntu.Dockerfile                                                                                              0.0s
 => => transferring dockerfile: 731B                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/ubuntu:jammy                                                                                          0.0s
 => [build 1/7] FROM docker.io/library/ubuntu:jammy                                                                                                      0.0s
 => [internal] load build context                                                                                                                        0.8s
 => => transferring context: 239.13MB                                                                                                                    0.8s
 => [build 2/7] WORKDIR /build                                                                                                                           0.0s
 => [runner 2/4] WORKDIR /app                                                                                                                            0.0s
 => [build 3/7] RUN apt update && apt install -y --no-install-recommends     git g++ make pkg-config libtool ca-certificates     libyaml-perl libtempl  14.6s
 => [runner 3/4] RUN apt update && apt install -y --no-install-recommends     liblmdb0 libflatbuffers1 libsecp256k1-0 libb2-1 libzstd1     && rm -rf /v  4.7s
 => [build 4/7] COPY . .                                                                                                                                 0.8s
 => [build 5/7] RUN git submodule update --init                                                                                                          0.3s
 => [build 6/7] RUN make setup-golpe                                                                                                                     0.5s
 => ERROR [build 7/7] RUN make -j4                                                                                                                       4.1s
------
 > [build 7/7] RUN make -j4:
0.437 perl golpe/external/templar/templar.pl src/tmpls/ strfrytmpl build/StrfryTemplates.h
0.511 g++ -std=c++20 -O3 -g -Wall -fPIC  -DDOCOPT_HEADER_ONLY -Iinclude -Ibuild -Isrc -Igolpe/external -Igolpe/external/lmdbxx/include -Igolpe/external/config/include -Igolpe/external/json/include -Igolpe/external/PEGTL/include -Igolpe/external/hoytech-cpp -Igolpe/external/docopt.cpp -Igolpe/external/loguru -Igolpe/external/parallel-hashmap -Iexternal/negentropy/cpp -MMD -MP -MT src/apps/relay/RelayWebsocket.o -MF src/apps/relay/RelayWebsocket.d -c src/apps/relay/RelayWebsocket.cpp -o src/apps/relay/RelayWebsocket.o
1.913 In file included from build/golpe.h:11,
1.913                  from src/apps/relay/RelayServer.h:13,
1.913                  from src/apps/relay/RelayWebsocket.cpp:1:
1.913 build/nostr-index_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
1.913    11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
1.913       |                                         ^
1.913 build/nostr-index_generated.h:53:35: error: expected ')' before '<' token
1.913    53 |   Fixed32Bytes(::flatbuffers::span<const uint8_t, 32> _val) {
1.913       |               ~                   ^
1.913       |                                   )
1.914 build/nostr-index_generated.h: In member function 'const flatbuffers::Array<unsigned char, 32>* NostrIndex::Fixed32Bytes::val() const':
1.914 build/nostr-index_generated.h:57:28: error: 'CastToArray' is not a member of 'flatbuffers'
1.914    57 |     return &::flatbuffers::CastToArray(val_);
1.914       |                            ^~~~~~~~~~~
1.915 build/nostr-index_generated.h: In member function 'bool NostrIndex::TagGeneral::Verify(flatbuffers::Verifier&) const':
1.915 build/nostr-index_generated.h:79:32: error: no matching function for call to 'NostrIndex::TagGeneral::VerifyField<uint8_t>(flatbuffers::Verifier&, NostrIndex::TagGeneral::FlatBuffersVTableOffset, int) const'
1.915    79 |            VerifyField<uint8_t>(verifier, VT_KEY, 1) &&
1.915       |            ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
1.915 In file included from build/golpe.h:9,
1.915                  from src/apps/relay/RelayServer.h:13,
1.915                  from src/apps/relay/RelayWebsocket.cpp:1:
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = unsigned char; flatbuffers::voffset_t = short unsigned int]'
1.915  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.915       |        ^~~~~~~~~~~
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.915 In file included from build/golpe.h:11,
1.915                  from src/apps/relay/RelayServer.h:13,
1.915                  from src/apps/relay/RelayWebsocket.cpp:1:
1.915 build/nostr-index_generated.h: In member function 'bool NostrIndex::TagFixed32::Verify(flatbuffers::Verifier&) const':
1.915 build/nostr-index_generated.h:145:32: error: no matching function for call to 'NostrIndex::TagFixed32::VerifyField<uint8_t>(flatbuffers::Verifier&, NostrIndex::TagFixed32::FlatBuffersVTableOffset, int) const'
1.915   145 |            VerifyField<uint8_t>(verifier, VT_KEY, 1) &&
1.915       |            ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
1.915 In file included from build/golpe.h:9,
1.915                  from src/apps/relay/RelayServer.h:13,
1.915                  from src/apps/relay/RelayWebsocket.cpp:1:
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = unsigned char; flatbuffers::voffset_t = short unsigned int]'
1.915  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.915       |        ^~~~~~~~~~~
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.915 In file included from build/golpe.h:11,
1.915                  from src/apps/relay/RelayServer.h:13,
1.915                  from src/apps/relay/RelayWebsocket.cpp:1:
1.915 build/nostr-index_generated.h:146:49: error: no matching function for call to 'NostrIndex::TagFixed32::VerifyField<NostrIndex::Fixed32Bytes>(flatbuffers::Verifier&, NostrIndex::TagFixed32::FlatBuffersVTableOffset, int) const'
1.915   146 |            VerifyField<NostrIndex::Fixed32Bytes>(verifier, VT_VAL, 1) &&
1.915       |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
1.915 In file included from build/golpe.h:9,
1.915                  from src/apps/relay/RelayServer.h:13,
1.915                  from src/apps/relay/RelayWebsocket.cpp:1:
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = NostrIndex::Fixed32Bytes; flatbuffers::voffset_t = short unsigned int]'
1.915  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.915       |        ^~~~~~~~~~~
1.915 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.916 In file included from build/golpe.h:11,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 build/nostr-index_generated.h: In member function 'bool NostrIndex::Event::Verify(flatbuffers::Verifier&) const':
1.916 build/nostr-index_generated.h:219:49: error: no matching function for call to 'NostrIndex::Event::VerifyField<NostrIndex::Fixed32Bytes>(flatbuffers::Verifier&, NostrIndex::Event::FlatBuffersVTableOffset, int) const'
1.916   219 |            VerifyField<NostrIndex::Fixed32Bytes>(verifier, VT_ID, 1) &&
1.916       |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
1.916 In file included from build/golpe.h:9,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = NostrIndex::Fixed32Bytes; flatbuffers::voffset_t = short unsigned int]'
1.916  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.916       |        ^~~~~~~~~~~
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.916 In file included from build/golpe.h:11,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 build/nostr-index_generated.h:220:49: error: no matching function for call to 'NostrIndex::Event::VerifyField<NostrIndex::Fixed32Bytes>(flatbuffers::Verifier&, NostrIndex::Event::FlatBuffersVTableOffset, int) const'
1.916   220 |            VerifyField<NostrIndex::Fixed32Bytes>(verifier, VT_PUBKEY, 1) &&
1.916       |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
1.916 In file included from build/golpe.h:9,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = NostrIndex::Fixed32Bytes; flatbuffers::voffset_t = short unsigned int]'
1.916  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.916       |        ^~~~~~~~~~~
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.916 In file included from build/golpe.h:11,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 build/nostr-index_generated.h:221:33: error: no matching function for call to 'NostrIndex::Event::VerifyField<uint64_t>(flatbuffers::Verifier&, NostrIndex::Event::FlatBuffersVTableOffset, int) const'
1.916   221 |            VerifyField<uint64_t>(verifier, VT_CREATED_AT, 8) &&
1.916       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.916 In file included from build/golpe.h:9,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.916  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.916       |        ^~~~~~~~~~~
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.916 In file included from build/golpe.h:11,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 build/nostr-index_generated.h:222:33: error: no matching function for call to 'NostrIndex::Event::VerifyField<uint64_t>(flatbuffers::Verifier&, NostrIndex::Event::FlatBuffersVTableOffset, int) const'
1.916   222 |            VerifyField<uint64_t>(verifier, VT_KIND, 8) &&
1.916       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1.916 In file included from build/golpe.h:9,
1.916                  from src/apps/relay/RelayServer.h:13,
1.916                  from src/apps/relay/RelayWebsocket.cpp:1:
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.916  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.916       |        ^~~~~~~~~~~
1.916 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.917 In file included from build/golpe.h:11,
1.917                  from src/apps/relay/RelayServer.h:13,
1.917                  from src/apps/relay/RelayWebsocket.cpp:1:
1.917 build/nostr-index_generated.h:229:33: error: no matching function for call to 'NostrIndex::Event::VerifyField<uint64_t>(flatbuffers::Verifier&, NostrIndex::Event::FlatBuffersVTableOffset, int) const'
1.917   229 |            VerifyField<uint64_t>(verifier, VT_EXPIRATION, 8) &&
1.917       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.917 In file included from build/golpe.h:9,
1.917                  from src/apps/relay/RelayServer.h:13,
1.917                  from src/apps/relay/RelayWebsocket.cpp:1:
1.917 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.917  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.917       |        ^~~~~~~~~~~
1.917 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.919 In file included from build/golpe.h:11,
1.919                  from src/apps/relay/RelayServer.h:13,
1.919                  from src/apps/relay/RelayWebsocket.cpp:1:
1.919 build/nostr-index_generated.h: In function 'const flatbuffers::TypeTable* NostrIndex::Fixed32BytesTypeTable()':
1.919 build/nostr-index_generated.h:355:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.919   355 |   };
1.919       |   ^
1.919 build/nostr-index_generated.h: In function 'const flatbuffers::TypeTable* NostrIndex::TagGeneralTypeTable()':
1.919 build/nostr-index_generated.h:370:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.919   370 |   };
1.919       |   ^
1.919 build/nostr-index_generated.h: In function 'const flatbuffers::TypeTable* NostrIndex::TagFixed32TypeTable()':
1.919 build/nostr-index_generated.h:388:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.919   388 |   };
1.919       |   ^
1.920 build/nostr-index_generated.h: In function 'const flatbuffers::TypeTable* NostrIndex::EventTypeTable()':
1.920 build/nostr-index_generated.h:418:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.920   418 |   };
1.920       |   ^
1.920 build/nostr-index_generated.h: In function 'const flatbuffers::TypeTable* NostrIndex::EmptyTypeTable()':
1.920 build/nostr-index_generated.h:425:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.920   425 |   };
1.920       |   ^
1.932 In file included from build/defaultDb.h:17,
1.932                  from build/golpe.h:13,
1.932                  from src/apps/relay/RelayServer.h:13,
1.932                  from src/apps/relay/RelayWebsocket.cpp:1:
1.932 build/defaultDb.schema_generated.h: At global scope:
1.932 build/defaultDb.schema_generated.h:11:41: error: static assertion failed: Non-compatible flatbuffers version included
1.932    11 | static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
1.932       |                                         ^
1.932 build/defaultDb.schema_generated.h: In member function 'bool defaultDb::Event::Verify(flatbuffers::Verifier&) const':
1.932 build/defaultDb.schema_generated.h:70:33: error: no matching function for call to 'defaultDb::Event::VerifyField<uint64_t>(flatbuffers::Verifier&, defaultDb::Event::FlatBuffersVTableOffset, int) const'
1.932    70 |            VerifyField<uint64_t>(verifier, VT_RECEIVEDAT, 8) &&
1.932       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.932 In file included from build/golpe.h:9,
1.932                  from src/apps/relay/RelayServer.h:13,
1.932                  from src/apps/relay/RelayWebsocket.cpp:1:
1.932 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.932  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.932       |        ^~~~~~~~~~~
1.932 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.933 In file included from build/defaultDb.h:17,
1.933                  from build/golpe.h:13,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 build/defaultDb.schema_generated.h:73:21: error: 'class flatbuffers::Verifier' has no member named 'VerifyNestedFlatBuffer'
1.933    73 |            verifier.VerifyNestedFlatBuffer<NostrIndex::Event>(flat(), nullptr) &&
1.933       |                     ^~~~~~~~~~~~~~~~~~~~~~
1.933 build/defaultDb.schema_generated.h:73:61: error: expected primary-expression before '>' token
1.933    73 |            verifier.VerifyNestedFlatBuffer<NostrIndex::Event>(flat(), nullptr) &&
1.933       |                                                             ^
1.933 build/defaultDb.schema_generated.h:74:33: error: no matching function for call to 'defaultDb::Event::VerifyField<uint64_t>(flatbuffers::Verifier&, defaultDb::Event::FlatBuffersVTableOffset, int) const'
1.933    74 |            VerifyField<uint64_t>(verifier, VT_SOURCETYPE, 8) &&
1.933       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.933 In file included from build/golpe.h:9,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset
_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.933  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.933       |        ^~~~~~~~~~~
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.933 In file included from build/defaultDb.h:17,
1.933                  from build/golpe.h:13,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 build/defaultDb.schema_generated.h: In member function 'bool defaultDb::Meta::Verify(flatbuffers::Verifier&) const':
1.933 build/defaultDb.schema_generated.h:155:33: error: no matching function for call to 'defaultDb::Meta::VerifyField<uint64_t>(flatbuffers::Verifier&, defaultDb::Meta::FlatBuffersVTableOffset, int) const'
1.933   155 |            VerifyField<uint64_t>(verifier, VT_DBVERSION, 8) &&
1.933       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1.933 In file included from build/golpe.h:9,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.933  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.933       |        ^~~~~~~~~~~
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.933 In file included from build/defaultDb.h:17,
1.933                  from build/golpe.h:13,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 build/defaultDb.schema_generated.h:156:33: error: no matching function for call to 'defaultDb::Meta::VerifyField<uint64_t>(flatbuffers::Verifier&, defaultDb::Meta::FlatBuffersVTableOffset, int) const'
1.933   156 |            VerifyField<uint64_t>(verifier, VT_ENDIANNESS, 8) &&
1.933       |            ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.933 In file included from build/golpe.h:9,
1.933                  from src/apps/relay/RelayServer.h:13,
1.933                  from src/apps/relay/RelayWebsocket.cpp:1:
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note: candidate: 'bool flatbuffers::Table::VerifyField(const flatbuffers::Verifier&, flatbuffers::voffset_t) const [with T = long unsigned int; flatbuffers::voffset_t = short unsigned int]'
1.933  2498 |   bool VerifyField(const Verifier &verifier, voffset_t field) const {
1.933       |        ^~~~~~~~~~~
1.933 /usr/include/flatbuffers/flatbuffers.h:2498:8: note:   candidate expects 2 arguments, 3 provided
1.935 In file included from build/defaultDb.h:17,
1.935                  from build/golpe.h:13,
1.935                  from src/apps/relay/RelayServer.h:13,
1.935                  from src/apps/relay/RelayWebsocket.cpp:1:
1.935 build/defaultDb.schema_generated.h: In function 'const flatbuffers::TypeTable* defaultDb::EventTypeTable()':
1.935 build/defaultDb.schema_generated.h:293:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.935   293 |   };
1.935       |   ^
1.935 build/defaultDb.schema_generated.h: In function 'const flatbuffers::TypeTable* defaultDb::MetaTypeTable()':
1.935 build/defaultDb.schema_generated.h:308:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.935   308 |   };
1.935       |   ^
1.935 build/defaultDb.schema_generated.h: In function 'const flatbuffers::TypeTable* defaultDb::CompressionDictionaryTypeTable()':
1.935 build/defaultDb.schema_generated.h:321:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.935   321 |   };
1.935       |   ^
1.935 build/defaultDb.schema_generated.h: In function 'const flatbuffers::TypeTable* defaultDb::EmptyTypeTable()':
1.935 build/defaultDb.schema_generated.h:328:3: error: too many initializers for 'const flatbuffers::TypeTable'
1.935   328 |   };
1.935       |   ^
4.084 make: *** [golpe/rules.mk:31: src/apps/relay/RelayWebsocket.o] Error 1
------
ubuntu.Dockerfile:13
--------------------
  11 |     RUN git submodule update --init
  12 |     RUN make setup-golpe
  13 | >>> RUN make -j4
  14 |
  15 |     FROM ubuntu:jammy as runner
--------------------
ERROR: failed to solve: process "/bin/sh -c make -j4" did not complete successfully: exit code: 2

Looks like there's a flatbuffers version mismatch with what jammy offers?

hoytech commented 1 year ago

Hi! Sorry for the delay in responding. I don't know why the FB version has changed. I believe I did test it on Ubuntu jammy before. I will try to look into this soon.

You could try the alpine version, or another community contributed docker here:

https://github.com/hoytech/strfry/issues/72

kroese commented 1 year ago

I am still able to build the Ubuntu version without the above errors, very strange.

raucao commented 5 months ago

I think this issue can be closed.