-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[omniorb] Build of ANYTHING fails early on with "vcvarsall.bat returned 255" #38831
Comments
One issue I see is the path - |
I have no control over the location of VS - I request it and it gets installed from a centralized package repository in our organisation. That being said, installation location should not be of importance, right? Otherwise, VS 2022 seems to work OK, even when being installed in a wrong folder. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
I'm not sure, but it seems the problem is the length limit of the command line arguments in Windows, it is equal to 8191 characters. It appears that due to the large number of paths in the user Also, there another length limitations:
You can test it youself with the following bat file: set VSCMD_DEBUG=0
set VCVARSALL_PATH=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
call "%VCVARSALL_PATH%\vcvarsall.bat" -vcvars_ver=14.33.31629 amd64 There must be two errors printed (about the length and about a command syntax). |
But actually the problem probably with a Check list:
|
Now I can successfully run
|
In my case, updating Visual Studio 2022 Community fixes the problem! Also, I removed extra Build Tools for Visual Studio 2022 (2). |
Operating system
WIN 10 Enterprise 22H2
Compiler
VS 2022
Steps to reproduce the behavior
Failure logs
Additional context
There were similar issues reported earlier:
However, this time it is with newer version of compilers, so maybe the problem is somewhere else?
The
--debug
invocation gives a command line that failed. When I replay that commandin a new command window, I don't see any errors, just a list of environment variables:
Versions:
2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
7eb700c9688daed6d8bdcdc571ebe3eedea6a774
The text was updated successfully, but these errors were encountered: