<div dir="ltr">After sending SIGKILL to the linker (it crossed 10 minutes without showing signs of progress) I get this in the error logs for the go test:<div><br></div><div><div>FAIL: LLVM :: Bindings/Go/go.test (11793 of 11793)</div><div>******************** TEST 'LLVM :: Bindings/Go/go.test' FAILED ********************</div><div>Script:</div><div>--</div><div>/usr/local/google/home/chandlerc/src/llvm/build/./bin/llvm-go test <a href="http://llvm.org/llvm/bindings/go/llvm">llvm.org/llvm/bindings/go/llvm</a></div><div>--</div><div>Exit Code: 1</div><div><br></div><div>Command Output (stdout):</div><div>--</div><div>FAIL <a href="http://llvm.org/llvm/bindings/go/llvm">llvm.org/llvm/bindings/go/llvm</a> [build failed]</div><div><br></div><div>--</div><div>Command Output (stderr):</div><div>--</div><div># <a href="http://llvm.org/llvm/bindings/go/llvm">llvm.org/llvm/bindings/go/llvm</a></div><div>../include/llvm/ExecutionEngine/MCJIT.h:0: error: undefined reference to '__asan_before_dynamic_init'</div><div>../include/llvm/ExecutionEngine/MCJIT.h:0: error: undefined reference to '__asan_after_dynamic_init'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:45: error: undefined reference to '__asan_option_detect_stack_use_after_return'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:45: error: undefined reference to '__asan_stack_malloc_1'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:0: error: undefined reference to '__asan_option_detect_stack_us</div><div>e_after_return'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:0: error: undefined reference to '__asan_stack_malloc_0'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:206: error: undefined reference to '__asan_report_store8'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:0: error: undefined reference to '__asan_option_detect_stack_us</div><div>e_after_return'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:0: error: undefined reference to '__asan_stack_malloc_0'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:206: error: undefined reference to '__asan_report_store8'</div><div>../include/llvm/ExecutionEngine/SectionMemoryManager.h:42: error: undefined reference to '__asan_report_store8'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:235: error: undefined reference to '__asan_report_load8'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:237: error: undefined reference to '__asan_report_store8'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/unique_ptr.h:235: error: undefined reference to '__asan_report_load8'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_option_detect_stack_use_after_return'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_1'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:76: error: undefined reference to '__asan_report_load8'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:76: error: undefined reference to '__asan_report_load8'</div><div>../include/llvm/ADT/SmallVector.h:138: error: undefined reference to '__asan_handle_no_return'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_0'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_1'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_1'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_0'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:104: error: undefined reference to '__asan_handle_no_return'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_2'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:0: error: undefined reference to '__asan_stack_malloc_2'</div><div>../lib/ExecutionEngine/MCJIT/MCJIT.cpp:147: error: undefined reference to '__asan_handle_no_return'</div></div><div><snip></div><div><div>../lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp:541: error: undefined reference to '__asan_stack_free_5'</div><div>/home/chandlerc/src/llvm/build/lib/libLLVMRuntimeDyld.a(RuntimeDyldChecker.cpp.o):../lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp:function asan.module_ctor: error: undefined ref</div><div>erence to '__asan_init_v4'</div><div>/home/chandlerc/src/llvm/build/lib/libLLVMRuntimeDyld.a(RuntimeDyldChecker.cpp.o):../lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp:function asan.module_ctor: error: undefined ref</div><div>erence to '__asan_register_globals'</div><div>/home/chandlerc/src/llvm/build/lib/libLLVMRuntimeDyld.a(RuntimeDyldChecker.cpp.o):../lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp:function asan.module_dtor: error: undefined ref</div><div>erence to '__asan_unregister_globals'</div><div>/home/chandlerc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.x-google/../../../../include/c++/4.9.x-google/bits/stl_pair.h:281: error: undefined reference to '__asan_report_load2'</div><div>../include/llvm/Support/Endian.h:53: error: undefined reference to '__asan_report_load_n'</div></div><div><snip></div><div><div>clang-3.5: error: unable to execute command: Terminated</div><div>clang-3.5: error: linker command failed due to signal (use -v to see invocation)</div></div><div><br></div><div>Seems like all of this is caused by the executable not getting linked with -fsanitize=address which might be fixable by catching when ASan is enabled in CMake and passing those flags down to the variables used in the environment when running the go tests.... But I'm worried that might not fix the slow link?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 2, 2014 at 1:02 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Specifically, the test is causing a link to occur for CGO stuff. It has been running 8 minutes now with Gold, and is producing a 400mb .o file afaict:<div><br></div><div><div>% du -hs /tmp/go-build703430446/<a href="http://llvm.org/llvm/bindings/go/llvm/_test/_obj_test/_cgo_.o" target="_blank">llvm.org/llvm/bindings/go/llvm/_test/_obj_test/_cgo_.o</a></div><div>397M /tmp/go-build703430446/<a href="http://llvm.org/llvm/bindings/go/llvm/_test/_obj_test/_cgo_.o" target="_blank">llvm.org/llvm/bindings/go/llvm/_test/_obj_test/_cgo_.o</a></div></div><div><br></div><div>What am I doing wrong here?</div></div>
</blockquote></div><br></div>