[MacPorts] #42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 -------------------------+-------------------------------- Reporter: ivano.ras@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.1 Keywords: opencv | Port: opencv -------------------------+-------------------------------- I'm running MacPorts on a retina MacBookPro with GeForce GT 650M. I've amended the portfile to compile cuda code. All seems to be fine until after half an hour building I get ---> 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_tarballs_ports_graphics_opencv/opencv/main.log Error: Unable to upgrade port: 1 Log file attached. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/42712> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+-------------------------------- Reporter: ivano.ras@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: opencv Port: opencv | --------------------------+-------------------------------- Comment (by ivano.ras@…): Replying to [ticket:42712 ivano.ras@…]:
I'm running MacPorts on a retina MacBookPro with GeForce GT 650M. I've amended the portfile to compile cuda code. All seems to be fine until after half an hour building I get ---> 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_tarballs_ports_graphics_opencv/opencv/main.log
Error: Unable to upgrade port: 1
Log file attached. Thanks.
I've the CUDA Driver Version: 6.0.26 installed, by the way. -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+-------------------------------- Reporter: ivano.ras@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: opencv Port: opencv | --------------------------+-------------------------------- Comment (by ivano.ras@…): I've tested it against the normal CUDA Driver Version 5.5.28 and it doesn't work either. -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+-------------------------------- Reporter: ivano.ras@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: opencv Port: opencv | --------------------------+-------------------------------- Comment (by ivano.ras@…): And, I've now tested it against the latest CUDA Driver Version 5.5.47. The installation doesn't even start here. -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+------------------------ Reporter: ivano.ras@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: opencv | --------------------------+------------------------ Changes (by macsforever2000@…): * owner: macports-tickets@… => stromnov@… * priority: High => Normal * keywords: opencv => Old description:
I'm running MacPorts on a retina MacBookPro with GeForce GT 650M. I've amended the portfile to compile cuda code. All seems to be fine until after half an hour building I get ---> 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_tarballs_ports_graphics_opencv/opencv/main.log Error: Unable to upgrade port: 1
Log file attached. Thanks.
New description: I'm running MacPorts on a retina MacBookPro with GeForce GT 650M. I've amended the portfile to compile cuda code. All seems to be fine until after half an hour building I get {{{ ---> 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_tarballs_ports_graphics_opencv/opencv/main.log Error: Unable to upgrade port: 1 }}} Log file attached. Thanks. -- Comment: The Priority field is for use by Macports team members' use only. In the future, please use WikiFormatting and Cc the port maintainers ({{{port info --maintainers opencv}}}). -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+------------------------ Reporter: ivano.ras@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: opencv | --------------------------+------------------------ Comment (by stromnov@…): AFAIK, it's a long lasting problem with CUDA binaries and CUDA compiler (ptcc). You can try to compile with configure.compiler=macports-gcc-4.8 or configure.compiler=macports-clang-3.3 arguments. -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+------------------------ Reporter: ivano.ras@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: opencv | --------------------------+------------------------ Comment (by ivano.ras@…): Many thanks stromnov I'll give that a shot. Regarding the lasting problem, I have to disagree because it was working fine 4 months ago in OS X Mountain Lion and this unfixed problem is really hindering Mac users from using CUDA code... Cheers. Ivano -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+------------------------ Reporter: ivano.ras@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: opencv | --------------------------+------------------------ Comment (by stromnov@…): It works perfectly when you using right compiler toolchain (gcc|cl + nvcc). Macports use clang by default, nvcc use gcc (http://docs.nvidia.com/cuda /cuda-compiler-driver-nvcc/). So clang++ and nvcc potentially can produce incompatible object files. -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#42712: opencv 2.4.8_2 doesn't complete installation -DWITH_CUDA=ON on OS X 10.9.2 --------------------------+------------------------ Reporter: ivano.ras@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: opencv | --------------------------+------------------------ Comment (by ivano.ras@…): Yes, I'm well aware of the clang/gcc discrepancy. It's just that if I have compile things myself, what's the point of MacPorts anyway? I'll follow your suggestions though. Cheers. Ivano -- Ticket URL: <https://trac.macports.org/ticket/42712#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts