esy / pesy

Project configuration for esy
MIT License
141 stars 17 forks source link

New project to failing to build. #192

Open codemangle101 opened 3 years ago

codemangle101 commented 3 years ago

Hi,

I am running pesy in an empty folder to create the new project and build step is failing with following error. I am MacOS 10.15.7, The OCaml toplevel, version 4.10.1.

Here is the full output of the command.

Create new package in the CURRENT DIRECTORY /Users/testuser/Programs/reason/hello?(B

Enter package name (lowercase/hyphens) [default hello]:-.gitignore already exists. Skipping .gitignore generation.(B

hello@0.0.0 package.json created. Running 'esy install' and 'esy pesy'

(Binfo install 0.6.7 (using package.json)
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done
info solving esy constraints: done
info resolving npm packages: done
info fetching: done
info installing: done
info building ocaml@4.7.1004@d41d8cd9
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: ocaml@4.7.1004
    # esy-build-package: pwd: /Users/testuser/.esy/3/b/ocaml-4.7.1004-e5a2754f
    # esy-build-package: running: './esy-configure' '-no-cfi' '-prefix' '/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f'
    [esy-configure] Detected OSX / Linux environment
    Configuring OCaml version 4.07.1
    Configuring for host x86_64-apple-darwin19.6.0 ...
    Configuring for target x86_64-apple-darwin19.6.0 ...
    Using compiler gcc.
    Compiler family and version: clang-12-0.
    The C compiler is ISO C99 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.
    ranlib found
    #! appears to work in shell scripts.
    Signals have the System V semantics.
    expm1(), log1p(), hypot(), copysign() found.
    issetugid() found.
    clock_gettime functions not found.  Instrumented runtime can't be built.
    socklen_t is defined in <sys/socket.h>
    stdint.h found.
    unistd.h found.
    off_t is defined in <sys/types.h>
    dirent.h found.
    sys/select.h found.
    stat() supports nanosecond precision.
    sys/shm.h found.
    No replay debugger (missing system calls)
    System stack overflow can be detected.
    POSIX threads library supported.
    Options for linking with POSIX threads: -lpthread
    Bytecode threads library not supported (missing system calls)
    [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/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin
            standard library.......... /Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/lib/ocaml
            manual pages.............. /Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/man (with extension .1)
    Configuration for the bytecode compiler:
            C compiler used........... gcc
            options for compiling.....  -O2 -fno-strict-aliasing -fwrapv
            options for linking.......     -lpthread
            shared libraries not supported
    Configuration for the native-code compiler:
            hardware architecture..... amd64
            OS variant................ macosx
            C compiler used........... gcc
            options for compiling.....  -O2 -fno-strict-aliasing -fwrapv
            options for linking.......  
            assembler ................ clang -arch x86_64 -Wno-trigraphs -c
            preprocessed assembler ... clang -arch x86_64 -Wno-trigraphs -c
            assembler supports CFI ... no
            with frame pointers....... no
            naked pointers forbidden.. no
            spacetime profiling....... no
            reserved bits in header... no
            C plugins................. no
            compile with -fPIC........ no
            native dynlink ........... true
            profiling with gprof ..... supported
            using flambda middle-end . no
            force safe strings ............. no
            (-safe-string is the default per-file option)
            flat float arrays ........ yes
            afl-fuzz always enabled .. no
    Source-level replay debugger: not supported
    Debug runtime will be compiled and installed
    Additional libraries supported:
            unix str dynlink bigarray raw_spacetime_lib systhreads
    The "graph" library: not supported

    ** OCaml configuration completed successfully **

    # esy-build-package: running: './esy-build'
    [esy-build] Detected OSX / Linux environment
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C byterun  all
    echo "/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/lib/ocaml/stublibs" > ld.conf
    cat caml/instruct.h | tr -d '\r' | \
        sed -n -e '/^  /s/ \([A-Z]\)/ \&\&lbl_\1/gp' \
               -e '/^}/q' > caml/jumptbl.h
    ../tools/make-version-header.sh ../VERSION > caml/version.h
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  stacks.c
    echo "/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/lib/ocaml" >> ld.conf
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  fix_code.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  startup_aux.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  freelist.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  major_gc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  minor_gc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  memory.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  alloc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  roots.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  globroots.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  fail.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  signals.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  signals_byt.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  printexc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  backtrace_prim.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  backtrace.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  compare.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  ints.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  floats.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  str.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  array.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  io.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  extern.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  intern.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  hash.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  sys.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  meta.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  parsing.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  gc_ctrl.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  md5.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  obj.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  lexing.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  callback.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  debugger.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  weak.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  compact.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  finalise.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  custom.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  dynlink.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  spacetime.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  afl.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  unix.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  bigarray.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  main.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o interp.d.o interp.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o misc.d.o misc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o stacks.d.o stacks.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o fix_code.d.o fix_code.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o startup_aux.d.o startup_aux.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o startup.d.o startup.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o freelist.d.o freelist.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o major_gc.d.o major_gc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o minor_gc.d.o minor_gc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o memory.d.o memory.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o alloc.d.o alloc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o roots.d.o roots.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o globroots.d.o globroots.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o fail.d.o fail.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o signals.d.o signals.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o signals_byt.d.o signals_byt.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o printexc.d.o printexc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o backtrace_prim.d.o backtrace_prim.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o backtrace.d.o backtrace.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o compare.d.o compare.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o ints.d.o ints.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o floats.d.o floats.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o str.d.o str.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o array.d.o array.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o io.d.o io.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o extern.d.o extern.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o intern.d.o intern.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o hash.d.o hash.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o sys.d.o sys.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o meta.d.o meta.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o parsing.d.o parsing.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o gc_ctrl.d.o gc_ctrl.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o md5.d.o md5.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o obj.d.o obj.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o lexing.d.o lexing.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o callback.d.o callback.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o debugger.d.o debugger.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o weak.d.o weak.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o compact.d.o compact.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o finalise.d.o finalise.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o custom.d.o custom.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o dynlink.d.o dynlink.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o spacetime.d.o spacetime.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o afl.d.o afl.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o unix.d.o unix.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o bigarray.d.o bigarray.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o main.d.o main.c
    cat caml/instruct.h | tr -d '\r' | \
        sed -e '/\/\*/d' \
            -e '/^#/d' \
            -e 's/enum /char * names_of_/' \
            -e 's/{$/[] = {/' \
            -e 's/\([[:upper:]][[:upper:]_0-9]*\)/"\1"/g' > caml/opnames.h
    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 callback.c weak.c finalise.c stacks.c dynlink.c backtrace_prim.c backtrace.c spacetime.c afl.c bigarray.c \
          | LC_ALL=C sort | uniq > primitives
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  interp.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  misc.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  startup.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -DDEBUG -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -o instrtrace.d.o instrtrace.c
    (echo '#define CAML_INTERNALS'; \
             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
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  prims.c
    rm -f libcamlrund.a && ar rc libcamlrund.a  interp.d.o misc.d.o stacks.d.o fix_code.d.o startup_aux.d.o startup.d.o freelist.d.o major_gc.d.o minor_gc.d.o memory.d.o alloc.d.o roots.d.o globroots.d.o fail.d.o signals.d.o signals_byt.d.o printexc.d.o backtrace_prim.d.o backtrace.d.o compare.d.o ints.d.o floats.d.o str.d.o array.d.o io.d.o extern.d.o intern.d.o hash.d.o sys.d.o meta.d.o parsing.d.o gc_ctrl.d.o md5.d.o obj.d.o lexing.d.o callback.d.o debugger.d.o weak.d.o compact.d.o finalise.d.o custom.d.o dynlink.d.o spacetime.d.o afl.d.o unix.d.o bigarray.d.o main.d.o instrtrace.d.o && ranlib libcamlrund.a
    gcc -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE   -Wl,-no_compact_unwind -g -o ocamlrund prims.o libcamlrund.a -lpthread 
    rm -f libcamlrun.a && ar rc libcamlrun.a  interp.o misc.o stacks.o fix_code.o startup_aux.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_prim.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 md5.o obj.o lexing.o callback.o debugger.o weak.o compact.o finalise.o custom.o dynlink.o spacetime.o afl.o unix.o bigarray.o main.o && ranlib libcamlrun.a
    gcc -O2 -fno-strict-aliasing -fwrapv -Wall  -g -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE   -Wl,-no_compact_unwind  -o ocamlrun prims.o libcamlrun.a -lpthread 
    cp byterun/ocamlrun boot/ocamlrun
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C yacc  all
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o closure.o closure.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o error.o error.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o lalr.o lalr.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o lr0.o lr0.c
    echo "#define OCAML_VERSION \"`sed -e 1q ../VERSION | tr -d '\r'`\"" > version.h
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o mkpar.o mkpar.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o output.o output.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o reader.o reader.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o skeleton.o skeleton.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o symtab.o symtab.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o verbose.o verbose.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o warshall.o warshall.c
    gcc -c -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE  -I../byterun -o main.o main.c
    gcc -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCAML_NAME_SPACE   -Wl,-no_compact_unwind -o ocamlyacc closure.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o skeleton.o symtab.o verbose.o warshall.o 
    cp yacc/ocamlyacc boot/ocamlyacc
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C stdlib  \
          COMPILER="../boot/ocamlc -use-prims ../byterun/primitives" all
    ../boot/ocamlrun ../boot/ocamlc -use-prims ../byterun/primitives -strict-sequence -absname -w +a-4-9-41-42-44-45-48 -g -warn-error A -bin-annot -nostdlib -safe-string -strict-formats  -nopervasives -c camlinternalFormatBasics.mli
    sed -e "s|%%VERSION%%|`sed -e 1q ../VERSION | tr -d '\r'`|" sys.mlp > sys.ml
    for suff in '' d i; do \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff > camlheader$suff && \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff >target_camlheader$suff; \
        done && \
        echo '#!' | tr -d '\012' > camlheader_ur;
    for suff in '' d i; do \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff > camlheader$suff && \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff >target_camlheader$suff; \
        done && \
        echo '#!' | tr -d '\012' > camlheader_ur;
    for suff in '' d i; do \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff > camlheader$suff && \
          echo '#!/Users/testuser/.esy/3__________________________________________________________________/s/ocaml-4.7.1004-e5a2754f/bin/ocamlrun'$suff >target_camlheader$suff; \
        done && \
        echo '#!' | tr -d '\012' > camlheader_ur;
    Fatal error: exception Invalid_argument("Sys.getcwd not implemented")
    make[1]: *** [camlinternalFormatBasics.cmi] Error 2
    make: *** [coldstart] Error 2
    error: command failed: './esy-build' (exited with 2)
    esy-build-package: exiting with errors above...

  building ocaml@4.7.1004
esy: exiting due to errors above
ManasJayanth commented 3 years ago

@codemangle101 The template uses ocaml 4.7.1004 which needs a patch for newer MacOSes. Would you mind using a newer compiler like 4.9.x ?

Also, we're looking for beta testers for the next version of pesy: npm i -g pesy@next. Most of the development focus has been on 0.5.0 release.