jwinarske / meta-vulkan

Yocto Vulkan Layer
MIT License
10 stars 4 forks source link

[riscv] swiftshader #18

Closed jwinarske closed 1 month ago

jwinarske commented 5 months ago
| FAILED: third_party/llvm-10.0/CMakeFiles/llvm.dir/llvm/lib/Analysis/CFLSteensAliasAnalysis.cpp.o
| /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/riscv64-poky-linux-clang++ --sysroot=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/recipe-sysroot -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/linux/include -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/include -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/AArch64 -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/ARM -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/Mips -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/PowerPC -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/RISCV -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Target/X86 -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/include -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/IR -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/AArch64 -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/ARM -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/Mips -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/PowerPC -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/RISCV -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Target/X86 -I/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/configs/common/lib/Transforms/InstCombine -target riscv64-poky-linux    -mlittle-endian -mno-relax -Qunused-arguments -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0=/usr/src/debug/swiftshader/git-r0                      -fdebug-prefix-map=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0=/usr/src/debug/swiftshader/git-r0                      -fdebug-prefix-map=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden  -m64 -fPIC -march=x86-64 -mtune=generic -DNDEBUG -Os -DNDEBUG -ffunction-sections -fdata-sections -fomit-frame-pointer -fPIC -Wno-deprecated-declarations -std=gnu++17 -MD -MT third_party/llvm-10.0/CMakeFiles/llvm.dir/llvm/lib/Analysis/CFLSteensAliasAnalysis.cpp.o -MF third_party/llvm-10.0/CMakeFiles/llvm.dir/llvm/lib/Analysis/CFLSteensAliasAnalysis.cpp.o.d -o third_party/llvm-10.0/CMakeFiles/llvm.dir/llvm/lib/Analysis/CFLSteensAliasAnalysis.cpp.o -c /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/git/third_party/llvm-10.0/llvm/lib/Analysis/CFLSteensAliasAnalysis.cpp
| clang-16: error: invalid arch name 'x86-64', string must begin with rv32{i,e,g} or rv64{i,g}
| ninja: build stopped: subcommand failed.
| WARNING: /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/temp/run.do_compile.2353557:153 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
|   #1: cmake_runcmake_build, /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/temp/run.do_compile.2353557, line 153
|   #2: cmake_do_compile, /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/temp/run.do_compile.2353557, line 147
|   #3: do_compile, /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/temp/run.do_compile.2353557, line 142
|   #4: main, /home/joel/agl/star-five/tmp/work/riscv64-poky-linux/swiftshader/git-r0/temp/run.do_compile.2353557, line 166
jwinarske commented 1 month ago

with CMake patch I get to [943/1463]

| FAILED: src/Reactor/CMakeFiles/ReactorLLVM.dir/LLVMJIT.cpp.o
| /mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot-native/usr/bin/riscv64-poky-linux/riscv64-poky-linux-clang++ --sysroot=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot -DREACTOR_ANONYMOUS_MMAP_NAME=swiftshader_jit -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot/usr/include/libdrm -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/src/Reactor/. -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/linux/include -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/include -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/AArch64 -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/ARM -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/Mips -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/PowerPC -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/RISCV -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/llvm/lib/Target/X86 -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/include -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/IR -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/AArch64 -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/ARM -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/Mips -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/PowerPC -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/RISCV -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Target/X86 -I/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/third_party/llvm-10.0/configs/common/lib/Transforms/InstCombine -target riscv64-poky-linux     -mlittle-endian --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types   -fmacro-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git=/usr/src/debug/swiftshader/git  -fdebug-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git=/usr/src/debug/swiftshader/git  -fmacro-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/build=/usr/src/debug/swiftshader/git  -fdebug-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/build=/usr/src/debug/swiftshader/git  -fdebug-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot=  -fmacro-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot=  -fdebug-prefix-map=/mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/recipe-sysroot-native=  -fvisibility-inlines-hidden -stdlib=libc++ -DNDEBUG -Os -DNDEBUG -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu++17 -fPIC -Wall -Wreorder -Wsign-compare -Wmissing-braces -Wextra -Wunreachable-code-loop-increment -Wunused-lambda-capture -Wstring-conversion -Wextra-semi -Wignored-qualifiers -Wdeprecated-copy -Wno-unneeded-internal-declaration -Wno-unused-private-field -Wno-comment -Wno-extra-semi -Wno-unused-parameter -Wno-unknown-warning-option -DSWIFTSHADER_LOGGING_LEVEL=Info -fno-exceptions -Wthread-safety -Wno-deprecated-declarations -MD -MT src/Reactor/CMakeFiles/ReactorLLVM.dir/LLVMJIT.cpp.o -MF src/Reactor/CMakeFiles/ReactorLLVM.dir/LLVMJIT.cpp.o.d -o src/Reactor/CMakeFiles/ReactorLLVM.dir/LLVMJIT.cpp.o -c /mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/src/Reactor/LLVMJIT.cpp
| /mnt/raid10/yocto/master/visionfive2/tmp/work/riscv64-poky-linux/swiftshader/git/git/src/Reactor/LLVMJIT.cpp:801:83: error: no member named 'Create' in 'llvm::jitlink::InProcessMemoryManager'
|   801 |             , objectLayer(session, llvm::cantFail(llvm::jitlink::InProcessMemoryManager::Create()))
|       |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| 1 error generated.
jwinarske commented 1 month ago

this was due to llvm-10 usage. Patching to use llvm-16, build passes! https://github.com/jwinarske/meta-vulkan/pull/21