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

Unable to install gobject-introspection 2.2.2 on OSX 10.9.5 #259

Closed
colindean opened this Issue Oct 14, 2014 · 13 comments

Comments

Projects
None yet
4 participants
@colindean

Ruby 2.1.2.

gem_make.out:

/Users/colin/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
checking for --enable-debug-build option... no
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wout-of-line-declaration option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... no
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for Win32 OS... no
checking for gobject-introspection-1.0... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/colin/.rvm/rubies/ruby-2.1.2/bin/ruby
    --enable-debug-build
    --disable-debug-build
    --with-pkg-config
    --without-pkg-config
    --with-override-variables
    --without-override-variables
/Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:239:in `parse_pc': .pc for libffi doesn't exist. (RuntimeError)
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:181:in `declaration'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:130:in `requires_private'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:312:in `all_required_packages'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:195:in `collect_cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:134:in `cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:196:in `block in collect_cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:195:in `collect'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:195:in `collect_cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:134:in `cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:365:in `cflags'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:416:in `have_package'
    from /Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/glib2-2.2.2/lib/mkmf-gnome2.rb:586:in `required_pkg_config_package'
    from extconf.rb:59:in `<main>'

extconf failed, exit code 1

mkmf.log:

checking for --enable-debug-build option... -------------------- no

--------------------

try_compiler_option: checking for -Wall option to compiler... -------------------- yes

"gcc -o conftest -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe conftest.c  -L. -L/Users/colin/.rvm/rubies/ruby-2.1.2/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector   -arch x86_64   -lruby-static -framework CoreFoundation  -lpthread -ldl -lobjc "
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe  -arch x86_64 -Wall -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Waggregate-return option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall  -arch x86_64 -Waggregate-return -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wcast-align option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return  -arch x86_64 -Wcast-align -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wextra option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align  -arch x86_64 -Wextra -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wformat=2 option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra  -arch x86_64 -Wformat=2 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Winit-self option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2  -arch x86_64 -Winit-self -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wlarger-than-65500 option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self  -arch x86_64 -Wlarger-than-65500 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wmissing-declarations option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500  -arch x86_64 -Wmissing-declarations -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wmissing-format-attribute option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations  -arch x86_64 -Wmissing-format-attribute -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wmissing-include-dirs option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute  -arch x86_64 -Wmissing-include-dirs -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wmissing-noreturn option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs  -arch x86_64 -Wmissing-noreturn -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wmissing-prototypes option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn  -arch x86_64 -Wmissing-prototypes -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wnested-externs option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes  -arch x86_64 -Wnested-externs -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wold-style-definition option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs  -arch x86_64 -Wold-style-definition -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wpacked option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition  -arch x86_64 -Wpacked -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked  -arch x86_64 -Wp,-D_FORTIFY_SOURCE=2 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wpointer-arith option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2  -arch x86_64 -Wpointer-arith -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wswitch-default option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith  -arch x86_64 -Wswitch-default -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wswitch-enum option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default  -arch x86_64 -Wswitch-enum -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wundef option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum  -arch x86_64 -Wundef -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wout-of-line-declaration option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef  -arch x86_64 -Wout-of-line-declaration -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wunsafe-loop-optimizations option to compiler... -------------------- no

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wout-of-line-declaration  -arch x86_64 -Wunsafe-loop-optimizations -Werror -c conftest.c"
error: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wunavailable-declarations'? [-Werror,-Wunknown-warning-option]
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

try_compiler_option: checking for -Wwrite-strings option to compiler... -------------------- yes

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wout-of-line-declaration  -arch x86_64 -Wwrite-strings -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
/* end */

--------------------

have_func: checking for rb_define_alloc_func() in ruby.h... -------------------- yes

"gcc -o conftest -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -I./.gem.20141013-8023-1t5mw6y  -I/Users/colin/.rvm/rubies/ruby-2.1.2/lib/ruby/vendor_ruby/2.1.0/x86_64-darwin13.0  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wout-of-line-declaration -Wwrite-strings conftest.c  -L. -L/Users/colin/.rvm/rubies/ruby-2.1.2/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector   -arch x86_64   -lruby-static -framework CoreFoundation  -lpthread -ldl -lobjc "
conftest.c:7:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
                          ^
1 warning generated.
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <ruby.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_define_alloc_func; return 0; }
/* end */

--------------------

have_func: checking for rb_block_proc() in ruby.h... -------------------- yes

"gcc -o conftest -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -I./.gem.20141013-8023-1t5mw6y  -I/Users/colin/.rvm/rubies/ruby-2.1.2/lib/ruby/vendor_ruby/2.1.0/x86_64-darwin13.0  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wout-of-line-declaration -Wwrite-strings conftest.c  -L. -L/Users/colin/.rvm/rubies/ruby-2.1.2/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector   -arch x86_64   -lruby-static -framework CoreFoundation  -lpthread -ldl -lobjc "
conftest.c:7:27: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char **argv)
                          ^
1 warning generated.
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <ruby.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_block_proc; return 0; }
/* end */

--------------------

"gcc -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/colin/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -I./.gem.20141013-8023-1t5mw6y  -I/Users/colin/.rvm/rubies/ruby-2.1.2/lib/ruby/vendor_ruby/2.1.0/x86_64-darwin13.0  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.6 -pipe -Wall -Waggregate-return -Wcast-align -Wextra -Wformat=2 -Winit-self -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wp,-D_FORTIFY_SOURCE=2 -Wpointer-arith -Wswitch-default -Wswitch-enum -Wundef -Wout-of-line-declaration -Wwrite-strings  -arch x86_64  -c conftest.c"
conftest.c:4:10: fatal error: 'node.h' file not found
#include "node.h"
         ^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include "ruby.h"
4: #include "node.h"
5: int node_attrasgn = (int)NODE_ATTRASGN;
/* end */

setup_win32: checking for Win32 OS... -------------------- no

--------------------

have_package: checking for gobject-introspection-1.0... -------------------- yes

--------------------

I don't know where the -I/Users/travis/.sm/pkg/active/include is coming from in there.

@colindean

This comment has been minimized.

Show comment
Hide comment
@colindean

colindean Oct 14, 2014

Workaround: upgraded to Ruby 2.1.3. I'm installing the latest version of Rabbit, which apparently no longer has a dependency on something that depends on gobject-introspection.

Workaround: upgraded to Ruby 2.1.3. I'm installing the latest version of Rabbit, which apparently no longer has a dependency on something that depends on gobject-introspection.

@colindean

This comment has been minimized.

Show comment
Hide comment
@colindean

colindean Oct 18, 2014

Just got the same error again when updating gems on Ruby 2.1.3. Looks like it's actually coming from a dependency of rabbiter, not rabbit itself.

Just got the same error again when updating gems on Ruby 2.1.3. Looks like it's actually coming from a dependency of rabbiter, not rabbit itself.

@colindean colindean reopened this Oct 18, 2014

@cosmo0920

This comment has been minimized.

Show comment
Hide comment
@cosmo0920

cosmo0920 Oct 18, 2014

Member

Hmm, pkg-config log says that it does not found libffi on your machine:

/Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:239:in `parse_pc': .pc for libffi doesn't exist. (RuntimeError)

I reproduced this error after execute brew uninstall libffi.
It seems lack of libffi dependency.

Could you try to install libffi and then try to install gobject-introspection again?

Member

cosmo0920 commented Oct 18, 2014

Hmm, pkg-config log says that it does not found libffi on your machine:

/Users/colin/.rvm/gems/ruby-2.1.2@talks/gems/pkg-config-1.1.5/lib/pkg-config.rb:239:in `parse_pc': .pc for libffi doesn't exist. (RuntimeError)

I reproduced this error after execute brew uninstall libffi.
It seems lack of libffi dependency.

Could you try to install libffi and then try to install gobject-introspection again?

@colindean

This comment has been minimized.

Show comment
Hide comment
@colindean

colindean Oct 20, 2014

Seems like it was already installed. I reinstalled it, and even recompiled it from source.

No dice. Same error.

Even tried forcing the libffi LDFLAGS

gem install gobject-introspection -v '2.2.2' -- --with-ldflags=-L/usr/local/opt/libffi/lib

Seems like it was already installed. I reinstalled it, and even recompiled it from source.

No dice. Same error.

Even tried forcing the libffi LDFLAGS

gem install gobject-introspection -v '2.2.2' -- --with-ldflags=-L/usr/local/opt/libffi/lib
@kou

This comment has been minimized.

Show comment
Hide comment
@kou

kou Oct 20, 2014

Member

Could you find libffi.pc on your machine? Can you find it at /usr/local/lib/pkgconfig/?

Member

kou commented Oct 20, 2014

Could you find libffi.pc on your machine? Can you find it at /usr/local/lib/pkgconfig/?

@cosmo0920

This comment has been minimized.

Show comment
Hide comment
@cosmo0920

cosmo0920 Oct 20, 2014

Member

In my OS X 10.9 environment, libffi is found at:

  • /usr/local/Cellar/libffi//3.0.13/lib/pkgconfig/libffi.pc
  • /usr/local/opt/libffi/lib/pkgconfig/libffi.pc
Member

cosmo0920 commented Oct 20, 2014

In my OS X 10.9 environment, libffi is found at:

  • /usr/local/Cellar/libffi//3.0.13/lib/pkgconfig/libffi.pc
  • /usr/local/opt/libffi/lib/pkgconfig/libffi.pc
@kou

This comment has been minimized.

Show comment
Hide comment
@kou

kou Oct 20, 2014

Member

Thanks.

It's strange... How do your pkg-config find libffi.pc?

The following command line outputs true?:

% ruby -r pkg-config -e 'p PKGConfig.exist?("libffi")'
Member

kou commented Oct 20, 2014

Thanks.

It's strange... How do your pkg-config find libffi.pc?

The following command line outputs true?:

% ruby -r pkg-config -e 'p PKGConfig.exist?("libffi")'
@cosmo0920

This comment has been minimized.

Show comment
Hide comment
@cosmo0920

cosmo0920 Oct 20, 2014

Member

pkg-config returns true.

% bundle exec ruby -r pkg-config -e 'p PKGConfig.exist?("libffi")'
true
Member

cosmo0920 commented Oct 20, 2014

pkg-config returns true.

% bundle exec ruby -r pkg-config -e 'p PKGConfig.exist?("libffi")'
true
@cosmo0920

This comment has been minimized.

Show comment
Hide comment
@cosmo0920

cosmo0920 Oct 20, 2014

Member

Oops, my .zshenv specify PKG_CONFIG_PATH as follows:

export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH

Hmm, brew info libffi says:

This formula is keg-only.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Some formulae require a newer version of libffi.

It needs to specify PKG_CONFIG_PATH in OS X.

Member

cosmo0920 commented Oct 20, 2014

Oops, my .zshenv specify PKG_CONFIG_PATH as follows:

export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH

Hmm, brew info libffi says:

This formula is keg-only.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Some formulae require a newer version of libffi.

It needs to specify PKG_CONFIG_PATH in OS X.

@kou

This comment has been minimized.

Show comment
Hide comment
@kou

kou Oct 20, 2014

Member

@colindean Could you try PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig gem install gobject-introspection?

Member

kou commented Oct 20, 2014

@colindean Could you try PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig gem install gobject-introspection?

@Sevyls

This comment has been minimized.

Show comment
Hide comment
@Sevyls

Sevyls Apr 26, 2015

@kou this worked for me on OS X 10.10 with rvm + ruby 2.2.2 installing with gem install gobject-introspection -v '2.2.5'

Sevyls commented Apr 26, 2015

@kou this worked for me on OS X 10.10 with rvm + ruby 2.2.2 installing with gem install gobject-introspection -v '2.2.5'

@Sevyls

This comment has been minimized.

Show comment
Hide comment
@Sevyls

Sevyls Apr 26, 2015

same goes for installing gio2, without PKG_CONFIG_PATH it does not install, which results in the same error message "fatal error: 'node.h' file not found"

Sevyls commented Apr 26, 2015

same goes for installing gio2, without PKG_CONFIG_PATH it does not install, which results in the same error message "fatal error: 'node.h' file not found"

@kou

This comment has been minimized.

Show comment
Hide comment
@kou

kou Apr 27, 2015

Member

Please use PKG_CONFIG_PATH for gio2. It also uses GObject Introspection. Other gems such as gtk3 also needs PKG_CONFIG_PATH.

Member

kou commented Apr 27, 2015

Please use PKG_CONFIG_PATH for gio2. It also uses GObject Introspection. Other gems such as gtk3 also needs PKG_CONFIG_PATH.

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