Giter VIP home page Giter VIP logo

Comments (5)

brendan-ward avatar brendan-ward commented on September 22, 2024 1

Looks like 3.38 is now available in crawshaw.io/sqlite. Will try to get that updated here soon and see if it fixes this.

from mbtileserver.

brendan-ward avatar brendan-ward commented on September 22, 2024 1

@briannafair @leearmstrong this should now be fixed on main as of #166; tests on Ubuntu 22.04 are passing (except for arm64, for other reasons). I'm not ready to release a new version yet, but since you are building from source this is hopefully not an issue.

If your builds still fail, please reopen this issue.

from mbtileserver.

brendan-ward avatar brendan-ward commented on September 22, 2024

We're currently using crawshaw.io/sqlite via the brendan-ward/mbtiles-go package, not mattn/go-sqlite. It looks like crawshaw.io/sqlite is only up to SQLite 3.36.0. We'll have to wait for updates to land there.

If I understand the issue you linked, those are warnings not errors, right? Is the reason that you cannot build with those because you are treating all warnings as errors, or some other local configuration? I don't have easy access to GCC11 at the moment, so please forgive my ignorance there.

from mbtileserver.

leearmstrong avatar leearmstrong commented on September 22, 2024

Yeah this is just a brand new Ubuntu 22.04 install with GCC 11 with no changed settings and then running go install github.com/consbio/mbtileserver@latest

The build actually stops with the following.

# crawshaw.io/sqlite
In file included from /usr/include/string.h:535,
                 from /root/go/pkg/mod/crawshaw.io/[email protected]/./c/sqlite3.c:14113,
                 from /root/go/pkg/mod/crawshaw.io/[email protected]/static.go:19:
In function ‘memcpy’,
    inlined from ‘sqlite3Fts5IndexQuery’ at /root/go/pkg/mod/crawshaw.io/[email protected]/./c/sqlite3.c:220863:18:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~

So yeah, I suspect you are right that by default it is treating warnings as errors and failing to build

from mbtileserver.

briannafair avatar briannafair commented on September 22, 2024

Any workaround for this by chance?

Also on Ubuntu 22.04 and facing this exact build failure (as well as on a Pi via Raspberry Pi OS/Debian).

from mbtileserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.