<p dir="auto">The current implementation is frankly embarrassing.</p>
<p dir="auto">The libuv build seems to work fine, with no errors or warnings, but when the build gets to compiling Julia, I'm getting some uv issues. It's saying <code class="notranslate">/usr/local/include/uv.h</code> though, so maybe it's not using the downloaded libuv?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    CC src/init.o
In file included from /usr/home/alex/repos/julia/src/init.c:22:
In file included from ./julia_internal.h:520:
In file included from /usr/local/include/libunwind.h:23:
/usr/local/include/libunwind-x86_64.h:111:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct unw_tdep_save_loc
        ^
/usr/local/include/libunwind-x86_64.h:120:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct
        ^
/usr/home/alex/repos/julia/src/init.c:111:9: warning: implicit declaration of function 'pthread_attr_get_np' is
      invalid in C99 [-Wimplicit-function-declaration]
        pthread_attr_get_np(pthread_self(), &amp;attr);
        ^
/usr/home/alex/repos/julia/src/init.c:268:22: error: use of undeclared identifier 'UV_RAW_FD'
                case UV_RAW_FD:
                     ^
/usr/home/alex/repos/julia/src/init.c:269:22: error: use of undeclared identifier 'UV_RAW_HANDLE'; did you mean
      'UV_HANDLE'?
                case UV_RAW_HANDLE:
                     ^~~~~~~~~~~~~
                     UV_HANDLE
/usr/local/include/uv.h:183:22: note: 'UV_HANDLE' declared here
  UV_HANDLE_TYPE_MAP(XX)
                     ^
/usr/home/alex/repos/julia/src/init.c:269:22: error: duplicate case value 'UV_HANDLE'
                case UV_RAW_HANDLE:
                     ^
/usr/home/alex/repos/julia/src/init.c:264:22: note: previous case defined here
                case UV_HANDLE:
                     ^
/usr/home/alex/repos/julia/src/init.c:349:72: error: use of undeclared identifier 'UV_PIPE_READABLE'; did you mean
      'UV_READABLE'?
            if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
                                                                       ^~~~~~~~~~~~~~~~
                                                                       UV_READABLE
/usr/local/include/uv.h:717:3: note: 'UV_READABLE' declared here
  UV_READABLE = 1,
  ^
/usr/home/alex/repos/julia/src/init.c:349:89: error: use of undeclared identifier 'UV_PIPE_WRITABLE'; did you mean
      'UV_WRITABLE'?
            if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
                                                                                        ^~~~~~~~~~~~~~~~
                                                                                        UV_WRITABLE
/usr/local/include/uv.h:718:3: note: 'UV_WRITABLE' declared here
  UV_WRITABLE = 2,
  ^
3 warnings and 5 errors generated.
gmake[1]: *** [Makefile:129: init.o] Error 1
gmake: *** [Makefile:90: julia-src-release] Error 2"><pre class="notranslate"><code class="notranslate">    CC src/init.o
In file included from /usr/home/alex/repos/julia/src/init.c:22:
In file included from ./julia_internal.h:520:
In file included from /usr/local/include/libunwind.h:23:
/usr/local/include/libunwind-x86_64.h:111:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct unw_tdep_save_loc
        ^
/usr/local/include/libunwind-x86_64.h:120:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct
        ^
/usr/home/alex/repos/julia/src/init.c:111:9: warning: implicit declaration of function 'pthread_attr_get_np' is
      invalid in C99 [-Wimplicit-function-declaration]
        pthread_attr_get_np(pthread_self(), &amp;attr);
        ^
/usr/home/alex/repos/julia/src/init.c:268:22: error: use of undeclared identifier 'UV_RAW_FD'
                case UV_RAW_FD:
                     ^
/usr/home/alex/repos/julia/src/init.c:269:22: error: use of undeclared identifier 'UV_RAW_HANDLE'; did you mean
      'UV_HANDLE'?
                case UV_RAW_HANDLE:
                     ^~~~~~~~~~~~~
                     UV_HANDLE
/usr/local/include/uv.h:183:22: note: 'UV_HANDLE' declared here
  UV_HANDLE_TYPE_MAP(XX)
                     ^
/usr/home/alex/repos/julia/src/init.c:269:22: error: duplicate case value 'UV_HANDLE'
                case UV_RAW_HANDLE:
                     ^
/usr/home/alex/repos/julia/src/init.c:264:22: note: previous case defined here
                case UV_HANDLE:
                     ^
/usr/home/alex/repos/julia/src/init.c:349:72: error: use of undeclared identifier 'UV_PIPE_READABLE'; did you mean
      'UV_READABLE'?
            if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
                                                                       ^~~~~~~~~~~~~~~~
                                                                       UV_READABLE
/usr/local/include/uv.h:717:3: note: 'UV_READABLE' declared here
  UV_READABLE = 1,
  ^
/usr/home/alex/repos/julia/src/init.c:349:89: error: use of undeclared identifier 'UV_PIPE_WRITABLE'; did you mean
      'UV_WRITABLE'?
            if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
                                                                                        ^~~~~~~~~~~~~~~~
                                                                                        UV_WRITABLE
/usr/local/include/uv.h:718:3: note: 'UV_WRITABLE' declared here
  UV_WRITABLE = 2,
  ^
3 warnings and 5 errors generated.
gmake[1]: *** [Makefile:129: init.o] Error 1
gmake: *** [Makefile:90: julia-src-release] Error 2
</code></pre></div>
<p dir="auto">The system is FreeBSD 11.0-release-p1 amd64. Let me know what other information is needed.</p>