From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.11]) by sourceware.org (Postfix) with ESMTPS id 76DDF3857C48 for ; Thu, 14 Jan 2021 09:59:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 76DDF3857C48 X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [88.217.224.200] ([88.217.224.200]) by web-mail.web.de (3c-app-webde-bap28.server.lan [172.19.172.28]) (via HTTP); Thu, 14 Jan 2021 10:59:35 +0100 MIME-Version: 1.0 Message-ID: From: wilhelm-eger@web.de To: cygwin@cygwin.com Subject: Aw: Re: Recompilation problems opencv (python3-cv2 --> python3.8) Content-Type: text/plain; charset=UTF-8 Date: Thu, 14 Jan 2021 10:59:35 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:sAgP9NrawJ//tFoTCPQHuPyzAYss+OSjZ/8fsxG6h33wZWcTAPM5MCYCaSNrp3Iw0ZwzE UHPYRJRlDReeufHJYxtLd1NKX6monZmXI8s6hAUA3iBdh/D4MUyHpqhG8xoJCh4UcejhL94+t/YA U8Ssz2lmk2UQZS7DDSXDH1PysbVRO1BNrN41ZliOiFVRFFeD9k4hAMgvlRpe+9Ygf2ega+wXCaK5 VqPLrICTl75sp/jTRgLCd1+J+rG/PReAcp4s1eJqX4VOEo9GFxUROa9oaxh31o+Q3wbKIiWhD+QW q0= X-UI-Out-Filterresults: notjunk:1;V03:K0:bBc/DG07VkU=:WMB6UMfRPYRpuy8MuyFSHg 88qc1U9YYNUGBDK0w+veV69XRx8sdkvPt0p9vzTndzNEw/e2F4mKhhh701NK1Quff9nTt6lWU DU8T+exzgAwV0yY7YvhZ5mPSQmU5aaZIBm9MWZ078CCCpb0rOuJP97pe2c4m8rDehYF+UQp2u F3hIGIk9XuZCxqrtJkxQNFpITa5QcEgBgyadFaZ07ccD+Qa9oaWInT90MKuPl3lVLURumoImi 8U0jmHYWpWHXA3twgZYJVT82kMEGUbeF034KyihDY+tUlCa5zhwI1OUt819btq/h6dlO2U9Bn pHwArQ1ybBnok+Iz//VPVUaOzHNy10IZl5+EEw+AW6pXwuPQoXY2fUylc1GuCJJuVg/p9AnSb VZGfZyYJolhTGxzF44HEnHiMKfg7aHhVwAOYqQ+1BZdxedyL3L8nc70Jso+vPR0zICMZ7B5Qq 3NkuZ7j63+IRysHUcZWqBt2aZKnzUEza4+EtslrAQcBUDv9L/YsnocaDPoC6FKzajwy/EPEI3 LxdXNZKifZeie9Jy+u9VMp3unBj5yeiJCIf224Csv8IR62LfAKOQVY9IU1J4RwasnKrxPIS4i 6n829DwFulMSc= X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 09:59:38 -0000 Dear Csaba, Thank you for you reply=2E However, it does not seem to work=2E I have tried several things=2E Based = on this post: https://stackoverflow=2Ecom/questions/38296756/what-is-the-idiomatic-way-i= n-cmake-to-add-the-fpic-compiler-option I have added -DENABLE_PIC=3DON to the cmake command of the cygport file fr= om the git repository=2E Further, I have tried -DCMAKE_POSITION_INDEPENDENT= _CODE=3DON without success=2E Finally, I have tried to add -fPIC to the res= pective compilation commands in the build=2Eninja file for ittnotify and th= e linker command without any success=2E This seems to be odd, as neither the cygport file nor the source code coul= d have changed since this package has been compiled the last time for pytho= n36=2E (And yes, I have searched the web for the respective phrase) Any other hint? Thanks in advance=2E Wilhelm=C2=A0 Gesendet:=C2=A0Donnerstag, 14=2E Januar 2021 um 09:18 Uhr Von:=C2=A0"Csaba Raduly" An:=C2=A0wilhelm-eger@web=2Ede Cc:=C2=A0"cygwin list" Betreff:=C2=A0Re: Recompilation problems opencv (python3-cv2 --> python3= =2E8) Hi Wilhelm, On Thu, 14 Jan 2021 at 08:10, wilhelm-eger--- via Cygwin wrote: (snip) > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_fini_ittlib': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1076:(=2Etext$__itt_fini_ittlib+0x104): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_init_ittlib': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1123:(=2Etext$__itt_init_ittlib+0x14b): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlopen' > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1123:(=2Etext$__itt_init_ittlib+0x155): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1123:(=2Etext$__itt_init_ittlib+0x168): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlclose' > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1125:(=2Etext$__itt_init_ittlib+0x2a6): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlopen' > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_lib_version': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1030:(=2Etext$__itt_init_ittlib+0x2c8): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_init_ittlib': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1179:(=2Etext$__itt_init_ittlib+0x2e4): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_lib_version': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1032:(=2Etext$__itt_init_ittlib+0x3c6): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify=2Ea(ittnotify_static=2Ec=2Eo): in function `__= itt_init_ittlib': > /usr/src/debug/opencv-3=2E4=2E1-2/3rdparty/ittnotify/src/ittnotify/ittno= tify_static=2Ec:1141:(=2Etext$__itt_init_ittlib+0x41c): relocation truncate= d to fit: R_X86_64_PC32 against undefined symbol `dlsym' You need to compile with -fPIC=2E Did you try searching the Internet for "relocation truncated to fit: R_X86_64_PC32 against undefined symbol" ? Csaba -- You can get very substantial performance improvements by not doing the right thing=2E - Scott Meyers, An Effective C++11/14 Samp= ler So if you're looking for a completely portable, 100% standards-conformant = way to get the wrong information: this is what you want=2E - Scott Meyers (C++= TDaWYK)