Opened 8 years ago

Closed 8 years ago

#36956 closed defect (fixed)

Can not install OpenCV 2.4.3 on Lion (10.7.3)

Reported by: heylinus@… Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: opencv

Description

The latest version of opencv (2.4.3) can't be compiled on Lion (10.7.3) with Xcode 4.2.

$ sudo port install opencv +python26
...
--->  Configuring opencv
--->  Building opencv
Error: org.macports.build for port opencv returned: command execution failed
Please see the log file for port opencv for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port opencv failed

The log file is attached.

Attachments (1)

main.log (367.0 KB) - added by heylinus@… 8 years ago.
log file for port opencv

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by heylinus@…

Attachment: main.log added

log file for port opencv

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to stromnov@…

comment:2 in reply to:  description Changed 8 years ago by stromnov (Andrew Stromnov)

Replying to heylinus@…:

The latest version of opencv (2.4.3) can't be compiled on Lion (10.7.3) with Xcode 4.2.

It's looks like problem with clang from Xcode 4.2. Please, try to rebuild opencv with other available compiler (sudo port install ... configure.compiler=<compiler>, where <compiler> is one from UsingTheRightCompiler).

comment:3 Changed 8 years ago by ryandesign (Ryan Schmidt)

Or, try updating to a newer version of Xcode, which includes a newer version of clang. The latest for Lion is Xcode 4.5.2. If you do this, remember to also update the Xcode command line tools, from within the Xcode app's Preferences window's Downloads section.

comment:4 Changed 8 years ago by ryandesign (Ryan Schmidt)

heylinus, have you made any progress on this issue?

comment:5 Changed 8 years ago by heylinus@…

Sorry for the delay.
Don't have much time playing with the alternative compiler solution.
Upgrading the os to 10.7.5 and xcode to 4.5.2 fixed the problem.
Thanks a lot for the suggestions.

comment:6 Changed 8 years ago by ryandesign (Ryan Schmidt)

In the mean time, in r99684 in November, clang got blacklisted in the portfile (but there was no explanation why in the commit message), so when you retried the build in December, clang wasn't being used anymore. So the problem might've been an old version of clang in Xcode 4.2, or it might be any version of clang. Further testing would be required. If only old versions of clang cause a problem, then only old versions should be blacklisted, using the compiler_blacklist_versions portgroup. If any version of clang causes a problem, then the port should include a link to the relevant clang or opencv bug report.

comment:7 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r102100 allows XCode 4.3's clang and newer.

Note: See TracTickets for help on using tickets.