Re: Issue compiling with Microsoft Visual Studio 2022
Benjamin Bertrand via omniORB-list <[email protected]> Wed, 21 Jan 2026 15:54:33 +0000
| Newsgroups | gmane.comp.corba.omniorb.user |
|---|---|
| Message-ID | <GVZP280MB1342121A6259AF57EF7923FBA096A@GVZP280MB1342.SWEP280.PROD.OUTLOOK.COM> |
--===============2476369688144931995==
Content-Language: en-GB
Content-Type: multipart/alternative;
boundary="_000_GVZP280MB1342121A6259AF57EF7923FBA096AGVZP280MB1342SWEP_"
--_000_GVZP280MB1342121A6259AF57EF7923FBA096AGVZP280MB1342SWEP_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
> Looking at that output, it only includes a single backslash in the comman=
d that should be run in cygwin bash:
>
> ../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR -Z=
i -nologo -D_OMNITHREAD_DLL -I. -I. -I../../../include -D__WIN32__ -D_WIN32=
_WINNT=3D0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=3D4 -D_CRT_SECURE_NO_DEP=
RECATE=3D1 -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/o=
mniORB4/internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERS=
ION_STRING=3D'"4.3.4"' -DOMNIORB_VERSION_HEX=3D'0x040304f1' -DCONFIG_DEFAUL=
T_LOCATION=3D'"C:\\OMNIORB.CFG"' -DCONFIG_ENV=3D'"OMNIORB_CONFIG"' -D"NTArc=
hitecture" -I. -I. -I../../../../include -D__WIN32__ -D_WIN32_WINNT=3D0x050=
1 -D__x86__ -D__NT__ -D__OSVERSION__=3D4 -D_CRT_SECURE_NO_DEPRECATE=3D1 -Fo=
shared/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=3D\"4.3.4\" -DOMNIORB_VERSION_HEX=
=3D0x040304f1 -DCONFIG_DEFAULT_LOCATION=3D\"C:\OMNIORB.CFG\" -DCONFIG_ENV=
=3D\"OMNIORB_CONFIG\" -DNTArchitecture -I. -I. -I..\..\..\..\include -D__WI=
N32__ -D_WIN32_WINNT=3D0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=3D4 -D_CRT=
_SECURE_NO_DEPRECATE=3D1 -Foshared\anonObject.o "-Fdshared anonObject.cc"
But as you can see '-Fdshared\\ anonObject.cc=92 was transformed to '"-Fdsh=
ared anonObject.cc=94=92 (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 pat=
ches are applied to some make files. What do those patches do?
The patch (https://github.com/conda-forge/omniorb-feedstock/blob/main/recip=
e/windows-build.patch) is mainly to:
*
select the compiler
*
Set the python path to the conda one
*
Replace "/manifest=94 with =93-manifest=94 because the first one didn=92t w=
ork
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 tryi=
ng to run: /d/bld/omniorb-suite_1767871648386/_h_env/python.exe -c import s=
ys; sys.stdout.write(sys.version[0] =3D=3D "3" and "python3" or "python2")
By the way, do you have plan to remove python 2 support?
Or just keep it?
Benjamin
--_000_GVZP280MB1342121A6259AF57EF7923FBA096AGVZP280MB1342SWEP_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
> Looking at that output, it only includes a single backslash in the com=
mand that should be run in cygwin bash:</div>
<div style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: =
12pt; color: rgb(0, 0, 0);">
></div>
<div style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: =
12pt; color: rgb(0, 0, 0);">
> ../../../bin/x86_win32/clwrapper -gnuwin32 -c -O2 -FS -MD -EHs -GS -GR=
-Zi -nologo -D_OMNITHREAD_DLL -I. -I. -I../../../include -D__WIN32__ -D_WI=
N32_WINNT=3D0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=3D4 -D_CRT_SECURE_NO_=
DEPRECATE=3D1 -Foshared/nt.o -Fdshared\ nt.cc</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
This log file was when I tested a single backslash.</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
In the initial test, it had 2:</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Menlo, Monaco, monospace; font-size:=
12px; color: rgb(0, 0, 0);">
2026-01-08T10:54:03.3000214Z ../../../../bin/x86_win32/clwrapper -gnuwin32 =
-c -O2 -FS -MD -EHs -GS -GR -Zi -nologo -I.. -I./.. -I../../../../include/o=
mniORB4/internal -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB=
_VERSION_STRING=3D'"4.3.4"' -DOMNIORB_VERSION_HEX=3D'0x040304f1'
-DCONFIG_DEFAULT_LOCATION=3D'"C:\\OMNIORB.CFG"' -DCONFIG_ENV=3D'=
"OMNIORB_CONFIG"' -D"NTArchitecture" -I. -I. -I../../..=
/../include -D__WIN32__ -D_WIN32_WINNT=3D0x0501 -D__x86__ -D__NT__ -D__OSVE=
RSION__=3D4 -D_CRT_SECURE_NO_DEPRECATE=3D1 -Foshared/anonObject.o -Fdshared=
\\
anonObject.cc<br>
2026-01-08T10:54:03.3633009Z cl : Command line error D8003 : missing source=
filename<br>
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=3D\"4.3.4\" -DOMNIORB_V=
ERSION_HEX=3D0x040304f1 -DCONFIG_DEFAULT_LOCATION=3D\"C:\OMNIORB.CFG\&=
quot;
-DCONFIG_ENV=3D\"OMNIORB_CONFIG\" -DNTArchitecture -I. -I. -I..\=
..\..\..\include -D__WIN32__ -D_WIN32_WINNT=3D0x0501 -D__x86__ -D__NT__ -D_=
_OSVERSION__=3D4 -D_CRT_SECURE_NO_DEPRECATE=3D1 -Foshared\anonObject.o &quo=
t;-Fdshared anonObject.cc"</div>
<div dir=3D"ltr" style=3D"font-family: Menlo, Monaco, monospace; font-size:=
12px; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr"><span style=3D"font-family: Aptos, Arial, Helvetica, sans-=
serif; font-size: 12pt; color: rgb(0, 0, 0);">But as you can see '</span><s=
pan style=3D"font-family: Menlo, Monaco, monospace; font-size: 12px; backgr=
ound-color: rgb(255, 255, 255);">-Fdshared\\
anonObject.cc=92 was transformed to '"-Fdshared anonObject.cc=94=92&n=
bsp;(between double quotes)</span></div>
<div style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: =
12pt; color: rgb(0, 0, 0);">
...</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: =
12pt; color: rgb(0, 0, 0);">
></div>
<div style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: =
12pt; color: rgb(0, 0, 0);">
> I have no idea what conda-forge is doing, so I don't know what thing h=
as 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?</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
The patch (<a href=3D"https://github.com/conda-forge/omniorb-feedstock/blob=
/main/recipe/windows-build.patch" data-outlook-id=3D"15b667ff-461f-466f-a40=
8-bebbe0b1386e">https://github.com/conda-forge/omniorb-feedstock/blob/main/=
recipe/windows-build.patch</a>) is mainly
to:</div>
<ul data-editing-info=3D"{"applyListStyleFromLevel":false,"u=
norderedStyleType":2}" style=3D"margin-top: 0px; margin-bottom: 0px;">
<li style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0); list-style-type: "- ";">
<div dir=3D"ltr" role=3D"presentation">select the compiler</div>
</li><li style=3D"font-family: Aptos, Arial, Helvetica, sans-serif; font-si=
ze: 12pt; color: rgb(0, 0, 0); list-style-type: "- ";">
<div dir=3D"ltr" role=3D"presentation">Set the python path to the conda one=
</div>
</li><li style=3D"list-style-type: "- ";">
<div dir=3D"ltr" role=3D"presentation"><span style=3D"font-size: 16px;">Rep=
lace "/manifest</span>=94<span style=3D"font-size: 16px;"> with =
=93-manifest=94 because the first one didn=92t work</span></div>
</li></ul>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 16px;">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 16px;">
I also had to patch PYSUBDIR on windows in this release: <span style=3D"col=
or: rgb(0, 0, 0);">
<a href=3D"https://github.com/conda-forge/omniorb-feedstock/blob/main/recip=
e/fix-pysubdir-omniorb.patch" data-outlook-id=3D"7ca7716d-4299-48ed-8976-c7=
9feeb643cd">https://github.com/conda-forge/omniorb-feedstock/blob/main/reci=
pe/fix-pysubdir-omniorb.patch</a></span></div>
<div dir=3D"ltr"><span style=3D"font-family: Aptos, Arial, Helvetica, sans-=
serif; font-size: 16px;">It used to work, but now the shell was removing &n=
bsp;the single quotes and trying to run:
</span><span style=3D"font-family: "Monaspace Neon", ui-monospace=
, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mo=
no", monospace; font-size: 12px; color: rgb(31, 35, 40); background-co=
lor: rgb(255, 255, 255);">/d/bld/omniorb-suite_1767871648386/_h_env/python.=
exe
-c import sys; sys.stdout.write(sys.version[0] =3D=3D "3" and &q=
uot;python3" or "python2")</span></div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 16px; color: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">By the way, do you ha=
ve plan to remove python 2 support?</span></div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 16px; color: rgb(0, 0, 0);">
<span style=3D"background-color: rgb(255, 255, 255);">Or just keep it?</spa=
n></div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir=3D"ltr" style=3D"font-family: Aptos, Arial, Helvetica, sans-serif;=
font-size: 12pt; color: rgb(0, 0, 0);">
Benjamin</div>
</body>
</html>
--_000_GVZP280MB1342121A6259AF57EF7923FBA096AGVZP280MB1342SWEP_--
--===============2476369688144931995==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
omniORB-list mailing list
[email protected]
https://www.omniorb-support.com/mailman/listinfo/omniorb-list
--===============2476369688144931995==--