Opened 12 years ago

Closed 12 years ago

#35437 closed defect (fixed)

Processing of port py27-pyopencl failed in Mountain Lion

Reported by: miguel.molero@… Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: larsson@…, stromnov (Andrey Stromnov)
Port: py27-pyopencl

Description (last modified by mf2k (Frank Schima))

Hi there,

I've had problems when processing the py27-pyopencl port in Mountain Lion using a clean installation:

src/wrapper/wrap_constants.cpp:773: error: ‘CL_DEVICE_PARTITION_EQUALLY_EXT’ was not declared in this scope
src/wrapper/wrap_constants.cpp:774: error: ‘CL_DEVICE_PARTITION_BY_COUNTS_EXT’ was not declared in this scope
src/wrapper/wrap_constants.cpp:775: error: ‘CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT’ was not declared in this scope
src/wrapper/wrap_constants.cpp:776: error: ‘CL_PARTITION_BY_COUNTS_LIST_END_EXT’ was not declared in this scope
error: command '/usr/bin/llvm-gcc-4.2' failed with exit status 1
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyopencl/py27-pyopencl/work/pyopencl-2011.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1

Does Anybody know how I can solve this issue. Thanks

cheers Miguel

Attachments (6)

main.log (55.3 KB) - added by miguel.molero@… 12 years ago.
main.log
main.2.log (27.7 KB) - added by IgnitusBoyone@… 12 years ago.
Second occurance
Portfile-py-pyopencl.diff (1.1 KB) - added by larryv (Lawrence Velázquez) 12 years ago.
update to 2012.1
patch-setup.py.diff (358 bytes) - added by larryv (Lawrence Velázquez) 12 years ago.
updated patch to prevent setup.py from setting -arch and -isysroot
patch-aksetup_helper.py.diff (1.2 KB) - added by larryv (Lawrence Velázquez) 12 years ago.
patch to correct linker flags
patch-clCreateProgramWithBuiltInKernels.diff (1.6 KB) - added by larryv (Lawrence Velázquez) 12 years ago.
patch to fix clCreateProgramWithBuiltInKernels issue

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: pyopencl removed
Owner: changed from macports-tickets@… to larry.velazquez@…
Priority: HighNormal

Please attach the complete main.log after cleaning the port and trying again.

In the future, please Cc the port maintainer(s) and use WikiFormatting, but do not change the priority field.

Changed 12 years ago by miguel.molero@…

Attachment: main.log added

main.log

comment:2 Changed 12 years ago by IgnitusBoyone@…

I have run in to the same issue since updating to 10.8. Was trying to recompile all of my ports to 4.4

Changed 12 years ago by IgnitusBoyone@…

Attachment: main.2.log added

Second occurance

comment:3 Changed 12 years ago by larsson@…

Same errors here on 10.8. I am also having problem installing pyopencl manually, both using clang and gcc. Both times, it installs without errors, but I get a runtime error when trying to import it saying "Symbol not found: _clCreateProgramWithBuiltInKernels".

comment:4 Changed 12 years ago by larsson@…

Cc: larsson@… added

Cc Me!

Changed 12 years ago by larryv (Lawrence Velázquez)

Attachment: Portfile-py-pyopencl.diff added

update to 2012.1

Changed 12 years ago by larryv (Lawrence Velázquez)

Attachment: patch-setup.py.diff added

updated patch to prevent setup.py from setting -arch and -isysroot

Changed 12 years ago by larryv (Lawrence Velázquez)

patch to correct linker flags

Changed 12 years ago by larryv (Lawrence Velázquez)

patch to fix clCreateProgramWithBuiltInKernels issue

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

The patches I just uploaded should enable the port to install and run correctly on 10.8. The latter two patches are taken directly from the PyOpenCL Git repository (here and here, respectively).

comment:6 Changed 12 years ago by stromnov (Andrey Stromnov)

Cc: stromnov@… added

Cc Me!

comment:7 Changed 12 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Thanks! Committed in r97793.

Note: See TracTickets for help on using tickets.