-
Notifications
You must be signed in to change notification settings - Fork 12
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
Link failure on OSX #25
Comments
FWIW recompiling with
|
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 |
Running |
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/ |
Compiling from a submodule is great, but for some reason
be rake
fails on my machine:I want to get to the bottom of it and cut a version 😁
The text was updated successfully, but these errors were encountered: