public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Recompilation problems opencv (python3-cv2 --> python3.8)
@ 2021-01-14  7:08 wilhelm-eger
  2021-01-14  8:18 ` Csaba Raduly
  0 siblings, 1 reply; 13+ messages in thread
From: wilhelm-eger @ 2021-01-14  7:08 UTC (permalink / raw)
  To: cygwin

Hello,
 
due to the recent changes and transition to python38 I would like to have cv2 also working for python38. So I have downloaded the respective cygport and patches and tried to rebuild using the cygport command (with which I am familiar).
 
However, I get the following linking error:
 
[451/1207] : && /usr/bin/g++.exe -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/home/eger/build/winpat_inbox/python-opencv/opencv-3.4.1-2.x86_64/build=/usr/src/debug/opencv-3.4.1-2 -fdebug-prefix-map=/home/eger/build/winpat_inbox/python-opencv/opencv-3.4.1-2.x86_64/src/opencv-3.4.1=/usr/src/debug/opencv-3.4.1-2   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-implicit-fallthrough -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG    -shared -Wl,--enable-auto-import -o bin/cygopencv_core-3.4.dll -Wl,--out-implib,lib/libopencv_core.dll.a -Wl,--major-image-version,3,--minor-image-version,4 modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert_scale.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/count_non_zero.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_stream.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/datastructs.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/dxt.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/glob.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lut.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs_core.dispatch.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_decomp.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_wrap.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mean.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/minmax.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/norm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opengl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/out.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/ovx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/pca.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_base64.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_cpp.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_json.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_types.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_xml.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_yml.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/rand.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/softfloat.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stat_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/sum.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/utils/filesystem.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.sse4_1.cpp.o modules/core/CMakeFiles/opencv_core.dir/stat.sse4_2.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.fp16.cpp.o modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.avx2.cpp.o modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.o  -ldl  -lm  -lpthread  -lrt  -lz  3rdparty/lib/libittnotify.a  -ldl && :
FAILED: bin/cygopencv_core-3.4.dll lib/libopencv_core.dll.a
: && /usr/bin/g++.exe -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/home/eger/build/winpat_inbox/python-opencv/opencv-3.4.1-2.x86_64/build=/usr/src/debug/opencv-3.4.1-2 -fdebug-prefix-map=/home/eger/build/winpat_inbox/python-opencv/opencv-3.4.1-2.x86_64/src/opencv-3.4.1=/usr/src/debug/opencv-3.4.1-2   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-implicit-fallthrough -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG    -shared -Wl,--enable-auto-import -o bin/cygopencv_core-3.4.dll -Wl,--out-implib,lib/libopencv_core.dll.a -Wl,--major-image-version,3,--minor-image-version,4 modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert_scale.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/count_non_zero.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/cuda_stream.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/datastructs.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/dxt.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/glob.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/lut.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs_core.dispatch.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_decomp.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/matrix_wrap.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/mean.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/minmax.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/norm.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/opengl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/out.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/ovx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/pca.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_base64.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_cpp.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_json.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_types.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_xml.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/persistence_yml.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/rand.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/softfloat.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stat_c.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/sum.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/utils/filesystem.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.sse4_1.cpp.o modules/core/CMakeFiles/opencv_core.dir/stat.sse4_2.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.fp16.cpp.o modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o modules/core/CMakeFiles/opencv_core.dir/src/convert.avx2.cpp.o modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.o  -ldl  -lm  -lpthread  -lrt  -lz  3rdparty/lib/libittnotify.a  -ldl && :
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'
 
Any suggestion? Many thanks in advance!

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14  7:08 Recompilation problems opencv (python3-cv2 --> python3.8) wilhelm-eger
@ 2021-01-14  8:18 ` Csaba Raduly
  2021-01-14  9:59   ` Aw: " wilhelm-eger
  0 siblings, 1 reply; 13+ messages in thread
From: Csaba Raduly @ 2021-01-14  8:18 UTC (permalink / raw)
  To: wilhelm-eger; +Cc: cygwin list

Hi Wilhelm,

On Thu, 14 Jan 2021 at 08:10, wilhelm-eger--- via Cygwin
<cygwin@cygwin.com> 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)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Aw: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14  8:18 ` Csaba Raduly
@ 2021-01-14  9:59   ` wilhelm-eger
  2021-01-14 10:06     ` Marco Atzeri
  0 siblings, 1 reply; 13+ messages in thread
From: wilhelm-eger @ 2021-01-14  9:59 UTC (permalink / raw)
  To: cygwin

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" <rcsaba@gmail.com>
An: wilhelm-eger@web.de
Cc: "cygwin list" <cygwin@cygwin.com>
Betreff: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
Hi Wilhelm,

On Thu, 14 Jan 2021 at 08:10, wilhelm-eger--- via Cygwin
<cygwin@cygwin.com> 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)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14  9:59   ` Aw: " wilhelm-eger
@ 2021-01-14 10:06     ` Marco Atzeri
  2021-01-14 10:24       ` Aw: " wilhelm-eger
  0 siblings, 1 reply; 13+ messages in thread
From: Marco Atzeri @ 2021-01-14 10:06 UTC (permalink / raw)
  To: cygwin

bottom reply here please

On 14.01.2021 10:59, wilhelm-eger--- via Cygwin wrote:
> 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

I will look on current source

https://cygwin.com/packages/summary/python3-cv2.html

to see if there is a need of adjustment for Python 3.8

Do not expect immediate feedback.

Marco

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Aw: Re:  Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14 10:06     ` Marco Atzeri
@ 2021-01-14 10:24       ` wilhelm-eger
  2021-01-14 22:52         ` Brian Inglis
  0 siblings, 1 reply; 13+ messages in thread
From: wilhelm-eger @ 2021-01-14 10:24 UTC (permalink / raw)
  To: cygwin

> Gesendet: Donnerstag, 14. Januar 2021 um 11:06 Uhr
>
> bottom reply here please

Hi Marco,

Sorry, I will keep it in mind.

Indeed, these are the files I am using: https://cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/opencv.git;a=tree;h=3563a2df47de0720d96ab0ad4a6ee8184f8fa249;hb=3563a2df47de0720d96ab0ad4a6ee8184f8fa249

If you need any help, please let me know.

Wilhelm 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14 10:24       ` Aw: " wilhelm-eger
@ 2021-01-14 22:52         ` Brian Inglis
  2021-01-15  8:13           ` Aw: " wilhelm-eger
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Inglis @ 2021-01-14 22:52 UTC (permalink / raw)
  To: cygwin

On 2021-01-14 03:24, wilhelm-eger--- via Cygwin wrote:
>> Gesendet: Donnerstag, 14. Januar 2021 um 11:06 Uhr

> Indeed, these are the files I am using: https://cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/opencv.git;a=tree;h=3563a2df47de0720d96ab0ad4a6ee8184f8fa249;hb=3563a2df47de0720d96ab0ad4a6ee8184f8fa249

Please try by downloading the complete Cygwin source package, and try a vanilla 
rebuild first with zero changes, then change only the .cygport VERSION= to the 
latest, rebuild, and fix any problems with that as you go.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Aw: Re:  Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-14 22:52         ` Brian Inglis
@ 2021-01-15  8:13           ` wilhelm-eger
  2021-01-15  9:34             ` Marco Atzeri
  2021-01-15 17:14             ` Brian Inglis
  0 siblings, 2 replies; 13+ messages in thread
From: wilhelm-eger @ 2021-01-15  8:13 UTC (permalink / raw)
  To: cygwin

Gesendet: Donnerstag, 14. Januar 2021 um 23:52 Uhr

> Please try by downloading the complete Cygwin source package, and try a vanilla
> rebuild first with zero changes, then change only the .cygport VERSION= to the
> latest, rebuild, and fix any problems with that as you go.

I have done the following

mkdir opencv
cd opencv
git clone http://cygwin.com/git/cygwin-packages/opencv.git .
cygport opencv.cygport fetch
cygport opencv.cygport all

Same error.

Is there any other location where I could get the opencv source package from?

Btw. there is no need to change to another Version, I just want to have cv2 also in python3.8 working. From what I have experienced with this package I assume that this would also not compile with python3.6 atm. Seems to be a cmake or gcc error to me.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15  8:13           ` Aw: " wilhelm-eger
@ 2021-01-15  9:34             ` Marco Atzeri
  2021-01-15 10:49               ` ASSI
  2021-01-15 17:14             ` Brian Inglis
  1 sibling, 1 reply; 13+ messages in thread
From: Marco Atzeri @ 2021-01-15  9:34 UTC (permalink / raw)
  To: cygwin



On 15.01.2021 09:13, wilhelm-eger--- via Cygwin wrote:
> Gesendet: Donnerstag, 14. Januar 2021 um 23:52 Uhr
> 
>> Please try by downloading the complete Cygwin source package, and try a vanilla
>> rebuild first with zero changes, then change only the .cygport VERSION= to the
>> latest, rebuild, and fix any problems with that as you go.
> 
> I have done the following
> 
> mkdir opencv
> cd opencv
> git clone http://cygwin.com/git/cygwin-packages/opencv.git .
> cygport opencv.cygport fetch
> cygport opencv.cygport all
> 
> Same error.
> 

I see this as first error

/pub/devel/opencv/opencv-3.4.1-3.x86_64/src/opencv-3.4.1/modules/python/src2/cv2.cpp:889:34: 
error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
it seems the compilers is less tolerant than before.
It does not seem a specific python issue.

I will see to patch it and continue when I found a bit of time



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15  9:34             ` Marco Atzeri
@ 2021-01-15 10:49               ` ASSI
  2021-01-15 11:08                 ` Marco Atzeri
  0 siblings, 1 reply; 13+ messages in thread
From: ASSI @ 2021-01-15 10:49 UTC (permalink / raw)
  To: cygwin

Marco Atzeri via Cygwin writes:
> I see this as first error
>
> /pub/devel/opencv/opencv-3.4.1-3.x86_64/src/opencv-3.4.1/modules/python/src2/cv2.cpp:889:34:
> error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
> it seems the compilers is less tolerant than before.
> It does not seem a specific python issue.
>
> I will see to patch it and continue when I found a bit of time

What the error message is trying to tell you is that you need the
"-fpermissive" option to CXXFLAGS if you expect the code to compile
despite the mismatched types.  Whether it will succeed or just stop
someplace else remains to be seen.

The upstream package is at version 4 already, which probably needs other
patches as a quick look at Fedora seems to indicate:

https://src.fedoraproject.org/rpms/opencv/tree/master


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15 10:49               ` ASSI
@ 2021-01-15 11:08                 ` Marco Atzeri
  2021-01-15 19:34                   ` Marco Atzeri
  0 siblings, 1 reply; 13+ messages in thread
From: Marco Atzeri @ 2021-01-15 11:08 UTC (permalink / raw)
  To: cygwin

On 15.01.2021 11:49, ASSI wrote:
> Marco Atzeri via Cygwin writes:
>> I see this as first error
>>
>> /pub/devel/opencv/opencv-3.4.1-3.x86_64/src/opencv-3.4.1/modules/python/src2/cv2.cpp:889:34:
>> error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
>> it seems the compilers is less tolerant than before.
>> It does not seem a specific python issue.
>>
>> I will see to patch it and continue when I found a bit of time
> 
> What the error message is trying to tell you is that you need the
> "-fpermissive" option to CXXFLAGS if you expect the code to compile
> despite the mismatched types.  Whether it will succeed or just stop
> someplace else remains to be seen.

of course

> 
> The upstream package is at version 4 already, which probably needs other
> patches as a quick look at Fedora seems to indicate:
> 
> https://src.fedoraproject.org/rpms/opencv/tree/master

one step at time

> Regards,
> Achim.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15  8:13           ` Aw: " wilhelm-eger
  2021-01-15  9:34             ` Marco Atzeri
@ 2021-01-15 17:14             ` Brian Inglis
  1 sibling, 0 replies; 13+ messages in thread
From: Brian Inglis @ 2021-01-15 17:14 UTC (permalink / raw)
  To: cygwin

On 2021-01-15 01:13, wilhelm-eger--- via Cygwin wrote:
> Gesendet: Donnerstag, 14. Januar 2021 um 23:52 Uhr
> 
>> Please try by downloading the complete Cygwin source package, and try a vanilla
>> rebuild first with zero changes, then change only the .cygport VERSION= to the
>> latest, rebuild, and fix any problems with that as you go.
> 
> I have done the following
> 
> mkdir opencv
> cd opencv
> git clone http://cygwin.com/git/cygwin-packages/opencv.git .
> cygport opencv.cygport fetch
> cygport opencv.cygport all
> 
> Same error.
> 
> Is there any other location where I could get the opencv source package from?

Check your email host location:

$ geoiplookup web.de
GeoIP Country Edition: DE, Germany
GeoIP City Edition, Rev 1: DE, 01, Baden-Wurttemberg, Karlsruhe, 76137, 
49.001900, 8.428700, 0, 0
GeoIP ASNum Edition: AS8560 1&1 Internet SE

Check Cygwin German mirror locations for one nearby:

$ sed '/^\s\+[^;]\+;\([^;]\+\);Europe;Germany$/!d;s!!\1!' /etc/setup/setup.rc | 
sort -u | xargs -l1 geoiplookup
...
$ geoiplookup ftp-stud.hs-esslingen.de
GeoIP Country Edition: DE, Germany
GeoIP City Edition, Rev 1: DE, 01, Baden-Wurttemberg, Stuttgart, 70173, 
48.766701, 9.183300, 0, 0
GeoIP ASNum Edition: AS553 Universitaet Stuttgart
...

in same Land, lat/long diff about .25/.75, and about 61km great circle distance.

Find mirror URLs:

$ fgrep esslingen.de /etc/setup/setup.rc
 
ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/;ftp-stud.hs-esslingen.de;Europe;Germany
 
http://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/;ftp-stud.hs-esslingen.de;Europe;Germany
 
https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/;ftp-stud.hs-esslingen.de;Europe;Germany

Find source package:

$ grep -m1 '^source:\s.*opencv' ~/mirror/x86_64/setup.ini
source: x86_64/release/opencv/opencv-3.4.1-2-src.tar.xz 138322784 
8da273070a232773d522dfe9b2cf098115e34a595a3d0c968b7fc0ba4f17f92db4f405857157f72f5218e17e6694c1d93ddc22c70fc6bcbf383077499373657a

Download source package:

$ curl -OJRSs 
https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/opencv/opencv-3.4.1-2-src.tar.xz
*OR*
$ wget -N -nv 
https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/opencv/opencv-3.4.1-2-src.tar.xz

$ tar -xf opencv-3.4.1-2-src.tar.xz

Also package *patches* visible from:

https://build.opensuse.org/package/show/openSUSE:Factory/opencv3

but patches directly downloadbale from:

https://github.com/bmwiedemann/openSUSE/tree/20201007/packages/o/opencv3

[thanks to Achim for pointers]

and

https://sources.debian.org/data/main/o/opencv/3.2.0+dfsg-6/debian/patches/
https://salsa.debian.org/science-team/opencv/-/tree/debian/3.2.0+dfsg-6/debian/patches
https://salsa.debian.org/science-team/opencv/-/tree/debian/3.3.0+dfsg-1_exp0/debian/patches
https://salsa.debian.org/science-team/opencv/-/tree/debian/3.4.4+dfsg-1_exp1/debian/patches
https://salsa.debian.org/science-team/opencv/-/tree/debian/3.4.5+dfsg-1_exp1/debian/patches

and

https://src.fedoraproject.org/rpms/opencv/tree/f30

and you can pick later branches or tags for patches for later versions as you 
need from these repos: cygport can use URLs or local file names in 
PATCH_URI="..." and the string content may be a separate line per patch, usually 
with a leading tab.

> Btw. there is no need to change to another Version, I just want to have cv2
> also in python3.8 working. From what I have experienced with this package I
> assume that this would also not compile with python3.6 atm. Seems to be a
> cmake or gcc error to me.
First check your current packages, toolchains, and libraries against a known 
good working set of vanilla sources at an earlier version that should have no 
issues, then work your way up to newer versions adding difficulties! ;^>

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Aw: Re: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15 11:08                 ` Marco Atzeri
@ 2021-01-15 19:34                   ` Marco Atzeri
  2021-01-19  8:09                     ` Aw: " wilhelm-eger
  0 siblings, 1 reply; 13+ messages in thread
From: Marco Atzeri @ 2021-01-15 19:34 UTC (permalink / raw)
  To: cygwin

On 15.01.2021 12:08, Marco Atzeri wrote:
> On 15.01.2021 11:49, ASSI wrote:
>> Marco Atzeri via Cygwin writes:

>>
>> What the error message is trying to tell you is that you need the
>> "-fpermissive" option to CXXFLAGS if you expect the code to compile
>> despite the mismatched types.  Whether it will succeed or just stop
>> someplace else remains to be seen.
> 
> of course
> 

it seems the only issue.

adding -CCMAKE_CXX_FLAGS=-fpermissive

to the cygport should be enough.

I will look also at the 4.5.1 and upload
one of them

Regards
Marco



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Aw: Re:  Re: Re: Re: Recompilation problems opencv (python3-cv2 --> python3.8)
  2021-01-15 19:34                   ` Marco Atzeri
@ 2021-01-19  8:09                     ` wilhelm-eger
  0 siblings, 0 replies; 13+ messages in thread
From: wilhelm-eger @ 2021-01-19  8:09 UTC (permalink / raw)
  To: cygwin

Gesendet: Freitag, 15. Januar 2021 um 20:34 Uhr
> it seems the only issue.
>
> adding -CCMAKE_CXX_FLAGS=-fpermissive
> 
> to the cygport should be enough.

> I will look also at the 4.5.1 and upload
> one of them

In my case adding -DCMAKE_CXX_FLAGS=-fpermissive did not help to solve the problem.

Nevertheless, I am looking forward to a python3.8 version being either 3.4.x or 4.5.x.

Thanks!

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-01-19  8:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14  7:08 Recompilation problems opencv (python3-cv2 --> python3.8) wilhelm-eger
2021-01-14  8:18 ` Csaba Raduly
2021-01-14  9:59   ` Aw: " wilhelm-eger
2021-01-14 10:06     ` Marco Atzeri
2021-01-14 10:24       ` Aw: " wilhelm-eger
2021-01-14 22:52         ` Brian Inglis
2021-01-15  8:13           ` Aw: " wilhelm-eger
2021-01-15  9:34             ` Marco Atzeri
2021-01-15 10:49               ` ASSI
2021-01-15 11:08                 ` Marco Atzeri
2021-01-15 19:34                   ` Marco Atzeri
2021-01-19  8:09                     ` Aw: " wilhelm-eger
2021-01-15 17:14             ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).