Skip to content
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

tao_idl Fails when Building ACE/TAO with Spaces in Path on Windows #2283

Open
iguessthislldo opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@iguessthislldo
Copy link
Member

When building ACE/TAO on Windows, it seems to fail if the path has a space:

16>Invoking ""..\..\..\bin\tao_idl" on StringValue.pidl"
16>TAO
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO': No such file or directory
16>tao
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO\tao': No such file or directory
16>orbsvcs
16>c1 : fatal error C1083: Cannot open source file: 'Hornsey\OpenDDS\ACE_wrappers\TAO\orbsvcs': No such file or directory
16>tao-idli_oeXD0X.cpp
16>..\..\..\bin\tao_idl: preprocessor "CL.EXE" returned with an error
16>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'StringValue.pidl' exited with code 1.
16>Done building project "Valuetype_Idl.vcxproj" -- FAILED.

Adding -v to the tao_idl to enable this debug message results in this CL command:

1>..\..\..\bin\tao_idl: spawning: CL.EXE -D__TAO_IDL=0x060521 -I. "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO"" "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO\tao"" -nologo -E -I..\.. -D__TAO_IDL_IDL_VERSION=0x030000 -D__TAO_IDL_FEATURES=\"tao/idl_features.h\" "-I"C:\Users\Fred Hornsey\OpenDDS\ACE_wrappers\TAO\orbsvcs"" -Iunused -Iunused\ciao -Iunused\ccm C:\Users\FREDHO~1\AppData\Local\Temp\tao-idli_OkJJOw.cpp

This code looks like what supposed handle it:

if (ACE_OS::strchr (str, ' '))
{
ACE_NEW_NORETURN (replace, char[ACE_OS::strlen (str) + 3]);
allocate_error = !replace;
if (replace)
{
replace[0] = '"';
ACE_OS::strcpy (replace + 1, str);
ACE_OS::strcat (replace, "\"");
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant