-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
I tried "make" on my VPS (which is 32-bit), and got all kinds of errors.
sander@haring:~/git/halfempty$ make
Checking for glib-2.0...ok
gcc -Wall -std=gnu99 -O0 -ggdb3 -fPIC -Wno-format-zero-length -Wno-unused-parameter -UNDEBUG -UG_DISABLE_ASSERT `getconf LFS_CFLAGS` `pkg-config --cflags glib-2.0` -D_GNU_SOURCE -c -o halfempty.o halfempty.c
halfempty.c:52:27: error: ‘G_OPTION_FLAG_NONE’ undeclared here (not in a function)
{ "num-threads", 'P', G_OPTION_FLAG_NONE, G_OPTION_ARG_INT, &kProcessThreads, "How many threads to use (default=ncores+1).", "threads" },
^
halfempty.c:60:5: error: initializer element is not constant
{ "generate-dot", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &kGenerateDotFile, "Generate a DOT file to display the tree status (default=off).", NULL },
^
"make" went OK on 64-bit Intel and 64-bit ARM.
So I guess halfempty is 32-bit only?
If so: I created 3 lines of code in Makefile to check for that. Do you want a PR for that?
~/git/halfempty$ make
Checking for 64-bit...ok
Checking for glib-2.0...ok
gcc -Wall -std=gnu99 -O0 -ggdb3 -fPIC -Wno-format-zero-length -Wno-unused-parameter -UNDEBUG -UG_DISABLE_ASSERT `getconf LFS_CFLAGS` `pkg-config --cflags glib-2.0` -D_GNU_SOURCE -c -o halfempty.o halfempty.c
and
sander@haring:~/git/halfempty$ make
Checking for 64-bit...Not 64-bit
make: *** [check] Error 1
Metadata
Metadata
Assignees
Labels
No labels