solomoncyj
solomoncyj
i have flags to rust that overids the liker to lld-link, and I have enviroment variables pointing to lld-link as the linker.. so maybe the buildscript ovrode the linker, but...
Hmmm, let me set up ar variables and see if it fixes it
ok, exporting AR = llvm-ar fixed it, i think therre should be a toolchain checker to make sure all of them is compatible before compiling, like cmake
Cold be a possibility as clang's flto emits llvm IR insted of objects, as lld can optimize it better, but runs the risk of non toolchain not being able to...
``` sudo ./randomx_boost.sh Detected Zen3 CPU wrmsr: pwrite: Operation not permitted ```
``` grep 'model' /proc/cpuinfo model : 117 model name : AMD Ryzen 7 8845HS w/ Radeon 780M Graphics model : 117 model name : AMD Ryzen 7 8845HS w/ Radeon...
Linker errors ``` [0/2] Re-checking globbed directories... [444/445] Linking CXX executable bin/chatterino FAILED: bin/chatterino : && /usr/bin/clang++ -march=native -flto=thin -O3 -DNDEBUG -fuse-ld=lld -Xlinker --dependency-file=src/CMakeFiles/chatterino.dir/link.d src/CMakeFiles/chatterino-lib.dir/chatterino-lib_autogen/mocs_compilation.cpp.o src/CMakeFiles/chatterino-lib.dir/Application.cpp.o src/CMakeFiles/chatterino-lib.dir/BrowserExtension.cpp.o src/CMakeFiles/chatterino-lib.dir/RunGui.cpp.o src/CMakeFiles/chatterino-lib.dir/common/Args.cpp.o src/CMakeFiles/chatterino-lib.dir/common/ChannelChatters.cpp.o...
IT BUILDS!
hm. it is a hard dependency of the package. https://pkgs.rpmfusion.org/cgit/nonfree/discord.git/tree/discord.spec?id=1c568e37901a70e9581250a91666337ff9434b6d#n32
executing the bins in the build /bin dir directory does not err tho