The dependency target “scudo_standalone” of target “check-gwp_asan” does home/yrqfwq4/workspace/one-off/llvm-project-release-16.x/compiler-rt/test/CMakeLists.txt:117 (umbrella_lit_testsuite_end) The dependency target “scudo_standalone” of target “check-compiler-rt” does The dependency target “scudo_standalone” of target “runtimes-test-depends” home/yrqfwq4/workspace/one-off/llvm-project-release-16.x/llvm/cmake/modules/AddLLVM.cmake:1955 (add_lit_target)ĬMakeLists.txt:253 (umbrella_lit_testsuite_end)ĬMake Error at CMakeLists.txt:249 (add_dependencies): The dependency target “scudo_standalone” of target “check-runtimes” does – Supported architectures for crt: aarch64ĬMake Error at /home/yrqfwq4/workspace/one-off/llvm-project-release-16.x/llvm/cmake/modules/AddLLVM.cmake:1915 (add_dependencies): – sanitizer_common tests on “Linux” will run against “asan lsan msan tsan ubsan” – Generated Sanitizer SUPPORTED_TOOLS list on “Linux” is “asan lsan msan tsan ubsan” Linking CXX shared library lib/liblldb.so.16.0.5 Linking CXX shared library lib/liblldb.so.16.0.5įAILED: runtimes/runtimes-aarch64-unknown-linux-gnu-stamps/runtimes-aarch64-unknown-linux-gnu-configureĬd XXX/runtimes/runtimes-aarch64-unknown-linux-gnu-bins & /opt/jdx/tools/bin/cmake -DCMAKE_C_COMPILER=XXX/./bin/clang -DCMAKE_CXX_COMPILER=XXX/./bin/clang++ -DCMAKE_ASM_COMPILER=XXX/./bin/clang -DCMAKE_LINKER=XXX/./bin/ld.lld -DCMAKE_AR=XXX/./bin/llvm-ar -DCMAKE_RANLIB=XXX/./bin/llvm-ranlib -DCMAKE_NM=XXX/./bin/llvm-nm -DCMAKE_OBJDUMP=XXX/./bin/llvm-objdump -DCMAKE_OBJCOPY=XXX/./bin/llvm-objcopy -DCMAKE_STRIP=XXX/./bin/llvm-strip -DCMAKE_READELF=XXX/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=aarch64-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=aarch64-unknown-linux-gnu -DCMAKE_INSTALL_PREFIX=/usr/clang16 -DLLVM_BINARY_DIR=XXX -DLLVM_CONFIG_PATH=XXX/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF -DLLVM_LIT_ARGS=-sv -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=16.0.5 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=XXX/usr/bin/ninja -DCMAKE_C_COMPILER_LAUNCHER= -DCMAKE_CXX_COMPILER_LAUNCHER= -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=Off -DLLVM_INCLUDE_TESTS=ON -DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-unknown-linux-gnu -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DLLVM_RUNTIMES_TARGET=aarch64-unknown-linux-gnu -DHAVE_LLVM_LIT=ON -DLLVM_ENABLE_RUNTIMES=compiler-rt -DLLVM_USE_LINKER= "-GCodeBlocks - Ninja" XXX/source/llvm/runtimes/././runtimes & XXX/bin/cmake -E touch XXX/runtimes/runtimes-aarch64-unknown-linux-gnu-stamps//runtimes-aarch64-unknown-linux-gnu-configure I have to mask some things that might reveal my client. Things are complicated by using some proprietary wrappers for our build system. So that’s a configuration that can work, let’s see what you get on your machine. I’d get native execution working smoothly first. Though ASAN seemed to fail with an internal error, but that could be down to many other factors. You can also run it from x86 using qemu if you provide the dynamic loader path. WRITE of size 1 at 0xffff88e00022 thread T0 =287026=ERROR: AddressSanitizer: stack-buffer-overflow on address 0xffff88e00022 at pc 0xaaaae8e57e38 bp 0xffffedf2a570 sp 0xffffedf2a568 bin/clang -target aarch64-unknown-linux-gnu /tmp/test.cpp -o /tmp/test.o -fsanitize=addressĪnd tried a simple buffer overflow example on native AArch64: $. I had to install some extra packages to get the required includes for the build: $ sudo apt install g++-9-aarch64-linux-gnu gcc-9-aarch64-linux-gnu This cmake config will build a new clang, then use that clang to build the runtimes. I’ve specified the full triples for runtimes. (TARGETS_TO_BUILD saves some build time as clang won’t be targeting anything else) DLLVM_RUNTIME_TARGETS='x86_64-pc-linux-gnu aarch64-unknown-linux-gnu' \ Example hello.I got this working locally, so there may be some missing packages on your machine as I’ve got lots of random stuff installed for cross compiling. Save your C# code in a file called hello.cs. In all currently supported versions of Ubuntu open the terminal and type: sudo apt install mono-complete NET which you are not installing from a Debian package. You need to install mono-complete if you want to run software for Mono or Microsoft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |