Skip to content

Instantly share code, notes, and snippets.

@threepointone
Created June 11, 2017 14:14
Show Gist options
  • Save threepointone/06be694d5bff267fb2fe6af61b8b953e to your computer and use it in GitHub Desktop.
Save threepointone/06be694d5bff267fb2fe6af61b8b953e to your computer and use it in GitHub Desktop.
Configuring for host x86_64-apple-darwin16.6.0 ...
Configuring for target x86_64-apple-darwin16.6.0 ...
Using compiler gcc.
The C compiler is ANSI-compliant.
Checking the sizes of integers and pointers...
Wow! A 64 bit architecture!
This is a little-endian architecture.
Doubles can be word-aligned.
64-bit integers can be word-aligned.
Native division and modulus have round-towards-zero semantics, will use them.
ranlib found
#! appears to work in shell scripts.
POSIX signal handling found.
expm1(), log1p(), hypot(), copysign() found.
getrusage() found.
times() found.
termcap functions found (with libraries '-lcurses')
You have BSD sockets.
socklen_t is defined in <sys/socket.h>
inet_aton() found.
IPv6 is supported.
unistd.h found.
off_t is defined in <sys/types.h>
dirent.h found.
rewinddir() found.
lockf() found.
mkfifo() found.
getcwd() found.
getwd() found.
getpriority() found.
utime() found.
utimes() found.
dup2() found.
fchmod() found.
truncate() found.
sys/select.h found.
select() found.
symlink() found.
waitpid() found.
wait4() found.
getgroups() found.
setgroups() found.
initgroups() found.
POSIX termios found.
Asynchronous I/O are supported.
setitimer() found.
gethostname() found.
uname() found.
gettimeofday() found.
mktime() found.
setsid() found.
putenv() found.
setlocale() and <locale.h> found.
dlopen() found.
Dynamic loading of shared libraries is supported.
mmap() found.
pwrite() found
stat() supports nanosecond precision.
mkstemp() found
nice() found
Replay debugger supported.
System stack overflow can be detected.
POSIX threads library supported.
Options for linking with POSIX threads: -lpthread
sigwait() found
Bytecode threads library supported.
[WARNING] Cannot compile X11 program.
[WARNING] X11 not found, the "graph" library will not be supported.
[WARNING] BFD library not found, 'objinfo' will be unable to display info on .cmxs files.
CFI support: disabled by command-line option -no-cfi
** Configuration summary **
Directories where OCaml will be installed:
binaries.................. /Users/threepointone/.esy/store-3.x.x/_insttmp/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/bin
standard library.......... /Users/threepointone/.esy/store-3.x.x/_insttmp/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/lib/ocaml
manual pages.............. /Users/threepointone/.esy/store-3.x.x/_insttmp/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking....... -lcurses -lpthread
shared libraries are supported
options for compiling..... -O -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
command for building...... gcc -bundle -flat_namespace -undefined suppress -Wl,-no_compact_unwind -o lib.so /a/path objs
Configuration for the native-code compiler:
hardware architecture..... amd64
OS variant................ macosx
C compiler used........... gcc
options for compiling..... -O -D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking.......
assembler ................ clang -arch x86_64 -c
preprocessed assembler ... clang -arch x86_64 -c
assembler supports CFI ... no
with frame pointers....... no
naked pointers forbidden.. no
native dynlink ........... true
profiling with gprof ..... supported
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray systhreads threads
Configuration for the "num" library:
target architecture ...... amd64 (asm level 1)
The "graph" library: not supported
** OCaml configuration completed successfully **
/Applications/Xcode_8.3.2_fb.app/Contents/Developer/usr/bin/make coldstart
cd byterun; /Applications/Xcode_8.3.2_fb.app/Contents/Developer/usr/bin/make all
sed -n -e '/^ /s/ \([A-Z]\)/ \&\&lbl_\1/gp' \
-e '/^}/q' caml/instruct.h > caml/jumptbl.h
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o misc.o misc.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o stacks.o stacks.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o fix_code.o fix_code.c
../tools/make-version-header.sh ../VERSION > caml/version.h
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o freelist.o freelist.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o major_gc.o major_gc.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o minor_gc.o minor_gc.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o memory.o memory.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o alloc.o alloc.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o roots.o roots.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o globroots.o globroots.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o fail.o fail.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o signals.o signals.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o signals_byt.o signals_byt.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o printexc.o printexc.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o backtrace.o backtrace.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o compare.o compare.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o ints.o ints.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o floats.o floats.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o str.o str.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o array.o array.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o io.o io.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o extern.o extern.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o intern.o intern.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o hash.o hash.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o sys.o sys.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o meta.o meta.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o parsing.o parsing.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o gc_ctrl.o gc_ctrl.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o terminfo.o terminfo.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o md5.o md5.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o obj.o obj.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o lexing.o lexing.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o callback.o callback.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o debugger.o debugger.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o weak.o weak.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o compact.o compact.c
parsing.c:220:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
env->curr_char = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
parsing.c:225:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
env->curr_char = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
str.c:239:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (res < 0) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
str.c:241:27: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (len1 < len2) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o finalise.o finalise.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o custom.o custom.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o dynlink.o dynlink.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o unix.o unix.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o main.o main.c
sed -n -e "s/CAMLprim value \([a-z0-9_][a-z0-9_]*\).*/\1/p" alloc.c array.c compare.c extern.c floats.c gc_ctrl.c hash.c intern.c interp.c ints.c io.c lexing.c md5.c meta.c obj.c parsing.c signals.c str.c sys.c terminfo.c callback.c weak.c finalise.c stacks.c dynlink.c backtrace.c \
| sort | uniq > primitives
echo "/Users/threepointone/.esy/store-3.x.x/_insttmp/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/lib/ocaml/stublibs" > ld.conf
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O interp.c -o interp.pic.o
echo "/Users/threepointone/.esy/store-3.x.x/_insttmp/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/lib/ocaml" >> ld.conf
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O misc.c -o misc.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O stacks.c -o stacks.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O fix_code.c -o fix_code.pic.o
compare.c:273:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
return Val_int(LESS);
^~~~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O startup.c -o startup.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O freelist.c -o freelist.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O major_gc.c -o major_gc.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O minor_gc.c -o minor_gc.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O memory.c -o memory.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O alloc.c -o alloc.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O roots.c -o roots.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O globroots.c -o globroots.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O fail.c -o fail.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O signals.c -o signals.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O signals_byt.c -o signals_byt.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O printexc.c -o printexc.pic.o
lexing.c:66:31: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
lexbuf->lex_last_action = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:101:38: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (lexbuf->lex_last_action == Val_int(-1)) {
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O backtrace.c -o backtrace.pic.o
lexing.c:147:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
Field(mem,dst) = Val_int(-1) ;
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:163:31: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
lexbuf->lex_last_action = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:207:38: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (lexbuf->lex_last_action == Val_int(-1)) {
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O compare.c -o compare.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O ints.c -o ints.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O floats.c -o floats.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O str.c -o str.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O array.c -o array.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O io.c -o io.pic.o
compare.c:273:12: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
return Val_int(LESS);
^~~~~~~~~~~~~
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O extern.c -o extern.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O intern.c -o intern.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O hash.c -o hash.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O sys.c -o sys.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O meta.c -o meta.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O parsing.c -o parsing.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O gc_ctrl.c -o gc_ctrl.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O terminfo.c -o terminfo.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O md5.c -o md5.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O obj.c -o obj.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O lexing.c -o lexing.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O callback.c -o callback.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O debugger.c -o debugger.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O weak.c -o weak.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O compact.c -o compact.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O finalise.c -o finalise.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O custom.c -o custom.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O dynlink.c -o dynlink.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O unix.c -o unix.pic.o
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O main.c -o main.pic.o
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:66:31: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
lexbuf->lex_last_action = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:101:38: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (lexbuf->lex_last_action == Val_int(-1)) {
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:147:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
Field(mem,dst) = Val_int(-1) ;
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:163:31: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
lexbuf->lex_last_action = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
lexing.c:207:38: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (lexbuf->lex_last_action == Val_int(-1)) {
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
str.c:239:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (res < 0) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
str.c:241:27: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (len1 < len2) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o interp.o interp.c
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o startup.o startup.c
(echo '#include "caml/mlvalues.h"'; \
echo '#include "caml/prims.h"'; \
sed -e 's/.*/extern value &();/' primitives; \
echo 'c_primitive caml_builtin_cprim[] = {'; \
sed -e 's/.*/ &,/' primitives; \
echo ' 0 };'; \
echo 'char * caml_names_of_builtin_cprim[] = {'; \
sed -e 's/.*/ "&",/' primitives; \
echo ' 0 };') > prims.c
floats.c:442:21: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (f < g) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
floats.c:447:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (g == g) return Val_int(-1); /* g is not NaN, f is NaN */
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o prims.o prims.c
5 warnings generated.
parsing.c:220:24: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
env->curr_char = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
parsing.c:225:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
env->curr_char = Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
2 warnings generated.
2 warnings generated.
1 warning generated.
5 warnings generated.
1 warning generated.
2 warnings generated.
2 warnings generated.
2 warnings generated.
floats.c:442:21: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (f < g) return Val_int(-1);
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
floats.c:447:22: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (g == g) return Val_int(-1); /* g is not NaN, f is NaN */
^~~~~~~~~~~
./caml/mlvalues.h:75:20: note: expanded from macro 'Val_int'
#define Val_int(x) Val_long(x)
^~~~~~~~~~~
./caml/mlvalues.h:71:39: note: expanded from macro 'Val_long'
#define Val_long(x) (((intnat)(x) << 1) + 1)
~~~~~~~~~~~ ^
2 warnings generated.
ar rc libcamlrun_pic.a interp.pic.o misc.pic.o stacks.pic.o fix_code.pic.o startup.pic.o freelist.pic.o major_gc.pic.o minor_gc.pic.o memory.pic.o alloc.pic.o roots.pic.o globroots.pic.o fail.pic.o signals.pic.o signals_byt.pic.o printexc.pic.o backtrace.pic.o compare.pic.o ints.pic.o floats.pic.o str.pic.o array.pic.o io.pic.o extern.pic.o intern.pic.o hash.pic.o sys.pic.o meta.pic.o parsing.pic.o gc_ctrl.pic.o terminfo.pic.o md5.pic.o obj.pic.o lexing.pic.o callback.pic.o debugger.pic.o weak.pic.o compact.pic.o finalise.pic.o custom.pic.o dynlink.pic.o unix.pic.o main.pic.o
gcc -bundle -flat_namespace -undefined suppress -Wl,-no_compact_unwind -o libcamlrun_shared.so interp.pic.o misc.pic.o stacks.pic.o fix_code.pic.o startup.pic.o freelist.pic.o major_gc.pic.o minor_gc.pic.o memory.pic.o alloc.pic.o roots.pic.o globroots.pic.o fail.pic.o signals.pic.o signals_byt.pic.o printexc.pic.o backtrace.pic.o compare.pic.o ints.pic.o floats.pic.o str.pic.o array.pic.o io.pic.o extern.pic.o intern.pic.o hash.pic.o sys.pic.o meta.pic.o parsing.pic.o gc_ctrl.pic.o terminfo.pic.o md5.pic.o obj.pic.o lexing.pic.o callback.pic.o debugger.pic.o weak.pic.o compact.pic.o finalise.pic.o custom.pic.o dynlink.pic.o unix.pic.o main.pic.o -lcurses -lpthread
ar rc libcamlrun.a interp.o misc.o stacks.o fix_code.o startup.o freelist.o major_gc.o minor_gc.o memory.o alloc.o roots.o globroots.o fail.o signals.o signals_byt.o printexc.o backtrace.o compare.o ints.o floats.o str.o array.o io.o extern.o intern.o hash.o sys.o meta.o parsing.o gc_ctrl.o terminfo.o md5.o obj.o lexing.o callback.o debugger.o weak.o compact.o finalise.o custom.o dynlink.o unix.o main.o
sh: line 1: 73903 Segmentation fault: 11 /Applications/Xcode_8.3.2_fb.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find ar 2> /dev/null
sh: line 1: 73908 Segmentation fault: 11 /Applications/Xcode_8.3.2_fb.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find ar 2> /dev/null
ar: error: unable to find utility "ar", not a developer tool or in PATHar: error:
unable to find utility "ar", not a developer tool or in PATH
make[2]: *** [libcamlrun.a] Error 72
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [libcamlrun_pic.a] Error 72
make[1]: *** [coldstart] Error 2
make: *** [world.opt] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment