Closed LaurentOngaro closed 9 hours ago
I cannot replicate this on my Windows 11 machine. But I wonder if anyone else can.
I've tested once again today with the current master version, the bug is still present for me.
Please note I've updated powershell to its last version available a 2 or 3 months ago, perhaps the 'get-date' command is still present in older versions. I'm using PowerShell 7.4.6
I have this error when building on my windows machine, looks slightly different from yours though:
> build.bat
libtommath.cpp
main.cpp
LINK : fatal error LNK1104: cannot open file 'odin.exe'
mt : manifest authoring error c1010001: Values of attribute "version" not equal in different manifest snippets.
The system cannot find the batch label specified - end_of_build
build.bat libtommath.cpp main.cpp LINK : fatal error LNK1104: cannot open file 'odin.exe'
mt : manifest authoring error c1010001: Values of attribute "version" not equal in different manifest snippets. The system cannot find the batch label specified - end_of_build
Perhaps could you test
powershell get-date -format "{yyyyMMdd}"
in your powershell prompt to see if the command still exists for you ?
Uhm....
powershell get-date -format "{yyyyMMdd}"
I'm using PowerShell 7.4.6
Actually, you're not using powershell 7.4.6. In this case you're using the Inferior version of the powershell known as the Windows Powershell (the one with blue background). Powershell Core is called via pwsh.exe
I understand your point, but even though I usually start my terminal using pwsh.exe, this is the result of the commands I run.
As you can see, I run both commands using powershell
and not pwsh
, and get date
throws an error.
The error is also present if I launch a terminal using powershell.exe
Please note that this error is not a blocking bug for me because I can compile using an old version of the build.bat
file.
But the fact that the get-date
argument is missing is very strange and of course it is not really related to Odin.
Added a little C program to print the current date as YYYYMMDD, which allows us not to rely on cmd.exe
or any version of PowerShell. Let us know if this fixes your issue.
Issue solved ! Thanks to Kelimion
My System: Windows 11x64
I've downloaded the master version (and also the dev-2024-11 version) and I can't build Odin because the following error occurs:
I've made some tests, to find the cause of the issue and I found that the
build.bat file
of thedev-2024-10
works well and if I replace the master version by this one, I can build Odin.The changes in the file are very small. The line that causes the error in the build is :
In the master version (build is HS):
In the dev-2024-10 version (build is OK):
(note that this line of script is buggy, because the loop uses %%i and the CURR_DATE_TIME uses %%j,I've tested to put
%%i
instead of%%j
and nothing changesTo debug the code deeper, I've added the line:
after the line:
in both files (master and dev-2024-10) and these are the results:
with the dev-2024-10 version -> "2024.11.0.0" is printed with the master version -> "Loca.lD.0.0" is printed
I ran the command from cmd.exe.
I've got the error message: