<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Hi Marc, Duncan, all,</div><div><br></div><div>thanks for your reply. In my case, the issue is slightly different, since I am targeting x86_win_mingw and sadly the patches do not apply. </div><div><br></div><div>Here, the issue is the following:</div><div><br></div><div>for each idl file (e.g. corbaidl.idl), the omniORBpy/modules/<a href="http://dir.mk">dir.mk</a> script calls the python omniidl compiler interface ((lib/python/omniidl/main.py).</div><div>In that call, it runs a preprocessor command aimed to generated the c++ code from the IDL:</div><div><br></div><div> <font face="monospace">file = os.popen(preproc_cmd, "r")</font></div><div><br></div><div> with file: the file descriptor and preproc_cmd the preprocessor command which is a call to omnicpp for c++ code generation:</div><div> <font face="monospace">omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2630 -I "../../.</font></div><div><div><font face="monospace">./../../idl" -I "D:/msys64/idl/omniORB" -I "D:/msys64/share/idl/omniORB" -I "D:/msys64/idl/omniORB" -D__OMNIIDL_PYTHON__ "../../../../../idl/corbaidl.idl"</font></div></div><div><br></div><div>The file descriptor as well as the idl file are given as arguments to _omniidl.compile indeed IdlPyCompile of idlpython.cc </div><div>and strangely IdlPyCompile fails to run: file = fdopen(fd, "r") (fd is the file descriptor os.popen(preproc_cmd, "r"))</div><div><br></div><div>The issue here is simply that <font face="monospace">IdlPyCompile </font>fails to open the file descriptor.</div><div><br></div><div>I am wondering whether this could not be linked to some encoding issue here, since if i interactively run</div><div><br></div><div><div><font face="monospace">omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2630 -I "../../.</font></div><div><font face="monospace">./../../idl" -I "D:/msys64/idl/omniORB" -I "D:/msys64/share/idl/omniORB" -I "D:/msys64/idl/omniORB" -D__OMNIIDL_PYTHON__ "../../../../../idl/corbaidl.idl</font></div></div><div><br></div><div>it generates the c++ code without error:</div><div><br></div><div>Does someone have some suggestions on how to proceed here ?</div><div><br></div><div>Thanks for your valuable feedback.</div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2024 at 9:47 AM Lucca-Daniau, Marc-Francois <<a href="mailto:Marc-Francois.Lucca-Daniau@gehealthcare.com">Marc-Francois.Lucca-Daniau@gehealthcare.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg4835150409082119901">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_4835150409082119901WordSection1">
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)">Made a try some time ago and submitted some changes : see "Building OmniORB on MSYS2" thread on that mailing list.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)">Hope it could help.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)"><br>
Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)">MFLD<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(112,48,160)"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Nabil Ghodbane via omniORB-list <<a href="mailto:omniorb-list@omniorb-support.com" target="_blank">omniorb-list@omniorb-support.com</a>>
<br>
<b>Sent:</b> Sunday, 14 July, 2024 21:36<br>
<b>To:</b> Duncan Grisby <<a href="mailto:duncan@grisby.org" target="_blank">duncan@grisby.org</a>><br>
<b>Cc:</b> <a href="mailto:omniORB-list@omniorb-support.com" target="_blank">omniORB-list@omniorb-support.com</a><br>
<b>Subject:</b> EXT: Re: [omniORB] Building omniORBpy 2.4.6 on MSYS2 + MinGW64<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div align="center">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="50%" style="width:50%;background:rgb(255,235,156);padding:0in">
<p class="MsoNormal" align="center" style="text-align:center"><b><span style="color:rgb(156,101,0)">AVERTISSEMENT:
</span></b><span style="color:black">cet email provient de l'extérieur de GE. Veuillez valider l'adresse e-mail de l'expéditeur avant de cliquer sur les liens ou les pièces jointes, car ils risquent de ne pas être sûrs.</span><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal">yes you're right it's 4.2.6; I modified the <a href="http://dir.mk/" target="_blank">
dir.mk</a> files such that the pyd files are now generated.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Unfortunately, I come to this error during the installation process about corbaidl.idl<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Does this by chance ring a bell ? I welcome hints about how to proceed here .<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I will of course gather all these patches into one single file that I will share at the end .<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Thanks for your valuable feedback.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Traceback (most recent call last):</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> File "<string>", line 33, in <module></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> File "D:\msys64\home\nghodban\workspace\BUILD\omniORB-4.2.6\lib\python\omniidl\main.py", line 430, in main</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> tree = _omniidl.compile(file, name)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">OSError: Cannot open file descriptor</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">nghodban@PO16920 MINGW64 ~/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">$ make export</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">PYSUBDIR = python3</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/modules...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[1]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File pydistdate.hh hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File _omnipy.pyd hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/modules/codesets...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules/codesets'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File _omnicodesets.pyd hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules/codesets'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/modules/connections...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules/connections'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File _omniConnMgmt.pyd hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules/connections'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[1]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/modules'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/python3...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[1]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/python3/omniidl_be...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3/omniidl_be'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File __init__.py hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">File python.py hasn't changed.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.\\cxx'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.\\cxx\\dynskel'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.\\cxx\\header'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.\\cxx\\impl'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Listing '.\\cxx\\skel'...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3/omniidl_be'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">making export in src/lib/omniORBpy/python3/omniORB...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Entering directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3/omniORB'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">../../../../../bin/x86_win32/omniidl -v -p../../../../../python3/omniidl_be \</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> -I../../../../../idl \</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> -I../../../idl/omniORB \</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> -I../../../share/idl/omniORB \</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> -I/idl/omniORB \</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> -bpython -nf -Wbno_package ../../../../../idl/corbaidl.idl</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">omniidl: Importing back-end 'python'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">omniidl: 'python' imported from 'D:\msys64\home\nghodban\workspace\BUILD\omniORB-4.2.6\lib\python\omniidl_be\python.py'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">omniidl: Preprocessing '../../../../../idl/corbaidl.idl' with 'D:\msys64\home\nghodban\workspace\BUILD\omniORB-4.2.6\bin\x86_win32\omnicpp -lang-c++ -undef -D__OMNIIDL__=0x2630 -I "../../../..</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">/../idl" -I "../../../idl/omniORB" -I "../../../share/idl/omniORB" -I "D:/msys64/idl/omniORB" -D__OMNIIDL_PYTHON__ "../../../../../idl/corbaidl.idl"'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">omniidl: Running front end</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">Traceback (most recent call last):</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> File "<string>", line 33, in <module></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> File "D:\msys64\home\nghodban\workspace\BUILD\omniORB-4.2.6\lib\python\omniidl\main.py", line 430, in main</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> tree = _omniidl.compile(file, name)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New""> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">OSError: Cannot open file descriptor</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: *** [<a href="http://dir.mk:16/" target="_blank">dir.mk:16</a>: corbaidl_idl.py] Error 127</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[2]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3/omniORB'</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[1]: *** [<a href="http://dir.mk:12/" target="_blank">dir.mk:12</a>: export] Error 2</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">make[1]: Leaving directory '/home/nghodban/workspace/BUILD/omniORB-4.2.6/src/lib/omniorpy/python3'</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Sun, Jul 14, 2024 at 8:34 PM Duncan Grisby <<a href="mailto:duncan@grisby.org" target="_blank">duncan@grisby.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">On Sun, 2024-07-14 at 14:16 +0200, Nabil Ghodbane via omniORB-list<br>
wrote:<br>
<br>
[...]<br>
> - It seems that omniORB 2.4.6 at least does not support c++17<br>
> standard on MinGW and one has to fall back to c++14.<br>
<br>
I assume you mean 4.2.6. There was never a 2.4.6 release.<br>
<br>
Regardless, 4.2 is very old. The current release is 4.3.2. You are<br>
unlikely to have much success in using up-to-date C++ and Python<br>
versions with old omniORB versions.<br>
<br>
MinGW is not a supported compiler for omniORB. You might be able to<br>
make it work, but it is no surprise if it doesn't work at present.<br>
<br>
If you are successful in compiling omniORB and omniORBpy 4.3.2 with<br>
MinGW, please send patches.<br>
<br>
Regards,<br>
<br>
Duncan.<br>
<br>
-- <br>
Duncan Grisby <<a href="mailto:duncan@grisby.org" target="_blank">duncan@grisby.org</a>><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div></blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>