Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux compilation x86 ERROR with the given GMAKE #49

Closed
PicosePablo opened this issue May 30, 2018 · 1 comment
Closed

Linux compilation x86 ERROR with the given GMAKE #49

PicosePablo opened this issue May 30, 2018 · 1 comment
Labels

Comments

@PicosePablo
Copy link

Building with the configuration= debug|release x86 in linux cause this error:
/usr/include/glib-2.0/glib/gtypes.h: In function ‘_GLIB_CHECKED_ADD_U64’:
/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^
/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro ‘G_PASTE_ARGS’
#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
^~~~~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro ‘G_PASTE’
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (GStaticAssertCompileTimeAssertion, COUNTER)[(expr) ? 1 : -1] G_GNUC_UNUSED
^~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro ‘G_STATIC_ASSERT’
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^~~~~~~~~~~~~~~
gmake[1]: *** [nfd.make:186: ../obj/x86/Debug/nfd/nfd_gtk.o] Error 1
gmake: *** [Makefile:51: nfd] Error 2

@mlabbe mlabbe added the linux label Dec 30, 2018
@mlabbe
Copy link
Owner

mlabbe commented Dec 31, 2018

You are attempting to build against glib headers that are not compatible with your architecture.

make help shows how to specify the supported architectures. make config=release_x64 is probably what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants