X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 772EF393D02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1610618379; bh=md9oPkvWy1bpJYiirWc6ZG9QyzYlo5xo2j753MX4cos=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=EsItEyXZbAOdT2REg7m37vEui4Saw5TcyrdduDt3aYGNmMCGBFLsRyV4tmuIL7+pA Y4H7pNDAysIXo9v0T7o8EaPzvXSqgse18VDKe8Ff1elBmFOCU9BFsWwGEZ1+6OJVKo 3erVMWhY1DD4r6Jd3t7fPQhdLMV9FYCvMQfQ0jWM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 76DDF3857C48 X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 MIME-Version: 1.0 Message-ID: To: cygwin AT cygwin DOT com Subject: Aw: Re: Recompilation problems opencv (python3-cv2 --> python3.8) Date: Thu, 14 Jan 2021 10:59:35 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: 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 AT cygwin DOT 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: , From: wilhelm-eger--- via Cygwin Reply-To: wilhelm-eger AT web DOT de Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 10EA09t9024711 Dear Csaba, Thank you for you reply. However, it does not seem to work. I have tried several things. Based on this post: https://stackoverflow.com/questions/38296756/what-is-the-idiomatic-way-in-cmake-to-add-the-fpic-compiler-option I have added -DENABLE_PIC=ON to the cmake command of the cygport file from the git repository. Further, I have tried -DCMAKE_POSITION_INDEPENDENT_CODE=ON without success. Finally, I have tried to add -fPIC to the respective compilation commands in the build.ninja file for ittnotify and the linker command without any success. This seems to be odd, as neither the cygport file nor the source code could have changed since this package has been compiled the last time for python36. (And yes, I have searched the web for the respective phrase) Any other hint? Thanks in advance. Wilhelm  Gesendet: Donnerstag, 14. Januar 2021 um 09:18 Uhr Von: "Csaba Raduly" An: wilhelm-eger AT web DOT de Cc: "cygwin list" Betreff: Re: Recompilation problems opencv (python3-cv2 --> python3.8) Hi Wilhelm, On Thu, 14 Jan 2021 at 08:10, wilhelm-eger--- via Cygwin wrote: (snip) > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_fini_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1076:(.text$__itt_fini_ittlib+0x104): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x14b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlopen' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x155): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1123:(.text$__itt_init_ittlib+0x168): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlclose' > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1125:(.text$__itt_init_ittlib+0x2a6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlopen' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_lib_version': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1030:(.text$__itt_init_ittlib+0x2c8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1179:(.text$__itt_init_ittlib+0x2e4): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_lib_version': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1032:(.text$__itt_init_ittlib+0x3c6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' > 3rdparty/lib/libittnotify.a(ittnotify_static.c.o): in function `__itt_init_ittlib': > /usr/src/debug/opencv-3.4.1-2/3rdparty/ittnotify/src/ittnotify/ittnotify_static.c:1141:(.text$__itt_init_ittlib+0x41c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `dlsym' You need to compile with -fPIC. 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. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple