You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/akshet/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150410-2046-w1au5.rb extconf.rb
checking for ruby/thread.h... 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/akshet/.rvm/rubies/ruby-2.2.1/bin/$(RUBY_BASE_NAME)
extconf.rb:156:in `main': C++11 is not supported by the compiler. (RuntimeError)
from extconf.rb:179:in `<main>'
extconf failed, exit code 1
mkmf.log
have_header: checking for ruby/thread.h... -------------------- yes
"gcc -o conftest -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe conftest.c -L. -L/Users/akshet/.rvm/rubies/ruby-2.2.1/lib -L. -L/Users/haven/.sm/pkg/active/lib -fPIC -Bstatic -lz -fstack-protector -arch x86_64 -lruby-static -framework CoreFoundation -lpthread -ldl -lobjc "
ld: warning: directory not found for option '-L/Users/haven/.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 -E -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby/thread.h>
/* end */
--------------------
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe -arch x86_64 -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4: #include <ruby/thread.h>
5:
6: #include <stdio.h>
7:
8: int main(int argc, char *argv[])
9: {
10: printf("%p\n", rb_thread_call_without_gvl);
11: return 0;
12: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe -arch x86_64 -c conftest.c"
conftest.c:6:20: error: use of undeclared identifier 'nullptr'
printf("%p\n", nullptr);
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <stdio.h>
4: int main(int argc, char *argv[])
5: {
6: printf("%p\n", nullptr);
7: return 0;
8: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -x c++ -c conftest.c"
In file included from conftest.c:3:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:477:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found
#include <__debug>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -c conftest.c"
conftest.c:3:10: fatal error: 'functional' file not found
#include <functional>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=c++11 -x c++ -c conftest.c"
In file included from conftest.c:3:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:477:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found
#include <__debug>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=c++11 -c conftest.c"
error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=gnu++11 -x c++ -c conftest.c"
In file included from conftest.c:3:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:477:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found
#include <__debug>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=gnu++11 -c conftest.c"
error: invalid argument '-std=gnu++11' not allowed with 'C/ObjC'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=c++0x -x c++ -c conftest.c"
In file included from conftest.c:3:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:477:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found
#include <__debug>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=c++0x -c conftest.c"
error: invalid argument '-std=c++0x' not allowed with 'C/ObjC'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=gnu++0x -x c++ -c conftest.c"
In file included from conftest.c:3:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:477:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '__debug' file not found
#include <__debug>
^
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
"gcc -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/x86_64-darwin14 -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/backward -I/Users/akshet/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/haven/.sm/pkg/active/include -fPIC -pipe -arch x86_64 -std=gnu++0x -c conftest.c"
error: invalid argument '-std=gnu++0x' not allowed with 'C/ObjC'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <functional>
4: #include <algorithm>
5: #include <array>
6: #include <iostream>
7:
8: #include <ruby.h>
9:
10: void test()
11: {
12: int array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
13: const int size = sizeof(array)/sizeof(array[0]);
14: std::array<int, size> var_list;
15:
16: std::function<int (int, int)> convert = [&](int arg1, int arg2){
17: return arg1 * arg2;
18: };
19:
20: const int value = 10;
21:
22: std::transform(array, array + size, var_list.begin(), [&](int arg){
23: return convert(arg, value);
24: });
25:
26: std::for_each(var_list.begin(), var_list.end(), [](int num){ std::cout << num << std::endl; });
27: }
/* end */
The text was updated successfully, but these errors were encountered:
akshetpandey
changed the title
Gem fails to compile on OSX 10.10.3, XCode 6.3, Ruby 2.2.1
Gem fails to compile on OSX 10.10.3, XCode 6.3
Apr 10, 2015
With the following error messages:
gem_make.out
mkmf.log
The text was updated successfully, but these errors were encountered: