[omniORB] Issue compiling with Microsoft Visual Studio 2022

Duncan Grisby duncan at grisby.org
Wed Jan 14 11:02:38 UTC 2026


On Tue, 2026-01-13 at 15:56 +0000, Benjamin Bertrand via omniORB-list
wrote:


[...]
> > Maybe this issue is not related to the visual studio itself, just
> > the command processor your are using?
> 
> 
> It could be. I’m compiling on conda-forge, so using a conda
> environment:
> https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1435250&view=logs&j=535b614b-9e28-51ef-eb67-d0aa83d01d61&t=f3b82646-01b4-574c-79b5-1561965b3e04

Looking at that output, it only includes a single backslash in the
command that should be run in cygwin bash:

../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR
-Zi -nologo -D_OMNITHREAD_DLL -I. -I. -I../../../include -D__WIN32__ -
D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -
D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/nt.o -Fdshared\ nt.cc

That is given to clwrapper, which converts cygwin paths to Windows
paths, and it sees the "-Fdshared\ nt.cc" as a single argument
including a space, which it converts into a quoted argument with the
space:

cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -D_OMNITHREAD_DLL -I. -I. -
I..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__
-D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\nt.o "-
Fdshared nt.cc" 


When I run it just with make inside a Visual Studio 2022 command
prompt, it correctly has two backslashes:


../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR
-Zi -nologo -D_OMNITHREAD_DLL -I. -I. -I../../../include -D__WIN32__ -
D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -
D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/nt.o -Fdshared\\ nt.cc


The shell eats one backslash, so then the cl command generated by
clwrapper is correct:

cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -D_OMNITHREAD_DLL -I. -I. -
I..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__
-D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\nt.o -
Fdshared\ -Tpnt.cc



I have no idea what conda-forge is doing, so I don't know what thing
has damaged the backslashes. I do see that earlier on in the build log
some patches are applied to some make files. What do those patches do?


Duncan.

-- 
Duncan Grisby <duncan at grisby.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20260114/a6859697/attachment.htm>


More information about the omniORB-list mailing list