ndtypes 0.2.0dev5 → 0.2.0dev6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +12 -0
  3. data/Rakefile +8 -0
  4. data/ext/ruby_ndtypes/GPATH +0 -0
  5. data/ext/ruby_ndtypes/GRTAGS +0 -0
  6. data/ext/ruby_ndtypes/GTAGS +0 -0
  7. data/ext/ruby_ndtypes/extconf.rb +1 -1
  8. data/ext/ruby_ndtypes/include/ndtypes.h +231 -122
  9. data/ext/ruby_ndtypes/include/ruby_ndtypes.h +1 -1
  10. data/ext/ruby_ndtypes/lib/libndtypes.a +0 -0
  11. data/ext/ruby_ndtypes/lib/libndtypes.so.0.2.0dev3 +0 -0
  12. data/ext/ruby_ndtypes/ndtypes/Makefile +87 -0
  13. data/ext/ruby_ndtypes/ndtypes/config.h +68 -0
  14. data/ext/ruby_ndtypes/ndtypes/config.log +477 -0
  15. data/ext/ruby_ndtypes/ndtypes/config.status +1027 -0
  16. data/ext/ruby_ndtypes/ndtypes/doc/_static/style.css +7 -0
  17. data/ext/ruby_ndtypes/ndtypes/doc/_templates/layout.html +2 -0
  18. data/ext/ruby_ndtypes/ndtypes/doc/conf.py +40 -4
  19. data/ext/ruby_ndtypes/ndtypes/doc/images/xndlogo.png +0 -0
  20. data/ext/ruby_ndtypes/ndtypes/doc/ndtypes/types.rst +1 -1
  21. data/ext/ruby_ndtypes/ndtypes/doc/requirements.txt +2 -0
  22. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile +287 -0
  23. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.in +20 -4
  24. data/ext/ruby_ndtypes/ndtypes/libndtypes/Makefile.vc +22 -3
  25. data/ext/ruby_ndtypes/ndtypes/libndtypes/alloc.c +1 -1
  26. data/ext/ruby_ndtypes/ndtypes/libndtypes/alloc.o +0 -0
  27. data/ext/ruby_ndtypes/ndtypes/libndtypes/attr.o +0 -0
  28. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile +73 -0
  29. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.c +246 -229
  30. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.h +15 -11
  31. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.o +0 -0
  32. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bpgrammar.y +38 -28
  33. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.c +91 -91
  34. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.h +1 -1
  35. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.l +4 -3
  36. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/bplexer.o +0 -0
  37. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.c +8 -7
  38. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/export.o +0 -0
  39. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.c +2 -2
  40. data/ext/ruby_ndtypes/ndtypes/libndtypes/compat/import.o +0 -0
  41. data/ext/ruby_ndtypes/ndtypes/libndtypes/context.o +0 -0
  42. data/ext/ruby_ndtypes/ndtypes/libndtypes/copy.c +263 -182
  43. data/ext/ruby_ndtypes/ndtypes/libndtypes/copy.o +0 -0
  44. data/ext/ruby_ndtypes/ndtypes/libndtypes/encodings.o +0 -0
  45. data/ext/ruby_ndtypes/ndtypes/libndtypes/equal.c +67 -7
  46. data/ext/ruby_ndtypes/ndtypes/libndtypes/equal.o +0 -0
  47. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.c +1112 -1000
  48. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.h +69 -58
  49. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.o +0 -0
  50. data/ext/ruby_ndtypes/ndtypes/libndtypes/grammar.y +150 -99
  51. data/ext/ruby_ndtypes/ndtypes/libndtypes/io.c +185 -15
  52. data/ext/ruby_ndtypes/ndtypes/libndtypes/io.o +0 -0
  53. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.c +301 -276
  54. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.h +1 -1
  55. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.l +9 -4
  56. data/ext/ruby_ndtypes/ndtypes/libndtypes/lexer.o +0 -0
  57. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.a +0 -0
  58. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so +1 -0
  59. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0 +1 -0
  60. data/ext/ruby_ndtypes/ndtypes/libndtypes/libndtypes.so.0.2.0dev3 +0 -0
  61. data/ext/ruby_ndtypes/ndtypes/libndtypes/match.c +729 -228
  62. data/ext/ruby_ndtypes/ndtypes/libndtypes/match.o +0 -0
  63. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.c +768 -403
  64. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h +1002 -0
  65. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.h.in +231 -122
  66. data/ext/ruby_ndtypes/ndtypes/libndtypes/ndtypes.o +0 -0
  67. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.c +176 -84
  68. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.h +26 -14
  69. data/ext/ruby_ndtypes/ndtypes/libndtypes/parsefuncs.o +0 -0
  70. data/ext/ruby_ndtypes/ndtypes/libndtypes/parser.c +57 -35
  71. data/ext/ruby_ndtypes/ndtypes/libndtypes/parser.o +0 -0
  72. data/ext/ruby_ndtypes/ndtypes/libndtypes/primitive.c +420 -0
  73. data/ext/ruby_ndtypes/ndtypes/libndtypes/primitive.o +0 -0
  74. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.c +8 -8
  75. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.h +1 -1
  76. data/ext/ruby_ndtypes/ndtypes/libndtypes/seq.o +0 -0
  77. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/Makefile +48 -0
  78. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.c +200 -116
  79. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/deserialize.o +0 -0
  80. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.c +46 -4
  81. data/ext/ruby_ndtypes/ndtypes/libndtypes/serialize/serialize.o +0 -0
  82. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.c +58 -27
  83. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.h +1 -1
  84. data/ext/ruby_ndtypes/ndtypes/libndtypes/substitute.o +0 -0
  85. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.c +3 -5
  86. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.h +12 -4
  87. data/ext/ruby_ndtypes/ndtypes/libndtypes/symtable.o +0 -0
  88. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile +55 -0
  89. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.in +8 -8
  90. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/Makefile.vc +5 -5
  91. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/runtest.c +274 -172
  92. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test.h +24 -4
  93. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_array.c +2 -2
  94. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_buffer.c +14 -14
  95. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_match.c +32 -30
  96. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse.c +37 -0
  97. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse_error.c +36 -0
  98. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_parse_roundtrip.c +16 -0
  99. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_record.c +5 -5
  100. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_typecheck.c +706 -253
  101. data/ext/ruby_ndtypes/ndtypes/libndtypes/tests/test_unify.c +132 -0
  102. data/ext/ruby_ndtypes/ndtypes/libndtypes/unify.c +703 -0
  103. data/ext/ruby_ndtypes/ndtypes/libndtypes/unify.o +0 -0
  104. data/ext/ruby_ndtypes/ndtypes/libndtypes/util.c +335 -127
  105. data/ext/ruby_ndtypes/ndtypes/libndtypes/util.o +0 -0
  106. data/ext/ruby_ndtypes/ndtypes/libndtypes/values.c +2 -2
  107. data/ext/ruby_ndtypes/ndtypes/libndtypes/values.o +0 -0
  108. data/ext/ruby_ndtypes/ndtypes/python/ndt_randtype.py +88 -71
  109. data/ext/ruby_ndtypes/ndtypes/python/ndt_support.py +0 -1
  110. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/__init__.py +10 -13
  111. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/_ndtypes.c +395 -314
  112. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.a +0 -0
  113. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so +1 -0
  114. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0 +1 -0
  115. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/libndtypes.so.0.2.0dev3 +0 -0
  116. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/ndtypes.h +1002 -0
  117. data/ext/ruby_ndtypes/ndtypes/python/ndtypes/pyndtypes.h +15 -33
  118. data/ext/ruby_ndtypes/ndtypes/python/test_ndtypes.py +340 -132
  119. data/ext/ruby_ndtypes/ndtypes/setup.py +11 -2
  120. data/ext/ruby_ndtypes/ruby_ndtypes.c +364 -241
  121. data/ext/ruby_ndtypes/ruby_ndtypes.h +1 -1
  122. data/ext/ruby_ndtypes/ruby_ndtypes_internal.h +0 -1
  123. data/lib/ndtypes.rb +11 -0
  124. data/lib/ndtypes/version.rb +2 -2
  125. data/lib/ruby_ndtypes.so +0 -0
  126. data/ndtypes.gemspec +3 -0
  127. data/spec/ndtypes_spec.rb +6 -0
  128. metadata +98 -4
  129. data/ext/ruby_ndtypes/gc_guard.c +0 -36
  130. data/ext/ruby_ndtypes/gc_guard.h +0 -12
