You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I'm interested on this project and seen lots of suggest to build on WSL2 or just Linux. But I keep tried various ways(#69) and have some record there.
I prepared 2 ways to build:
First one: Using MSVC(v143) or LLVM based(exaloop/llvm-project Clang/LLVM) build on Visual Studio 2022. I'm still keep trying these builds.
pwsh (PowerShell 7, VS2022 environment)
cd ~/Desktop; # powershell recognize ~ path(unix-like) to $env:USERPROFILE
git clone https://github.com/exaloop/llvm-project.git --depth=1
mkdir llvm-project/build; cd llvm-project/build # powershell mkdir == shell "mkdir -p"
cmake ../llvm -G Ninja \ # Ninja Generator
-DCMAKE_BUILD_TYPE=MinSizeRel \ # This option is due to my small 2TB SSD
-DCMAKE_C_COMPILER=cl.exe \ # MSVC v143 14.40.33807, cl= msvc compiler driver
-DCMAKE_CXX_COMPILER=cl.exe \ # MSVC v143 14.40.33807, cl= msvc compiler driver
-DCMAKE_ASM_MASM_COMPILER=ml64.exe \ # MSVC Macro Assembler compiler
-DCMAKE_INSTALL_PREFIX="C:/Developer/Codon/llvm" \
-DLLVM_TARGETS_TO_BUILD="host;NVPTX" \
-DLLVM_ENABLE_PROJECTS="clang;lld"
cmake --build . --target install
cd ~/Desktop;
git clone https://github.com/exaloop/codon.git --depth=1 --branch=windows
mkdir codon/build; cd codon/build
cmake .. -G Ninja
-DCMAKE_BUILD_TYPE=MinSizeRel
-DCMAKE_C_COMPILER=cl
-DCMAKE_CXX_COMPILER=cl
-DCMAKE_ASM_MASM_COMPILER=ml64
-DCMAKE_PREFIX_PATH="C:/Developer/Codon/llvm"
-DCMAKE_INSTALL_PREFIX="C:/Developer/Codon"
-DCODON_GPU=ON
# Remind in VS2022 env no target C/CXX compiler will auto select MSVC
#
Considering the seconds case error, that is the windows limitation. This problem is actually described here: error-export-ordinal-too-large-104116 and the proposition there is to try -fvisibility=hidden in GCC and CLANG to hide some exported functions. Can you try to build it that way?
Sorry for a long time reply. I actually tried this way: The GCC toolchain compile is pretty normal with a fast speed by ninja until linking, it will stucks at very long time, with a high memory usage, and finally stoped linking by printing unknown external linking symbol(10k lines and more). The LLVM toolchain compiles also well, but with a build of lld or msvc linker also quickly stop with link problems(unknown symbol).
Yes, I'm interested on this project and seen lots of suggest to build on WSL2 or just Linux. But I keep tried various ways(#69) and have some record there.
I prepared 2 ways to build:
First one: Using MSVC(v143) or LLVM based(exaloop/llvm-project Clang/LLVM) build on Visual Studio 2022. I'm still keep trying these builds.
The build record see #69.
Second way: I rebuild llvm/clang and codon again, but Using "Strawberry Perl" with toolkit have GCC compiler:
And the second way have almost complete build(), but stop at
ld.exe
:This is quite happy and f**k to me just a little bit objects to finish it... going play Genshin Impact for a little break.
Hope these results helps.
The text was updated successfully, but these errors were encountered: