darpa-xdata / xlang

Other
21 stars 9 forks source link

Julia build no longer working #23

Open aterrel opened 10 years ago

aterrel commented 10 years ago

Using the vm scripts to download the latest julia has caused julia to no longer work.

vagrant@vagrant-ubuntu-saucy-64:/vagrant$ make JULIA_PATH=/home/vagrant/julia/ all
make -C thunderdome libs
make[1]: Entering directory `/vagrant/thunderdome'
gcc -std=c11 -g -O0 -g -O0 -fPIC -c td_julia.c -o td_julia.o -I/home/vagrant/julia//src -I/home/vagrant/julia//src/support -I/home/vagrant/julia//include/julia -I/home/vagrant/julia//usr/include
In file included from /home/vagrant/julia//usr/include/uv.h:61:0,
                 from /home/vagrant/julia//src/support/ios.h:5,
                 from /home/vagrant/julia//src/support/libsupport.h:11,
                 from /home/vagrant/julia//src/julia.h:10,
                 from td_julia.c:7:
/home/vagrant/julia//usr/include/uv-unix.h:129:1: error: unknown type name ‘pthread_rwlock_t’
 typedef pthread_rwlock_t uv_rwlock_t;
 ^
/home/vagrant/julia//usr/include/uv-unix.h:146:1: error: unknown type name ‘pthread_barrier_t’
 typedef pthread_barrier_t uv_barrier_t;
 ^
In file included from /home/vagrant/julia//src/support/ios.h:5:0,
                 from /home/vagrant/julia//src/support/libsupport.h:11,
                 from /home/vagrant/julia//src/julia.h:10,
                 from td_julia.c:7:
/home/vagrant/julia//usr/include/uv.h:427:42: warning: ‘struct addrinfo’ declared inside parameter list [enabled by default]
                                   struct addrinfo* res);
                                          ^
/home/vagrant/julia//usr/include/uv.h:427:42: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
In file included from /home/vagrant/julia//usr/include/uv.h:61:0,
                 from /home/vagrant/julia//src/support/ios.h:5,
                 from /home/vagrant/julia//src/support/libsupport.h:11,
                 from /home/vagrant/julia//src/julia.h:10,
                 from td_julia.c:7:
/home/vagrant/julia//usr/include/uv-unix.h:290:13: error: ‘NI_MAXHOST’ undeclared here (not in a function)
   char host[NI_MAXHOST];                                                      \
             ^
/home/vagrant/julia//usr/include/uv.h:1492:3: note: in expansion of macro ‘UV_GETNAMEINFO_PRIVATE_FIELDS’
   UV_GETNAMEINFO_PRIVATE_FIELDS
   ^
/home/vagrant/julia//usr/include/uv-unix.h:291:16: error: ‘NI_MAXSERV’ undeclared here (not in a function)
   char service[NI_MAXSERV];                                                   \
                ^
/home/vagrant/julia//usr/include/uv.h:1492:3: note: in expansion of macro ‘UV_GETNAMEINFO_PRIVATE_FIELDS’
   UV_GETNAMEINFO_PRIVATE_FIELDS
   ^
In file included from td_julia.c:7:0:
/home/vagrant/julia//src/julia.h:1127:5: error: unknown type name ‘sigjmp_buf’
     jl_jmp_buf eh_ctx;
     ^
/home/vagrant/julia//src/julia.h:1145:5: error: unknown type name ‘sigjmp_buf’
     jl_jmp_buf ctx;
     ^
/home/vagrant/julia//src/julia.h:1150:5: error: unknown type name ‘sigjmp_buf’
     jl_jmp_buf base_ctx;
     ^
make[1]: *** [libtd_julia.so] Error 1
make[1]: Leaving directory `/vagrant/thunderdome'
make: *** [libs] Error 2
jiahao commented 10 years ago

cc @JeffBezanson

jiahao commented 9 years ago

This works for me on my local release-0.3 and 0.4-dev branches. Does this issue exist only when the vm is used?