Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#50344 closed defect (wontfix)

py27-numpy @1.10.4 cannot be built on PPC Tiger, Mac OS X 10.4.11, because no C header provides RTLD_FIRST

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: dh@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: tiger Cc: michaelld (Michael Dickens)
Port: py-numpy

Description

: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…

Attachments (4)

main.log (131.9 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log
patch-Tiger-without-dflcn-header.diff (491 bytes) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
Proposed patch for (PPC) Tiger/Mac OS X 10.4.11
main.2.log (195.6 KB) - added by ballapete (Peter "Pete" Dyballa) 9 years ago.
main.log with successful build
numpy_Tiger_fix.diff (1.3 KB) - added by michaelld (Michael Dickens) 9 years ago.

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

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

Cc: dh@… removed
Keywords: tiger added
Owner: changed from macports-tickets@… to dh@…
Port: py-numpy added; py27-numpy removed

comment:2 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: wontfix
Status: newclosed

If you have a patch that fixes this, I could try to accept that but numpy upstream has long since dropped Tiger support.

comment:3 in reply to:  2 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to 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?

comment:4 in reply to:  2 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Replying to 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)

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Proposed patch for (PPC) Tiger/Mac OS X 10.4.11

comment:5 Changed 9 years ago by michaelld (Michael Dickens)

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!

Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

main.log with successful build

Changed 9 years ago by michaelld (Michael Dickens)

Attachment: numpy_Tiger_fix.diff added

comment:6 Changed 9 years ago by michaelld (Michael Dickens)

Thanks for the log file. I've added your patch in r145736.

Note: See TracTickets for help on using tickets.