[MacPorts] #59122: py-numpy @1.17.2 does not build on PPC Tiger, Mac OS X 10.4.11, because of "'for' loop initial declaration used outside C99 mode"
MacPorts
noreply at macports.org
Fri Sep 27 20:13:56 UTC 2019
#59122: py-numpy @1.17.2 does not build on PPC Tiger, Mac OS X 10.4.11, because of
"'for' loop initial declaration used outside C99 mode"
-----------------------+----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.0
Keywords: tiger | Port: py-numpy
-----------------------+----------------------
{{{
building extension "numpy.random.mtrand" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
copying numpy/version.py -> build/lib.macosx-10.4-ppc-3.7/numpy
copying build/src.macosx-10.4-ppc-3.7/numpy/__config__.py ->
build/lib.macosx-10.4-ppc-3.7/numpy
copying build/src.macosx-10.4-ppc-3.7/numpy/distutils/__config__.py ->
build/lib.macosx-10.4-ppc-3.7/numpy/distutils
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'npysort' library
compiling C sources
C compiler: /opt/local/bin/gcc-apple-4.2 -fno-strict-aliasing -Wsign-
compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch
ppc
compile options: '-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Inumpy/core/include
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/include/numpy
-Inumpy/core/src/common -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/3.7/include/python3.7m
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/npymath
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/npymath -c'
gcc-apple-4.2:
build/src.macosx-10.4-ppc-3.7/numpy/core/src/npysort/radixsort.c
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_bool':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_bool':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_byte':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_byte':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ubyte':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ubyte':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_short':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_short':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ushort':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ushort':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_int':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_int':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_uint':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_uint':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_long':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_long':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulong':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_ulong':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_longlong':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'aradixsort_longlong':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function 'radixsort_ulonglong':
numpy/core/src/npysort/radixsort.c.src:112: error: 'for' loop initial
declaration used outside C99 mode
numpy/core/src/npysort/radixsort.c.src: In function
'aradixsort_ulonglong':
numpy/core/src/npysort/radixsort.c.src:202: error: 'for' loop initial
declaration used outside C99 mode
Running from numpy source directory.
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py:274:
UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_python_py-numpy/py37-numpy/work/numpy-numpy-
97b2160/numpy/distutils/fcompiler/__init__.py:482: UserWarning: F90FLAGS
is used as is, not appended to flags already defined by numpy.distutils!
Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead
(this behavior will become default in a future release).
f90flags = self.flag_vars.f90
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_python_py-numpy/py37-numpy/work/numpy-numpy-
97b2160/numpy/distutils/fcompiler/__init__.py:517: UserWarning: FFLAGS is
used as is, not appended to flags already defined by numpy.distutils! Use
NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this
behavior will become default in a future release).
fflags = self.flag_vars.flags + dflags + oflags + aflags
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_python_py-numpy/py37-numpy/work/numpy-numpy-
97b2160/numpy/distutils/fcompiler/__init__.py:530: UserWarning: LDFLAGS is
used as is, not appended to flags already defined by numpy.distutils! Use
NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this
behavior will become default in a future release).
linker_so_flags = self.flag_vars.linker_so
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_python_py-numpy/py37-numpy/work/numpy-numpy-
97b2160/numpy/distutils/fcompiler/__init__.py:540: UserWarning: LDFLAGS is
used as is, not appended to flags already defined by numpy.distutils! Use
NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this
behavior will become default in a future release).
linker_exe_flags = self.flag_vars.linker_exe
error: Command "/opt/local/bin/gcc-apple-4.2 -fno-strict-aliasing -Wsign-
compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch
ppc -Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Inumpy/core/include
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/include/numpy
-Inumpy/core/src/common -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/3.7/include/python3.7m
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/npymath
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/common
-Ibuild/src.macosx-10.4-ppc-3.7/numpy/core/src/npymath -c
build/src.macosx-10.4-ppc-3.7/numpy/core/src/npysort/radixsort.c -o
build/temp.macosx-10.4-ppc-3.7/build/src.macosx-10.4-ppc-3.7/numpy/core/src/npysort/radixsort.o
-MMD -MF
build/temp.macosx-10.4-ppc-3.7/build/src.macosx-10.4-ppc-3.7/numpy/core/src/npysort/radixsort.o.d"
failed with exit status 1
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports
.org_release_tarballs_ports_python_py-numpy/py37-numpy/work/numpy-1.17.2"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
setup.py --no-user-cfg build
Exit code: 1
Error: Failed to build py37-numpy: command execution failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59122>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list