[omniORB] Issue compiling with Microsoft Visual Studio 2022
Benjamin Bertrand
benjamin.bertrand at maxiv.lu.se
Wed Jan 21 15:54:33 UTC 2026
> 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
This log file was when I tested a single backslash.
In the initial test, it had 2:
2026-01-08T10:54:03.3000214Z ../../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I./.. -I../../../../include/omniORB4/internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING='"4.3.4"' -DOMNIORB_VERSION_HEX='0x040304f1' -DCONFIG_DEFAULT_LOCATION='"C:\\OMNIORB.CFG"' -DCONFIG_ENV='"OMNIORB_CONFIG"' -D"NTArchitecture" -I. -I. -I../../../../include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared/anonObject.o -Fdshared\\ anonObject.cc
2026-01-08T10:54:03.3633009Z cl : Command line error D8003 : missing source filename
2026-01-08T10:54:03.3651582Z cl -c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I.\.. -I..\..\..\..\include\omniORB4\internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING=\"4.3.4\" -DOMNIORB_VERSION_HEX=0x040304f1 -DCONFIG_DEFAULT_LOCATION=\"C:\OMNIORB.CFG\" -DCONFIG_ENV=\"OMNIORB_CONFIG\" -DNTArchitecture -I. -I. -I..\..\..\..\include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 -Foshared\anonObject.o "-Fdshared anonObject.cc"
But as you can see '-Fdshared\\ anonObject.cc’ was transformed to '"-Fdshared anonObject.cc”’ (between double quotes)
...
>
> 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?
The patch (https://github.com/conda-forge/omniorb-feedstock/blob/main/recipe/windows-build.patch) is mainly to:
*
select the compiler
*
Set the python path to the conda one
*
Replace "/manifest” with “-manifest” because the first one didn’t work
I also had to patch PYSUBDIR on windows in this release: https://github.com/conda-forge/omniorb-feedstock/blob/main/recipe/fix-pysubdir-omniorb.patch
It used to work, but now the shell was removing the single quotes and trying to run: /d/bld/omniorb-suite_1767871648386/_h_env/python.exe -c import sys; sys.stdout.write(sys.version[0] == "3" and "python3" or "python2")
By the way, do you have plan to remove python 2 support?
Or just keep it?
Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.omniorb-support.com/pipermail/omniorb-list/attachments/20260121/6f188d1e/attachment.htm>
More information about the omniORB-list
mailing list