-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile errors on Windows environment #2811
Comments
I have encoutered the same problem, how did you solve them. |
I couldn't solve this issue myself for now. And I think issue 2 could be solved by using os.curdir, os.rep and vice versa when cleaning up installation scripts. |
You can install it like we do at the CI: lpython/.github/workflows/CI.yml Line 83 in 7eb2bea
Alternatively, use WSL and build it in Ubuntu, which is also tested and works. |
@Elimiriel the error you are getting is:
You might have the wrong LLVM version installed. The CI uses LLVM 11, so you can install that. In LFortran we recently got all LLVM version 10-19 working, but the fixes are not yet ported to LPython. I think LPython currently works with LLVM 10-16. |
0. environment_win.yml should be downloaded manually, and the requirements could be installed manually
At the first trial the file was auto-generated, but after some times it doesn't be generated. After reading that, I can tried in Anaconda environment+manual installation of modules in yml.
1. About initial environment settings
The code also requires 'utils' and 'case-insensitive-dictionary' module. Be aware: 'case_insensitive_dict' doesn't work even thought their names are similar.
2. While running build0.bat: A syntax warning kicks into.
C:\ProgramData\lpython\lpython\src\libasr\wasm_instructions_visitor.py:174: SyntaxWarning: invalid escape sequence '\.' splitted_name = re.split("[\._]", func)
It was possible to solve that correct as
r"[\._]"
3. While running build1.bat: A fail, lots of C4xxx warnings about possible loss of data, stop of ninja by subcommand failure
3.1 Fail
FAILED: src/libasr/CMakeFiles/asr.dir/codegen/evaluator.cpp.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe /nologo /TP -DHAVE_TARGET_X86=1 -DHAVE_WHEREAMI=1 -DHAVE_ZLIB=1 -DLCOMPILERS_FAST_ALLOC=1 -IC:\ProgramData\lpython\lpython\src\libasr\.. -I"C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK\include" -external:IC:\ProgramData\anaconda3\Library\include -external:W0 /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /O2 /Ob2 /DNDEBUG -std:c++17 /GR- /showIncludes /Fosrc\libasr\CMakeFiles\asr.dir\codegen\evaluator.cpp.obj /Fdsrc\libasr\CMakeFiles\asr.dir\asr.pdb /FS -c C:\ProgramData\lpython\lpython\src\libasr\codegen\evaluator.cpp
3.2 and 3.3: They're too long to post. Because the prompt window cannot maintain whole messages, early stage prompts were scrolled out. Please check a attachment txt.
2409WinX64_lpython_err_log.txt
Additional info: LLVM 19.1.0 RC4 is connected by a plugin with my MSVS.
The text was updated successfully, but these errors were encountered: