Skip to content

Sharp fails to build #1

Description

@gmaclennan

react-native run-android fails with the following error:

In file included from ../src/common.cc:25:
In file included from /usr/local/include/vips/vips8:35:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib-object.h:23:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/gobject/gbinding.h:28:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib.h:30:
In file included from /usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/galloca.h:32:
/usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/gtypes.h:423:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size
  G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/glib/2.56.0/include/glib-2.0/glib/gmacros.h:241:103: note: expanded from macro 'G_STATIC_ASSERT'
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
                                                                                                      ^~~~~~~~~~~~~~~
../src/common.cc:374:25: warning: comparison 'int' > 2147483647 is always false [-Wtautological-constant-compare]
      if (image.width() > 2147483647 || image.height() > 2147483647) {
          ~~~~~~~~~~~~~ ^ ~~~~~~~~~~
../src/common.cc:374:56: warning: comparison 'int' > 2147483647 is always false [-Wtautological-constant-compare]
      if (image.width() > 2147483647 || image.height() > 2147483647) {
                                        ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
2 warnings and 1 error generated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions