[ 0:00] % divine cc -o testcase.bc -c /home/xrockai/src/divine/nightly/test/pthread/div/exit.c [ 0:00] compiling /home/xrockai/src/divine/nightly/test/pthread/div/exit.c [ 0:00] /home/xrockai/src/divine/nightly/test/pthread/div/exit.c:6:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'void *' [ 0:00] pthread_exit( 1 ); [ 0:00] ^ [ 0:00] /dios/include/pthread.h:187:44: note: passing argument to parameter here [ 0:00] _PDCLIB_noreturn void pthread_exit( void * ) _PTHREAD_NOEXCEPT _PTHREAD_NOINLINE; [ 0:00] ^ [ 0:00] /home/xrockai/src/divine/nightly/test/pthread/div/exit.c:15:16: warning: comparison between pointer and integer ('void *' and 'int') [ 0:00] assert( i == 1 ); [ 0:00] ~ ^ ~ [ 0:00] /dios/include/assert.h:20:24: note: expanded from macro 'assert' [ 0:00] # define assert(e) ( (e) ? (void) 0 : __assert_fail(#e, __FILE__, __LINE__, __PRETTY_FUNCTION__) ) [ 0:00] ^ [ 0:00] 2 warnings generated. [ 0:00] % native-link testcase.bc [ 0:00] setting up pass: fuse-ctors, options = [ 0:00] setting up pass: lowering, options = [ 0:00] setting up pass: recurse-annotations, options = [ 0:00] setting up pass: interrupt-mem, options = __dios_reschedule [ 0:00] setting up pass: interrupt-cfl, options = __dios_suspend [ 0:00] compiling native-0.bc [ 0:00] compiling /dios/lib/config/native.bc [ 0:00] warning: overriding the module target triple with x86_64-unknown-linux-gnu [-Woverride-module] [ 0:02] 1 warning generated. [ 0:03] /usr/bin/ld: /tmp/native-2-4c2d38.o: in function `__execute_main(int, int, char**, char**)': [ 0:03] /dios/libc/sys/start.cpp:87: undefined reference to `__dios_tainted_init' [ 0:03] /usr/bin/ld: /dios/libc/sys/start.cpp:87: undefined reference to `__dios_tainted_init' [ 0:03] /usr/bin/ld: /dios/libc/sys/start.cpp:87: undefined reference to `__dios_tainted_init' [ 0:03] clang-7: error: linker command failed with exit code 1 (use -v to see invocation)