odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.17k stars 550 forks source link

Filename missing #1897

Open JesseRMeyer opened 1 year ago

JesseRMeyer commented 1 year ago

aye

F:\webgl2\src>odin build build_test_data -debug -show-debug-messages
[DEBUG] build_paths[0]: F:/webgl2/src/build_test_data/
[DEBUG] build_paths[1]:
[DEBUG] build_paths[2]:
[DEBUG] build_paths[3]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22000.0/
[DEBUG] build_paths[4]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22000.0/um/x64/
[DEBUG] build_paths[5]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22000.0/ucrt/x64/
[DEBUG] build_paths[6]: F:/VS2022/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/
[DEBUG] build_paths[7]: F:/VS2022/VC/Tools/MSVC/14.32.31326/lib/x64/
[DEBUG] build_paths[8]: F:/webgl2/src/build_test_data/.exe
[DEBUG] build_paths[9]:
        Odin: dev-2022-07
        OS:   Windows 10 Home Basic (version: 21H2), build 19044.1826
        CPU:  Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
        RAM:  32717 MiB
Kelimion commented 1 year ago

I imagine that you're using the portable MSVC script and set it up in F:\VS2022?

thePHTest commented 1 year ago

I can repro this without -debug . Any directory specified besides . seems to reproduce this. As another data point, I am not calling the portable MSVC script. I call "call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64"

Kelimion commented 1 year ago

I can repro this without -debug . Any directory specified besides . seems to reproduce this. As another data point, I am not calling the portable MSVC script. I call "call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64"

The thick plottens, indeed. Could be that fight_through_microsoft_craziness_registered_trademark gets a bit loopy with VS '22.

thePHTest commented 1 year ago

odin build testing

[DEBUG] build_paths[0]: C:/windrunner/testing/
[DEBUG] build_paths[1]:
[DEBUG] build_paths[2]:
[DEBUG] build_paths[3]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/
[DEBUG] build_paths[4]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/um/x64/
[DEBUG] build_paths[5]: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.19041.0/ucrt/x64/
[DEBUG] build_paths[6]: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/
[DEBUG] build_paths[7]: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/lib/x64/
[DEBUG] build_paths[8]: C:/windrunner/testing/.exe

Odin: dev-2022-07:14074e8c OS: Windows 10 Professional (version: 21H2), build 19044.1826 CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz RAM: 32705 MiB

JesseRMeyer commented 1 year ago

I imagine that you're using the portable MSVC script and set it up in F:\VS2022?

Not knowingly. Simply installed MSVC to a different folder during standard installation.

Kelimion commented 1 year ago

I imagine that you're using the portable MSVC script and set it up in F:\VS2022?

Not knowingly. Simply installed MSVC to a different folder during standard installation.

Good to know, thanks. I ask because there's a slightly different detection path used for the portable installs, but it appears you're both using bog standard VS installs.

thePHTest commented 1 year ago

fwiw doing odin build ../windrunner/testing/ worked just fine. It seems to be that when it's a single directory or ../testing that it fails

thePHTest commented 1 year ago

Can we re-open this issue? It hasn't been resolved yet.

DragosPopse commented 1 year ago

https://github.com/odin-lang/Odin/pull/2280