graphql-libgraphqlparser-ruby
graphql-libgraphqlparser-ruby copied to clipboard
Link failure on OSX
Compiling from a submodule is great, but for some reason be rake
fails on my machine:
~/code/graphql-libgraphqlparser-ruby $ be rake
mkdir -p tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
cd tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/ruby -I. ../../../../ext/graphql_libgraphqlparser_ext/extconf.rb
checking for cmake... yes
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find BISON: Found unsuitable version "2.3", but required is at least "3" (found /usr/bin/bison)
CMake Warning at python/CMakeLists.txt:13 (MESSAGE):
ctypesgen.py not found; install with pip or easy_install if you want to run
pythontest.py.
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
graphqlparser
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/libgraphqlparser
[ 5%] Linking CXX shared library libgraphqlparser.dylib
[ 90%] Built target graphqlparser
[ 95%] Linking CXX executable dump_json_ast
[100%] Built target dump_json_ast
[ 90%] Built target graphqlparser
[100%] Built target dump_json_ast
Install the project...
-- Install configuration: ""
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/Ast.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/JsonVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/lexer.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/location.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/parser.tab.hpp
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/position.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/stack.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/syntaxdefs.h
-- Installing: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/libgraphqlparser.dylib
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/pkgconfig/libgraphqlparser.pc
checking for main() in -lgraphqlparser... yes
checking for c/GraphQLParser.h... yes
creating Makefile
cd -
cd tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
/usr/bin/make
compiling ../../../../ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.c
compiling ../../../../ext/graphql_libgraphqlparser_ext/visitor_functions.c
linking shared-object graphql_libgraphqlparser_ext.bundle
cd -
mkdir -p tmp/x86_64-darwin16/stage/lib
install -c tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2/graphql_libgraphqlparser_ext.bundle lib/graphql_libgraphqlparser_ext.bundle
cp tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2/graphql_libgraphqlparser_ext.bundle tmp/x86_64-darwin16/stage/lib/graphql_libgraphqlparser_ext.bundle
/Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql/libgraphqlparser.rb:5:in `require_relative': dlopen(/Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle, 9): Library not loaded: libgraphqlparser.dylib (LoadError)
Referenced from: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle
Reason: image not found - /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql/libgraphqlparser.rb:5:in `<top (required)>'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/test_helper.rb:2:in `require'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/test_helper.rb:2:in `<top (required)>'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/graphql/libgraphqlparser_test.rb:1:in `require'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/graphql/libgraphqlparser_test.rb:1:in `<top (required)>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:10:in `require'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:9:in `each'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:4:in `select'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -I"lib:test:lib" -I"/Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib" "/Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" ]
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/bundle:22:in `load'
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/bundle:22:in `<main>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
I want to get to the bottom of it and cut a version 😁
FWIW recompiling with be rake
again fails the same way:
~/code/graphql-libgraphqlparser-ruby $ be rake
mkdir -p tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
cd tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/ruby -I. ../../../../ext/graphql_libgraphqlparser_ext/extconf.rb
checking for cmake... yes
-- Could NOT find BISON: Found unsuitable version "2.3", but required is at least "3" (found /usr/bin/bison)
CMake Warning at python/CMakeLists.txt:13 (MESSAGE):
ctypesgen.py not found; install with pip or easy_install if you want to run
pythontest.py.
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
graphqlparser
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/libgraphqlparser
[ 90%] Built target graphqlparser
[100%] Built target dump_json_ast
[ 90%] Built target graphqlparser
[100%] Built target dump_json_ast
Install the project...
-- Install configuration: ""
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/Ast.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstNode.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/GraphQLParser.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/JsonVisitor.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/lexer.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/location.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/parser.tab.hpp
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/position.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/stack.hh
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/syntaxdefs.h
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/libgraphqlparser.dylib
-- Up-to-date: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/pkgconfig/libgraphqlparser.pc
checking for main() in -lgraphqlparser... yes
checking for c/GraphQLParser.h... yes
creating Makefile
cd -
cd tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2
/usr/bin/make
compiling ../../../../ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.c
compiling ../../../../ext/graphql_libgraphqlparser_ext/visitor_functions.c
linking shared-object graphql_libgraphqlparser_ext.bundle
cd -
mkdir -p tmp/x86_64-darwin16/stage/lib
install -c tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2/graphql_libgraphqlparser_ext.bundle lib/graphql_libgraphqlparser_ext.bundle
cp tmp/x86_64-darwin16/graphql_libgraphqlparser_ext/2.3.2/graphql_libgraphqlparser_ext.bundle tmp/x86_64-darwin16/stage/lib/graphql_libgraphqlparser_ext.bundle
/Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql/libgraphqlparser.rb:5:in `require_relative': dlopen(/Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle, 9): Library not loaded: libgraphqlparser.dylib (LoadError)
Referenced from: /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle
Reason: image not found - /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql_libgraphqlparser_ext.bundle
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/lib/graphql/libgraphqlparser.rb:5:in `<top (required)>'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/test_helper.rb:2:in `require'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/test_helper.rb:2:in `<top (required)>'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/graphql/libgraphqlparser_test.rb:1:in `require'
from /Users/rmosolgo/code/graphql-libgraphqlparser-ruby/test/graphql/libgraphqlparser_test.rb:1:in `<top (required)>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:10:in `require'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:9:in `each'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:4:in `select'
from /Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -I"lib:test:lib" -I"/Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib" "/Users/rmosolgo/.rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" ]
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/bundle:22:in `load'
/Users/rmosolgo/.rbenv/versions/2.3.2/bin/bundle:22:in `<main>'
Tasks: TOP => default => test
(See full trace by running task with --trace)
Here's what be rake
generated for me:
(Mainly lib/graphql_libgraphqlparser_ext.bundle
)
Somehow everything runs smoothly here:
$ bundle exec rake
mkdir -p tmp/x86_64-darwin15/graphql_libgraphqlparser_ext/2.3.0
cd tmp/x86_64-darwin15/graphql_libgraphqlparser_ext/2.3.0
/Users/xuorig/.rbenv/versions/2.3.0/bin/ruby -I. ../../../../ext/graphql_libgraphqlparser_ext/extconf.rb
checking for cmake... yes
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/local/bin/python2 (found suitable version "2.7.11", minimum required is "2")
-- Could NOT find BISON: Found unsuitable version "2.3", but required is at least "3" (found /usr/bin/bison)
-- Found FLEX: /usr/bin/flex (found version "2.5.35")
CMake Warning at python/CMakeLists.txt:13 (MESSAGE):
ctypesgen.py not found; install with pip or easy_install if you want to run
pythontest.py.
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
graphqlparser
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/libgraphqlparser
[ 5%] Generating Ast.h
[ 10%] Generating Ast.cpp
[ 15%] Generating AstVisitor.h
[ 20%] Generating c/GraphQLAst.h
[ 25%] Generating c/GraphQLAst.cpp
[ 30%] Generating c/GraphQLAstForEachConcreteType.h
Scanning dependencies of target graphqlparser
[ 35%] Building CXX object CMakeFiles/graphqlparser.dir/JsonVisitor.cpp.o
[ 40%] Building CXX object CMakeFiles/graphqlparser.dir/Ast.cpp.o
[ 45%] Building CXX object CMakeFiles/graphqlparser.dir/c/GraphQLAst.cpp.o
[ 50%] Building CXX object CMakeFiles/graphqlparser.dir/c/GraphQLAstNode.cpp.o
[ 55%] Building CXX object CMakeFiles/graphqlparser.dir/c/GraphQLAstToJSON.cpp.o
[ 60%] Building CXX object CMakeFiles/graphqlparser.dir/c/GraphQLAstVisitor.cpp.o
[ 65%] Building CXX object CMakeFiles/graphqlparser.dir/c/GraphQLParser.cpp.o
[ 70%] Building CXX object CMakeFiles/graphqlparser.dir/parser.tab.cpp.o
[ 75%] Building CXX object CMakeFiles/graphqlparser.dir/lexer.cpp.o
[ 80%] Building CXX object CMakeFiles/graphqlparser.dir/GraphQLParser.cpp.o
[ 85%] Linking CXX shared library libgraphqlparser.dylib
[ 90%] Built target graphqlparser
Scanning dependencies of target dump_json_ast
[ 95%] Building CXX object CMakeFiles/dump_json_ast.dir/dump_json_ast.cpp.o
[100%] Linking CXX executable dump_json_ast
[100%] Built target dump_json_ast
[ 90%] Built target graphqlparser
[100%] Built target dump_json_ast
Install the project...
-- Install configuration: ""
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAst.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstForEachConcreteType.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstNode.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstToJSON.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLAstVisitor.h
-- Up-to-date: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/c/GraphQLParser.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/Ast.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstNode.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/AstVisitor.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/GraphQLParser.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/JsonVisitor.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/lexer.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/location.hh
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/parser.tab.hpp
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/position.hh
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/stack.hh
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/include/graphqlparser/syntaxdefs.h
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/libgraphqlparser.dylib
-- Installing: /Users/xuorig/Code/graphql-libgraphqlparser-ruby/ext/graphql_libgraphqlparser_ext/../libgraphqlparser/build/lib/pkgconfig/libgraphqlparser.pc
checking for main() in -lgraphqlparser... yes
checking for c/GraphQLParser.h... yes
creating Makefile
cd -
cd tmp/x86_64-darwin15/graphql_libgraphqlparser_ext/2.3.0
/usr/bin/make
compiling ../../../../ext/graphql_libgraphqlparser_ext/graphql_libgraphqlparser_ext.c
compiling ../../../../ext/graphql_libgraphqlparser_ext/visitor_functions.c
linking shared-object graphql_libgraphqlparser_ext.bundle
cd -
mkdir -p tmp/x86_64-darwin15/stage/lib
install -c tmp/x86_64-darwin15/graphql_libgraphqlparser_ext/2.3.0/graphql_libgraphqlparser_ext.bundle lib/graphql_libgraphqlparser_ext.bundle
cp tmp/x86_64-darwin15/graphql_libgraphqlparser_ext/2.3.0/graphql_libgraphqlparser_ext.bundle tmp/x86_64-darwin15/stage/lib/graphql_libgraphqlparser_ext.bundle
Started with run options --seed 32314
It's working for MA and myself because we've brew install libgraphqlparser
at some point so it can find the dylib in the normal /usr/local/lib/
path. Without that, it can't seem to find the one that gets built into ext/libgraphqlparser/
. https://stackoverflow.com/a/22560206/3179857 is relevant.
Running ln -s ext/libgraphqlparser/build/lib/libgraphqlparser.dylib
from the root of the repo isn't particularly proper but totally works. I'm out of time to dig in further at this point.
Essentially we need to use install_name_tool to fix the path for libgraphqlparser.dylib. I do not have a mac so this is hard to test, but maybe someone can give it a whirl? should be easy. If not, I can attempt it when I get around a mac at some point.
http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/