@@ -26,7 +26,7 @@ const ndt_t * rb_ndtypes_const_ndt(VALUE ndt);
26
26
  VALUE rb_ndtypes_move_subtree(VALUE src, ndt_t *t);
27
27
  VALUE rb_ndtypes_from_object(VALUE type);
28
28
  VALUE rb_ndtypes_set_error(ndt_context_t *ctx);
29
- VALUE rb_ndtypes_from_type(ndt_t *type);
29
+ VALUE rb_ndtypes_from_type(const ndt_t *type);
30
30
 
31
31
  #define INT2BOOL(t) (t ? Qtrue : Qfalse)
32
32
 
Binary file
@@ -0,0 +1,87 @@
1
+
2
+ # ==============================================================================
3
+ # Unix Makefile for libndtypes
4
+ # ==============================================================================
5
+
6
+
7
+ PACKAGE_TARNAME = ndtypes
8
+ LIBSTATIC = libndtypes.a
9
+ LIBNAME = libndtypes.so
10
+ LIBSONAME = libndtypes.so.0
11
+ LIBSHARED = libndtypes.so.0.2.0dev3
12
+ INSTALL = /usr/bin/install -c
13
+
14
+ prefix = /home/sameer/gitrepos/xnd-ruby/ndtypes/ext/ruby_ndtypes
15
+ exec_prefix = ${prefix}
16
+ includedir = ${prefix}/include
17
+ libdir = ${exec_prefix}/lib
18
+ datarootdir = ${prefix}/share
19
+ docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
20
+
21
+
22
+ default: FORCE
23
+ cd libndtypes && $(MAKE)
24
+ $(INSTALL) -m 644 libndtypes/ndtypes.h python/ndtypes
25
+ $(INSTALL) -m 644 libndtypes/$(LIBSTATIC) python/ndtypes
26
+ $(INSTALL) -m 755 libndtypes/$(LIBSHARED) python/ndtypes
27
+ cd python/ndtypes && ln -sf $(LIBSHARED) $(LIBSONAME) && ln -sf $(LIBSHARED) $(LIBNAME)
28
+
29
+ parser: FORCE
30
+ cd libndtypes && $(MAKE) parser
31
+ cd libndtypes/compat && $(MAKE) parser
32
+
33
+ runtest: default
34
+ cd libndtypes/tests && $(MAKE)
35
+
36
+ check: runtest
37
+ cd libndtypes/tests && ./runtest
38
+ @printf "\n\n"
39
+ cd libndtypes/tests && LD_LIBRARY_PATH=.. ./runtest_shared
40
+
41
+ memcheck: runtest
42
+ cd libndtypes/tests && valgrind --leak-check=full --show-leak-kinds=all --suppressions=valgrind.supp ./runtest
43
+ @printf "\n\n"
44
+ cd libndtypes/tests && LD_LIBRARY_PATH=.. valgrind --leak-check=full --show-leak-kinds=all --suppressions=valgrind.supp ./runtest_shared
45
+
46
+ coverage: FORCE
47
+ cd libndtypes && $(MAKE) coverage
48
+ cd libndtypes/tests && $(MAKE) coverage
49
+ cd libndtypes/tests && LD_LIBRARY_PATH=.. ./runtest
50
+ cd libndtypes && for file in *.c; do gcov -l "$$file" > /dev/null 2>&1; done
51
+
52
+ install: install_libs
53
+
54
+ install_libs: FORCE
55
+ $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)
56
+ $(INSTALL) -m 644 libndtypes/ndtypes.h $(DESTDIR)$(includedir)
57
+ $(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
58
+ $(INSTALL) -m 644 libndtypes/$(LIBSTATIC) $(DESTDIR)$(libdir)
59
+ $(INSTALL) -m 755 libndtypes/$(LIBSHARED) $(DESTDIR)$(libdir)
60
+ cd $(DESTDIR)$(libdir) && ln -sf $(LIBSHARED) $(LIBSONAME) && ln -sf $(LIBSHARED) $(LIBNAME)
61
+
62
+ install_docs: FORCE
63
+ $(INSTALL) -d -m 755 $(DESTDIR)$(docdir)
64
+ cp -R doc/* $(DESTDIR)$(docdir)
65
+
66
+ clean: FORCE
67
+ cd libndtypes && if [ -f Makefile ]; then $(MAKE) clean; else exit 0; fi
68
+ cd libndtypes/tests && if [ -f Makefile ]; then $(MAKE) clean; else exit 0; fi
69
+ rm -rf build
70
+ cd python && rm -rf __pycache__
71
+ cd python/ndtypes && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME)
72
+ cd python/ndtypes && rm -rf __pycache__
73
+
74
+ distclean: FORCE
75
+ cd libndtypes && if [ -f Makefile ]; then $(MAKE) distclean; else exit 0; fi
76
+ cd libndtypes/tests && if [ -f Makefile ]; then $(MAKE) distclean; else exit 0; fi
77
+ rm -f config.h config.log config.status Makefile
78
+ rm -rf build dist MANIFEST record.txt
79
+ cd python && rm -rf __pycache__ ndtypes.egg-info
80
+ cd python/ndtypes && rm -f *.so $(LIBSTATIC) $(LIBSHARED) $(LIBSONAME) $(LIBNAME) ndtypes.h
81
+ cd python/ndtypes && rm -rf __pycache__
82
+ cd .conda/ndtypes && rm -rf test
83
+
84
+ FORCE:
85
+
86
+
87
+
@@ -0,0 +1,68 @@
1
+ /* config.h. Generated from config.h.in by configure. */
2
+ /* config.h.in. Generated from configure.ac by autoheader. */
3
+
4
+ /* Define if building universal (internal helper macro) */
5
+ /* #undef AC_APPLE_UNIVERSAL_BUILD */
6
+
7
+ /* Define to 1 if you have the <inttypes.h> header file. */
8
+ #define HAVE_INTTYPES_H 1
9
+
10
+ /* Define to 1 if you have the <memory.h> header file. */
11
+ #define HAVE_MEMORY_H 1
12
+
13
+ /* Define to 1 if you have the <stdint.h> header file. */
14
+ #define HAVE_STDINT_H 1
15
+
16
+ /* Define to 1 if you have the <stdlib.h> header file. */
17
+ #define HAVE_STDLIB_H 1
18
+
19
+ /* Define to 1 if you have the <strings.h> header file. */
20
+ #define HAVE_STRINGS_H 1
21
+
22
+ /* Define to 1 if you have the <string.h> header file. */
23
+ #define HAVE_STRING_H 1
24
+
25
+ /* Define to 1 if you have the <sys/stat.h> header file. */
26
+ #define HAVE_SYS_STAT_H 1
27
+
28
+ /* Define to 1 if you have the <sys/types.h> header file. */
29
+ #define HAVE_SYS_TYPES_H 1
30
+
31
+ /* Define to 1 if you have the <unistd.h> header file. */
32
+ #define HAVE_UNISTD_H 1
33
+
34
+ /* Define to the address where bug reports for this package should be sent. */
35
+ #define PACKAGE_BUGREPORT "skrah@bytereef.org"
36
+
37
+ /* Define to the full name of this package. */
38
+ #define PACKAGE_NAME "ndtypes"
39
+
40
+ /* Define to the full name and version of this package. */
41
+ #define PACKAGE_STRING "ndtypes 0.2.0dev3"
42
+
43
+ /* Define to the one symbol short name of this package. */
44
+ #define PACKAGE_TARNAME "ndtypes"
45
+
46
+ /* Define to the home page for this package. */
47
+ #define PACKAGE_URL "https://github.com/plures/"
48
+
49
+ /* Define to the version of this package. */
50
+ #define PACKAGE_VERSION "0.2.0dev3"
51
+
52
+ /* Define to 1 if you have the ANSI C header files. */
53
+ #define STDC_HEADERS 1
54
+
55
+ /* required for exact memcheck */
56
+ /* #undef WITH_VALGRIND */
57
+
58
+ /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
59
+ significant byte first (like Motorola and SPARC, unlike Intel). */
60
+ #if defined AC_APPLE_UNIVERSAL_BUILD
61
+ # if defined __BIG_ENDIAN__
62
+ # define WORDS_BIGENDIAN 1
63
+ # endif
64
+ #else
65
+ # ifndef WORDS_BIGENDIAN
66
+ /* # undef WORDS_BIGENDIAN */
67
+ # endif
68
+ #endif
@@ -0,0 +1,477 @@
1
+ This file contains any messages produced by compilers while
2
+ running configure, to aid debugging if configure makes a mistake.
3
+
4
+ It was created by ndtypes configure 0.2.0dev3, which was
5
+ generated by GNU Autoconf 2.69. Invocation command line was
6
+
7
+ $ ./configure --prefix=/home/sameer/gitrepos/xnd-ruby/ndtypes/ext/ruby_ndtypes --with-docs=no
8
+
9
+ ## --------- ##
10
+ ## Platform. ##
11
+ ## --------- ##
12
+
13
+ hostname = sameer-K401UB
14
+ uname -m = x86_64
15
+ uname -r = 5.0.0-23-generic
16
+ uname -s = Linux
17
+ uname -v = #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019
18
+
19
+ /usr/bin/uname -p = unknown
20
+ /bin/uname -X = unknown
21
+
22
+ /bin/arch = unknown
23
+ /usr/bin/arch -k = unknown
24
+ /usr/convex/getsysinfo = unknown
25
+ /usr/bin/hostinfo = unknown
26
+ /bin/machine = unknown
27
+ /usr/bin/oslevel = unknown
28
+ /bin/universe = unknown
29
+
30
+ PATH: /home/sameer/.rvm/gems/ruby-2.4.1/bin
31
+ PATH: /home/sameer/anaconda3/condabin
32
+ PATH: /home/sameer/gitrepos/starpu-1.2.8/bin
33
+ PATH: /home/sameer/.rvm/gems/ruby-2.4.1@global/bin
34
+ PATH: /home/sameer/.rvm/rubies/ruby-2.4.1/bin
35
+ PATH: /usr/local/sbin
36
+ PATH: /usr/local/bin
37
+ PATH: /usr/sbin
38
+ PATH: /usr/bin
39
+ PATH: /sbin
40
+ PATH: /bin
41
+ PATH: /usr/games
42
+ PATH: /usr/local/games
43
+ PATH: /snap/bin
44
+ PATH: /home/sameer/.rvm/bin
45
+ PATH: /home/sameer/.emacs.d/elpa/rtags-2.21/rtags-2.21/bin/
46
+
47
+
48
+ ## ----------- ##
49
+ ## Core tests. ##
50
+ ## ----------- ##
51
+
52
+ configure:2019: checking system as reported by uname -s
53
+ configure:2022: result: Linux
54
+ configure:2084: checking build system type
55
+ configure:2098: result: x86_64-unknown-linux-gnu
56
+ configure:2118: checking host system type
57
+ configure:2131: result: x86_64-unknown-linux-gnu
58
+ configure:2210: checking for gcc
59
+ configure:2226: found /usr/bin/gcc
60
+ configure:2237: result: gcc
61
+ configure:2466: checking for C compiler version
62
+ configure:2475: gcc --version >&5
63
+ gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
64
+ Copyright (C) 2017 Free Software Foundation, Inc.
65
+ This is free software; see the source for copying conditions. There is NO
66
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
67
+
68
+ configure:2486: $? = 0
69
+ configure:2475: gcc -v >&5
70
+ Using built-in specs.
71
+ COLLECT_GCC=gcc
72
+ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
73
+ OFFLOAD_TARGET_NAMES=nvptx-none
74
+ OFFLOAD_TARGET_DEFAULT=1
75
+ Target: x86_64-linux-gnu
76
+ Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
77
+ Thread model: posix
78
+ gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
79
+ configure:2486: $? = 0
80
+ configure:2475: gcc -V >&5
81
+ gcc: error: unrecognized command line option '-V'
82
+ gcc: fatal error: no input files
83
+ compilation terminated.
84
+ configure:2486: $? = 1
85
+ configure:2475: gcc -qversion >&5
86
+ gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
87
+ gcc: fatal error: no input files
88
+ compilation terminated.
89
+ configure:2486: $? = 1
90
+ configure:2506: checking whether the C compiler works
91
+ configure:2528: gcc conftest.c >&5
92
+ configure:2532: $? = 0
93
+ configure:2580: result: yes
94
+ configure:2583: checking for C compiler default output file name
95
+ configure:2585: result: a.out
96
+ configure:2591: checking for suffix of executables
97
+ configure:2598: gcc -o conftest conftest.c >&5
98
+ configure:2602: $? = 0
99
+ configure:2624: result:
100
+ configure:2646: checking whether we are cross compiling
101
+ configure:2654: gcc -o conftest conftest.c >&5
102
+ configure:2658: $? = 0
103
+ configure:2665: ./conftest
104
+ configure:2669: $? = 0
105
+ configure:2684: result: no
106
+ configure:2689: checking for suffix of object files
107
+ configure:2711: gcc -c conftest.c >&5
108
+ configure:2715: $? = 0
109
+ configure:2736: result: o
110
+ configure:2740: checking whether we are using the GNU C compiler
111
+ configure:2759: gcc -c conftest.c >&5
112
+ configure:2759: $? = 0
113
+ configure:2768: result: yes
114
+ configure:2777: checking whether gcc accepts -g
115
+ configure:2797: gcc -c -g conftest.c >&5
116
+ configure:2797: $? = 0
117
+ configure:2838: result: yes
118
+ configure:2855: checking for gcc option to accept ISO C89
119
+ configure:2918: gcc -c -g -O2 conftest.c >&5
120
+ configure:2918: $? = 0
121
+ configure:2931: result: none needed
122
+ configure:2997: checking for ar
123
+ configure:3013: found /usr/bin/ar
124
+ configure:3024: result: ar
125
+ configure:3089: checking for ranlib
126
+ configure:3105: found /usr/bin/ranlib
127
+ configure:3116: result: ranlib
128
+ configure:3148: checking how to run the C preprocessor
129
+ configure:3179: gcc -E conftest.c
130
+ configure:3179: $? = 0
131
+ configure:3193: gcc -E conftest.c
132
+ conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
133
+ #include <ac_nonexistent.h>
134
+ ^~~~~~~~~~~~~~~~~~
135
+ compilation terminated.
136
+ configure:3193: $? = 1
137
+ configure: failed program was:
138
+ | /* confdefs.h */
139
+ | #define PACKAGE_NAME "ndtypes"
140
+ | #define PACKAGE_TARNAME "ndtypes"
141
+ | #define PACKAGE_VERSION "0.2.0dev3"
142
+ | #define PACKAGE_STRING "ndtypes 0.2.0dev3"
143
+ | #define PACKAGE_BUGREPORT "skrah@bytereef.org"
144
+ | #define PACKAGE_URL "https://github.com/plures/"
145
+ | /* end confdefs.h. */
146
+ | #include <ac_nonexistent.h>
147
+ configure:3218: result: gcc -E
148
+ configure:3238: gcc -E conftest.c
149
+ configure:3238: $? = 0
150
+ configure:3252: gcc -E conftest.c
151
+ conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
152
+ #include <ac_nonexistent.h>
153
+ ^~~~~~~~~~~~~~~~~~
154
+ compilation terminated.
155
+ configure:3252: $? = 1
156
+ configure: failed program was:
157
+ | /* confdefs.h */
158
+ | #define PACKAGE_NAME "ndtypes"
159
+ | #define PACKAGE_TARNAME "ndtypes"
160
+ | #define PACKAGE_VERSION "0.2.0dev3"
161
+ | #define PACKAGE_STRING "ndtypes 0.2.0dev3"
162
+ | #define PACKAGE_BUGREPORT "skrah@bytereef.org"
163
+ | #define PACKAGE_URL "https://github.com/plures/"
164
+ | /* end confdefs.h. */
165
+ | #include <ac_nonexistent.h>
166
+ configure:3281: checking for grep that handles long lines and -e
167
+ configure:3339: result: /bin/grep
168
+ configure:3344: checking for egrep
169
+ configure:3406: result: /bin/grep -E
170
+ configure:3411: checking for ANSI C header files
171
+ configure:3431: gcc -c conftest.c >&5
172
+ configure:3431: $? = 0
173
+ configure:3504: gcc -o conftest conftest.c >&5
174
+ configure:3504: $? = 0
175
+ configure:3504: ./conftest
176
+ configure:3504: $? = 0
177
+ configure:3515: result: yes
178
+ configure:3539: checking for a BSD-compatible install
179
+ configure:3607: result: /usr/bin/install -c
180
+ configure:3626: checking for sys/types.h
181
+ configure:3626: gcc -c conftest.c >&5
182
+ configure:3626: $? = 0
183
+ configure:3626: result: yes
184
+ configure:3626: checking for sys/stat.h
185
+ configure:3626: gcc -c conftest.c >&5
186
+ configure:3626: $? = 0
187
+ configure:3626: result: yes
188
+ configure:3626: checking for stdlib.h
189
+ configure:3626: gcc -c conftest.c >&5
190
+ configure:3626: $? = 0
191
+ configure:3626: result: yes
192
+ configure:3626: checking for string.h
193
+ configure:3626: gcc -c conftest.c >&5
194
+ configure:3626: $? = 0
195
+ configure:3626: result: yes
196
+ configure:3626: checking for memory.h
197
+ configure:3626: gcc -c conftest.c >&5
198
+ configure:3626: $? = 0
199
+ configure:3626: result: yes
200
+ configure:3626: checking for strings.h
201
+ configure:3626: gcc -c conftest.c >&5
202
+ configure:3626: $? = 0
203
+ configure:3626: result: yes
204
+ configure:3626: checking for inttypes.h
205
+ configure:3626: gcc -c conftest.c >&5
206
+ configure:3626: $? = 0
207
+ configure:3626: result: yes
208
+ configure:3626: checking for stdint.h
209
+ configure:3626: gcc -c conftest.c >&5
210
+ configure:3626: $? = 0
211
+ configure:3626: result: yes
212
+ configure:3626: checking for unistd.h
213
+ configure:3626: gcc -c conftest.c >&5
214
+ configure:3626: $? = 0
215
+ configure:3626: result: yes
216
+ configure:3638: checking whether byte ordering is bigendian
217
+ configure:3653: gcc -c conftest.c >&5
218
+ conftest.c:20:9: error: unknown type name 'not'
219
+ not a universal capable compiler
220
+ ^~~
221
+ conftest.c:20:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'universal'
222
+ not a universal capable compiler
223
+ ^~~~~~~~~
224
+ conftest.c:20:15: error: unknown type name 'universal'
225
+ configure:3653: $? = 1
226
+ configure: failed program was:
227
+ | /* confdefs.h */
228
+ | #define PACKAGE_NAME "ndtypes"
229
+ | #define PACKAGE_TARNAME "ndtypes"
230
+ | #define PACKAGE_VERSION "0.2.0dev3"
231
+ | #define PACKAGE_STRING "ndtypes 0.2.0dev3"
232
+ | #define PACKAGE_BUGREPORT "skrah@bytereef.org"
233
+ | #define PACKAGE_URL "https://github.com/plures/"
234
+ | #define STDC_HEADERS 1
235
+ | #define HAVE_SYS_TYPES_H 1
236
+ | #define HAVE_SYS_STAT_H 1
237
+ | #define HAVE_STDLIB_H 1
238
+ | #define HAVE_STRING_H 1
239
+ | #define HAVE_MEMORY_H 1
240
+ | #define HAVE_STRINGS_H 1
241
+ | #define HAVE_INTTYPES_H 1
242
+ | #define HAVE_STDINT_H 1
243
+ | #define HAVE_UNISTD_H 1
244
+ | /* end confdefs.h. */
245
+ | #ifndef __APPLE_CC__
246
+ | not a universal capable compiler
247
+ | #endif
248
+ | typedef int dummy;
249
+ |
250
+ configure:3698: gcc -c conftest.c >&5
251
+ configure:3698: $? = 0
252
+ configure:3716: gcc -c conftest.c >&5
253
+ conftest.c: In function 'main':
254
+ conftest.c:26:4: error: unknown type name 'not'; did you mean 'ino_t'?
255
+ not big endian
256
+ ^~~
257
+ ino_t
258
+ conftest.c:26:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian'
259
+ not big endian
260
+ ^~~~~~
261
+ configure:3716: $? = 1
262
+ configure: failed program was:
263
+ | /* confdefs.h */
264
+ | #define PACKAGE_NAME "ndtypes"
265
+ | #define PACKAGE_TARNAME "ndtypes"
266
+ | #define PACKAGE_VERSION "0.2.0dev3"
267
+ | #define PACKAGE_STRING "ndtypes 0.2.0dev3"
268
+ | #define PACKAGE_BUGREPORT "skrah@bytereef.org"
269
+ | #define PACKAGE_URL "https://github.com/plures/"
270
+ | #define STDC_HEADERS 1
271
+ | #define HAVE_SYS_TYPES_H 1
272
+ | #define HAVE_SYS_STAT_H 1
273
+ | #define HAVE_STDLIB_H 1
274
+ | #define HAVE_STRING_H 1
275
+ | #define HAVE_MEMORY_H 1
276
+ | #define HAVE_STRINGS_H 1
277
+ | #define HAVE_INTTYPES_H 1
278
+ | #define HAVE_STDINT_H 1
279
+ | #define HAVE_UNISTD_H 1
280
+ | /* end confdefs.h. */
281
+ | #include <sys/types.h>
282
+ | #include <sys/param.h>
283
+ |
284
+ | int
285
+ | main ()
286
+ | {
287
+ | #if BYTE_ORDER != BIG_ENDIAN
288
+ | not big endian
289
+ | #endif
290
+ |
291
+ | ;
292
+ | return 0;
293
+ | }
294
+ configure:3844: result: no
295
+ configure:3872: checking for --with-valgrind
296
+ configure:3882: result: no
297
+ configure:3899: checking for --with-docs
298
+ configure:3909: result: no
299
+ configure:4090: creating ./config.status
300
+
301
+ ## ---------------------- ##
302
+ ## Running config.status. ##
303
+ ## ---------------------- ##
304
+
305
+ This file was extended by ndtypes config.status 0.2.0dev3, which was
306
+ generated by GNU Autoconf 2.69. Invocation command line was
307
+
308
+ CONFIG_FILES =
309
+ CONFIG_HEADERS =
310
+ CONFIG_LINKS =
311
+ CONFIG_COMMANDS =
312
+ $ ./config.status
313
+
314
+ on sameer-K401UB
315
+
316
+ config.status:832: creating Makefile
317
+ config.status:832: creating libndtypes/Makefile
318
+ config.status:832: creating libndtypes/tests/Makefile
319
+ config.status:832: creating libndtypes/ndtypes.h
320
+ config.status:832: creating libndtypes/compat/Makefile
321
+ config.status:832: creating libndtypes/serialize/Makefile
322
+ config.status:832: creating config.h
323
+ config.status:1007: config.h is unchanged
324
+
325
+ ## ---------------- ##
326
+ ## Cache variables. ##
327
+ ## ---------------- ##
328
+
329
+ ac_cv_build=x86_64-unknown-linux-gnu
330
+ ac_cv_c_bigendian=no
331
+ ac_cv_c_compiler_gnu=yes
332
+ ac_cv_env_CC_set=
333
+ ac_cv_env_CC_value=
334
+ ac_cv_env_CFLAGS_set=
335
+ ac_cv_env_CFLAGS_value=
336
+ ac_cv_env_CPPFLAGS_set=
337
+ ac_cv_env_CPPFLAGS_value=
338
+ ac_cv_env_CPP_set=
339
+ ac_cv_env_CPP_value=
340
+ ac_cv_env_LDFLAGS_set=
341
+ ac_cv_env_LDFLAGS_value=
342
+ ac_cv_env_LIBS_set=
343
+ ac_cv_env_LIBS_value=
344
+ ac_cv_env_build_alias_set=
345
+ ac_cv_env_build_alias_value=
346
+ ac_cv_env_host_alias_set=
347
+ ac_cv_env_host_alias_value=
348
+ ac_cv_env_target_alias_set=
349
+ ac_cv_env_target_alias_value=
350
+ ac_cv_header_inttypes_h=yes
351
+ ac_cv_header_memory_h=yes
352
+ ac_cv_header_stdc=yes
353
+ ac_cv_header_stdint_h=yes
354
+ ac_cv_header_stdlib_h=yes
355
+ ac_cv_header_string_h=yes
356
+ ac_cv_header_strings_h=yes
357
+ ac_cv_header_sys_stat_h=yes
358
+ ac_cv_header_sys_types_h=yes
359
+ ac_cv_header_unistd_h=yes
360
+ ac_cv_host=x86_64-unknown-linux-gnu
361
+ ac_cv_objext=o
362
+ ac_cv_path_EGREP='/bin/grep -E'
363
+ ac_cv_path_GREP=/bin/grep
364
+ ac_cv_path_install='/usr/bin/install -c'
365
+ ac_cv_prog_CPP='gcc -E'
366
+ ac_cv_prog_ac_ct_AR=ar
367
+ ac_cv_prog_ac_ct_CC=gcc
368
+ ac_cv_prog_ac_ct_RANLIB=ranlib
369
+ ac_cv_prog_cc_c89=
370
+ ac_cv_prog_cc_g=yes
371
+
372
+ ## ----------------- ##
373
+ ## Output variables. ##
374
+ ## ----------------- ##
375
+
376
+ AR='ar'
377
+ CC='gcc'
378
+ CFLAGS=''
379
+ CONFIGURE_CFLAGS='-I.. -Wall -Wextra -std=c11 -pedantic -O2 -g'
380
+ CONFIGURE_COV_CFLAGS='-I.. -Wall -Wextra -std=c11 -pedantic -O0 -g -fno-inline -fprofile-arcs -ftest-coverage'
381
+ CONFIGURE_COV_LDFLAGS='-shared -Wl,-soname,libndtypes.so.0 -fprofile-arcs'
382
+ CONFIGURE_LDFLAGS='-shared -Wl,-soname,libndtypes.so.0'
383
+ CPP='gcc -E'
384
+ CPPFLAGS=''
385
+ DEFS='-DHAVE_CONFIG_H'
386
+ ECHO_C=''
387
+ ECHO_N='-n'
388
+ ECHO_T=''
389
+ EGREP='/bin/grep -E'
390
+ EXEEXT=''
391
+ GREP='/bin/grep'
392
+ INSTALL='/usr/bin/install -c'
393
+ INSTALL_DATA='${INSTALL} -m 644'
394
+ INSTALL_PROGRAM='${INSTALL}'
395
+ INSTALL_SCRIPT='${INSTALL}'
396
+ LD='gcc'
397
+ LDFLAGS=''
398
+ LIBNAME='libndtypes.so'
399
+ LIBOBJS=''
400
+ LIBRARY_PATH='LD_LIBRARY_PATH'
401
+ LIBS=''
402
+ LIBSHARED='libndtypes.so.0.2.0dev3'
403
+ LIBSONAME='libndtypes.so.0'
404
+ LIBSTATIC='libndtypes.a'
405
+ LTLIBOBJS=''
406
+ NDT_INSTALL_DOCS=''
407
+ NDT_OPT='-O2 -g'
408
+ NDT_SYS_BIG_ENDIAN='0'
409
+ NDT_WARN='-Wall -Wextra -std=c11 -pedantic'
410
+ OBJEXT='o'
411
+ PACKAGE_BUGREPORT='skrah@bytereef.org'
412
+ PACKAGE_NAME='ndtypes'
413
+ PACKAGE_STRING='ndtypes 0.2.0dev3'
414
+ PACKAGE_TARNAME='ndtypes'
415
+ PACKAGE_URL='https://github.com/plures/'
416
+ PACKAGE_VERSION='0.2.0dev3'
417
+ PATH_SEPARATOR=':'
418
+ RANLIB='ranlib'
419
+ SHELL='/bin/bash'
420
+ ac_ct_CC='gcc'
421
+ bindir='${exec_prefix}/bin'
422
+ build='x86_64-unknown-linux-gnu'
423
+ build_alias=''
424
+ build_cpu='x86_64'
425
+ build_os='linux-gnu'
426
+ build_vendor='unknown'
427
+ datadir='${datarootdir}'
428
+ datarootdir='${prefix}/share'
429
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
430
+ dvidir='${docdir}'
431
+ exec_prefix='${prefix}'
432
+ host='x86_64-unknown-linux-gnu'
433
+ host_alias=''
434
+ host_cpu='x86_64'
435
+ host_os='linux-gnu'
436
+ host_vendor='unknown'
437
+ htmldir='${docdir}'
438
+ includedir='${prefix}/include'
439
+ infodir='${datarootdir}/info'
440
+ libdir='${exec_prefix}/lib'
441
+ libexecdir='${exec_prefix}/libexec'
442
+ localedir='${datarootdir}/locale'
443
+ localstatedir='${prefix}/var'
444
+ mandir='${datarootdir}/man'
445
+ oldincludedir='/usr/include'
446
+ pdfdir='${docdir}'
447
+ prefix='/home/sameer/gitrepos/xnd-ruby/ndtypes/ext/ruby_ndtypes'
448
+ program_transform_name='s,x,x,'
449
+ psdir='${docdir}'
450
+ sbindir='${exec_prefix}/sbin'
451
+ sharedstatedir='${prefix}/com'
452
+ sysconfdir='${prefix}/etc'
453
+ target_alias=''
454
+
455
+ ## ----------- ##
456
+ ## confdefs.h. ##
457
+ ## ----------- ##
458
+
459
+ /* confdefs.h */
460
+ #define PACKAGE_NAME "ndtypes"
461
+ #define PACKAGE_TARNAME "ndtypes"
462
+ #define PACKAGE_VERSION "0.2.0dev3"
463
+ #define PACKAGE_STRING "ndtypes 0.2.0dev3"
464
+ #define PACKAGE_BUGREPORT "skrah@bytereef.org"
465
+ #define PACKAGE_URL "https://github.com/plures/"
466
+ #define STDC_HEADERS 1
467
+ #define HAVE_SYS_TYPES_H 1
468
+ #define HAVE_SYS_STAT_H 1
469
+ #define HAVE_STDLIB_H 1
470
+ #define HAVE_STRING_H 1
471
+ #define HAVE_MEMORY_H 1
472
+ #define HAVE_STRINGS_H 1
473
+ #define HAVE_INTTYPES_H 1
474
+ #define HAVE_STDINT_H 1
475
+ #define HAVE_UNISTD_H 1
476
+
477
+ configure: exit 0