[CWB] Installing cwb from SVN in Mac OS Sierra

José Manuel Martínez Martínez chozelinek at gmail.com
Sun Oct 23 18:37:31 CEST 2016


Dear all,

I am trying to install in my Mac the last version in trunk (903).

I managed to do it in the past. However, this time it seems there is an 
error.

I am using a MacOS Sierra 10.12

I am using homebrew and I have installed:

- pkg-config: stable 0.29.1
- glib: stable 2.50.1
- pcre: stable 8.39
- readline: stable 7.0

I run the shell commands. But `make all` ends with an error. See below.


Any ideas? Is this a know issue? Which version from SVN could I take 
that is know to work with MacOS Sierra?

Best!


jmm

## Error message


$ make all
--------------------------------- BUILDING CORPUS LIBRARY (CL)
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C cl
rm -f globals.o
/usr/bin/gcc -c  -o globals.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:28 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  globals.c
rm -f macros.o
/usr/bin/gcc -c  -o macros.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:28 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  macros.c
macros.c:404:12: warning: format string is not a string literal
       (potentially insecure) [-Wformat-security]
     printf(label);
            ^~~~~
macros.c:404:12: note: treat the string as an argument to avoid this
     printf(label);
            ^
            "%s",
1 warning generated.
macros.c:404:12: warning: format string is not a string literal
       (potentially insecure) [-Wformat-security]
     printf(label);
            ^~~~~
macros.c:404:12: note: treat the string as an argument to avoid this
     printf(label);
            ^
            "%s",
1 warning generated.
rm -f list.o
/usr/bin/gcc -c  -o list.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:29 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  list.c
rm -f lexhash.o
/usr/bin/gcc -c  -o lexhash.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:29 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  lexhash.c
rm -f ngram-hash.o
/usr/bin/gcc -c  -o ngram-hash.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:29 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  ngram-hash.c
rm -f bitfields.o
/usr/bin/gcc -c  -o bitfields.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:29 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  bitfields.c
rm -f storage.o
/usr/bin/gcc -c  -o storage.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:29 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  storage.c
rm -f fileutils.o
/usr/bin/gcc -c  -o fileutils.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:30 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  fileutils.c
rm -f special-chars.o
/usr/bin/gcc -c  -o special-chars.o -Wall -O3 -arch x86_64 -arch i386 
-march=core2 -mtune=core2   -DUSE_TERMCAP -DUSE_READLINE 
-DREGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.10/share/cwb/registry"\" 
-DCOMPILE_DATE=\""Sun Oct 23 18:35:30 CEST 2016"\" -DVERSION=\"3.4.10\" 
-I/usr/local/Cellar/glib/2.50.1/include/glib-2.0 
-I/usr/local/Cellar/glib/2.50.1/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.39/include 
-I/usr/local/Cellar/pcre/8.39/include 
-I'/usr/local/Cellar/readline/7.0/include'  special-chars.c
In file included from special-chars.c:24:
In file included from 
/usr/local/Cellar/glib/2.50.1/include/glib-2.0/glib.h:30:
In file included from 
/usr/local/Cellar/glib/2.50.1/include/glib-2.0/glib/galloca.h:32:
/usr/local/Cellar/glib/2.50.1/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.50.1/include/glib-2.0/glib/gmacros.h:232:103: 
note:
       expanded from macro 'G_STATIC_ASSERT'
   ...(_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : 
-1] G_GN...
^~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [special-chars.o] Error 1
make: *** [all] Error 2




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20161023/797d7d8e/attachment.html>


More information about the CWB mailing list