[MacPorts] #57520: py-pyopencl: Does not build on libstdc++ systems; does not honor MacPorts build flags

MacPorts noreply at macports.org
Tue Nov 6 10:07:13 UTC 2018


#57520: py-pyopencl: Does not build on libstdc++ systems; does not honor MacPorts
build flags
-------------------------------------------+-------------------------
 Reporter:  ryandesign                     |      Owner:  petrrr
     Type:  defect                         |     Status:  assigned
 Priority:  Normal                         |  Milestone:
Component:  ports                          |    Version:
 Keywords:  snowleopard lion mountainlion  |       Port:  py-pyopencl
-------------------------------------------+-------------------------
 py-pyopencl doesn't build on older systems that use libstdc++, because
 although it includes the cxx11 1.1 portgroup, that portgroup can't
 function properly because the pyopencl build system does not make use of
 the CXXFLAGS and LDFLAGS that MacPorts sets.

 I've spent a little time trying to understand the build system, but
 unfortunately I'm not getting very far. I don't know python very well. I
 see in the setup.py these lines:

 {{{
         StringListOption("CXXFLAGS", default_cxxflags,
             help="Any extra C++ compiler options to include"),
         StringListOption("LDFLAGS", default_ldflags,
             help="Any extra linker options to include"),
         ])
 }}}

 Naïvely, I assume this means that the build system allows us to specify
 CXXFLAGS and LDFLAGS in some way. Unfortunately, I have been unable to
 determine what that way is. MacPorts of course already sets these as
 environment variables, which are being ignored.

 I also notice that the build is using clang (instead of clang++) to
 compile the C++ code (but is using clang++ to link it). While this appears
 to work, it should ideally be fixed to use the right compiler.

-- 
Ticket URL: <https://trac.macports.org/ticket/57520>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list