Opened 2 months ago

Last modified 2 days ago

#69381 assigned defect

opencv4 @4.8.0_4+contrib build failure

Reported by: fmw42 (Fred Weinhaus) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Ventura, arm64 Cc: cooljeanius (Eric Gallager), stromnov (Andrey Stromnov)
Port: opencv4

Description

I was trying to install py39-opencv4 or py311-openc4 on Ventura on M1 Mac mini. Both installs gave error messages that they could not install opencv4.

sudo port clean py39-opencv4
--->  Cleaning py39-opencv4

sudo port install py39-opencv4
--->  Computing dependencies for opencv4
--->  Fetching archive for opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from https://packages.macports.org/opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/opencv4
--->  Building opencv4
Error: Failed to build opencv4: command execution failed 
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/main.log for details.
Error: Unable to execute port py39-opencv4: upgrade opencv4 failed



sudo port install py311-opencv4
--->  Computing dependencies for opencv4
--->  Fetching archive for opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from https://packages.macports.org/opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/opencv4
--->  Attempting to fetch opencv4-4.8.0_4+contrib.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/opencv4
--->  Building opencv4
Error: Failed to build opencv4: command execution failed 
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/main.log for details.
Error: Unable to execute port py311-opencv4: upgrade opencv4 failed

I have attached the log file

Attachments (2)

opencv4_main.log.bz2 (31.1 KB) - added by jmroot (Joshua Root) 2 months ago.
opencv4_error_log.txt (4.5 MB) - added by fmw42 (Fred Weinhaus) 2 weeks ago.

Change History (13)

comment:1 Changed 2 months ago by jmroot (Joshua Root)

Cc: stromnov@… stromnov mascguy@… removed
Owner: set to stromnov
Status: newassigned
Summary: Cannot install OpenCV4opencv4 @4.8.0_4+contrib build failure
:info:build ld: Undefined symbols:
:info:build   Imf_3_2::Chromaticities::Chromaticities(Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&), referenced from:
:info:build       cv::ExrDecoder::ExrDecoder() in grfmt_exr.cpp.o
:info:build   Imf_3_2::Header::Header(int, int, float, Imath_2_3::Vec2<float> const&, float, Imf_3_2::LineOrder, Imf_3_2::Compression), referenced from:
:info:build       cv::ExrEncoder::write(cv::Mat const&, std::__1::vector<int, std::__1::allocator<int>> const&) in grfmt_exr.cpp.o

Changed 2 months ago by jmroot (Joshua Root)

Attachment: opencv4_main.log.bz2 added

comment:2 Changed 2 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:3 Changed 2 weeks ago by mascguy (Christopher Nielsen)

Folks, does this issue still occur with the latest version of opencv4 (4.9.0)?

comment:4 in reply to:  3 ; Changed 2 weeks ago by cooljeanius (Eric Gallager)

Replying to mascguy:

Folks, does this issue still occur with the latest version of opencv4 (4.9.0)?

I just tested on x86_64 Big Sur and it built fine for me

comment:5 in reply to:  4 Changed 2 weeks ago by mascguy (Christopher Nielsen)

Replying to cooljeanius:

Replying to mascguy:

Folks, does this issue still occur with the latest version of opencv4 (4.9.0)?

I just tested on x86_64 Big Sur and it built fine for me

Great to hear Eric!

@fmw42 Fred, how about you?

comment:6 Changed 2 weeks ago by fmw42 (Fred Weinhaus)

No it still fails the same way when I try to install py311-opencv4 on my M1 Mac mini with Ventura complaining about the Chromaticities.

comment:7 in reply to:  6 Changed 2 weeks ago by mascguy (Christopher Nielsen)

Replying to fmw42:

No it still fails the same way when I try to install py311-opencv4 on my M1 Mac mini with Ventura complaining about the Chromaticities.

That might be related to ports imath and openexr, which were both updated a short time ago. (And those updates may not published for another hour-ish.)

Once an hour has passed, can you resync your ports tree, and update everything outdated?

Assuming that imath and openexr are updated, go ahead and retry installation of py311-opencv4.

comment:8 Changed 2 weeks ago by fmw42 (Fred Weinhaus)

OK thanks. I will try later or tomorrow. As mentioned above, the error was related to OpenEXR Chromaticities.

Changed 2 weeks ago by fmw42 (Fred Weinhaus)

Attachment: opencv4_error_log.txt added

comment:9 Changed 2 weeks ago by fmw42 (Fred Weinhaus)

I tested again this morning to upgrade py311-opencv4 and it failed again with what looks like the same issue with OpenEXR Chromaticities. I have just uploaded the error log file. See attachments.

Last edited 2 days ago by fmw42 (Fred Weinhaus) (previous) (diff)

comment:10 Changed 2 weeks ago by mascguy (Christopher Nielsen)

Cc: stromnov added; mascguy removed
Owner: changed from stromnov to mascguy

comment:11 Changed 2 days ago by fmw42 (Fred Weinhaus)

Any update on this ticket? Tried again today to install/upgrade and it failed again.

Note: See TracTickets for help on using tickets.