[MacPorts] #50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST -----------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: py27-numpy -----------------------------+-------------------------------- {{{ :info:build gcc-apple-4.2: /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:85: warning: function declaration isn't a prototype :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c: In function 'loadlib': :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: 'RTLD_FIRST' undeclared (first use in this function) :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: (Each undeclared identifier is reported only once :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: for each function it appears in.) :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:85: warning: function declaration isn't a prototype :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c: In function 'loadlib': :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: 'RTLD_FIRST' undeclared (first use in this function) :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: (Each undeclared identifier is reported only once :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c:97: error: for each function it appears in.) :info:build error: Command "/opt/local/bin/gcc-apple-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch ppc -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-10.4-ppc-2.7/numpy/core/src/private -Inumpy/core/include -Ibuild/src.macosx-10.4-ppc-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -Ibuild/src.macosx-10.4-ppc-2.7/numpy/core/src/private -Ibuild/src.macosx-10.4-ppc-2.7/numpy/core/src/private -Ibuild/src.macosx-10.4-ppc-2.7/numpy/core/src/private -c /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c -o build/temp.macosx-10.4-ppc-2.7/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py- numpy/py27-numpy/work/numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.o -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1 :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports .org_release_tarballs_ports_python_py-numpy/py27-numpy/work/numpy-1.10.4" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build }}} On PPC Leopard RTLD_FIRST is #define'd in {{{ /usr/include/dlfcn.h:#define RTLD_FIRST 0x100 /* Mac OS X 10.5 and later */ }}} On Tiger (and others) it was defined before in `/opt/local/include/dlfcn.h`, which is part of dyld-headers, but `This port is obsolete.` now… -- Ticket URL: <https://trac.macports.org/ticket/50344> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: tiger Port: py-numpy | ------------------------------+------------------- Changes (by mf2k@…): * cc: dh@… (removed) * keywords: => tiger * port: py27-numpy => py-numpy * owner: macports-tickets@… => dh@… -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+-------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: wontfix | Keywords: tiger Port: py-numpy | ------------------------------+-------------------- Changes (by sean@…): * status: new => closed * resolution: => wontfix Comment: If you have a patch that fixes this, I could try to accept that but numpy upstream has long since dropped Tiger support. -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+-------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: wontfix | Keywords: tiger Port: py-numpy | ------------------------------+-------------------- Comment (by Peter_Dyballa@…): Replying to [comment:2 sean@…]:
If you have a patch that fixes this, I could try to accept that but numpy upstream has long since dropped Tiger support.
Could it work to simply substitute in `numpy-1.10.4/numpy/_build_utils/src/apple_sgemv_fix.c' on line #97 {{{ veclib = dlopen(VECLIB_FILE, RTLD_LOCAL | RTLD_FIRST); }}} the missing RTLD_* macros with the values from obsoleted /opt/local/include/dlfcn.h? -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+-------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: wontfix | Keywords: tiger Port: py-numpy | ------------------------------+-------------------- Comment (by Peter_Dyballa@…): Replying to [comment:2 sean@…]:
If you have a patch that fixes this, I could try to accept that but numpy upstream has long since dropped Tiger support.
I have a simple patch. It allows to build numpy. When invoke runtests.py it reports in the end: {{{ Ran 5879 tests in 246.591s FAILED (KNOWNFAIL=6, SKIP=8, failures=2) }}} -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+-------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: wontfix | Keywords: tiger Port: py-numpy | ------------------------------+-------------------- Comment (by michaelld@…): Nice. Can you do us a favor & provide the following, since we don't have easy access to a 10.4 box & just for verification: {{{ sudo port clean py27-numpy sudo port build py27-numpy }}} and, then attach the compressed build log to this ticket & add a comment to that effect so that we know it's here. I have no objection to this patch for 10.4 specifically; I also just know we can't test it so we're looking for some minimal verification. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50344: py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST ------------------------------+-------------------- Reporter: Peter_Dyballa@… | Owner: dh@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: wontfix | Keywords: tiger Port: py-numpy | ------------------------------+-------------------- Comment (by michaelld@…): Thanks for the log file. I've added your patch in r145736. -- Ticket URL: <https://trac.macports.org/ticket/50344#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts