Re: broken python packages?

Derek Homeier <[email protected]> Mon, 6 Nov 2017 02:53:15 +0100
Newsgroups gmane.os.apple.fink.devel
Message-ID <93D2C064-F27B-4BE2-81CA-5EDB8A91A1EC@astro.physik.uni-goettingen.de>
On 29 Oct 2017, at 3:39 pm, Jack Howarth <[email protected]> wrote:
> 
> failures of numpy 1.13.3 as fink-bld...
> 
> Could not locate executable pgfortran
> don't know how to compile Fortran code on platform 'posix'
> C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code
> -DNDEBUG -g -fwrapv -fwrapv -O3 -Wall -Wstrict-prototypes
> -I/sw/include
> 
> compile options: '-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/sw/include/python3.6m -c'
> gcc: _configtest.c
> 
> failure.
> removing: _configtest.c _configtest.o
> Traceback (most recent call last):
>  File "setup.py", line 392, in <module>
>    setup_package()
>  File "setup.py", line 384, in setup_package
>    setup(**metadata)
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/core.py",
> line 169, in setup
>    return old_setup(**new_attr)
>  File "/sw/lib/python3.6/distutils/core.py", line 148, in setup
>    dist.run_commands()
>  File "/sw/lib/python3.6/distutils/dist.py", line 955, in run_commands
>    self.run_command(cmd)
>  File "/sw/lib/python3.6/distutils/dist.py", line 974, in run_command
>    cmd_obj.run()
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build.py",
> line 47, in run
>    old_build.run(self)
>  File "/sw/lib/python3.6/distutils/command/build.py", line 135, in run
>    self.run_command(cmd_name)
>  File "/sw/lib/python3.6/distutils/cmd.py", line 313, in run_command
>    self.distribution.run_command(command)
>  File "/sw/lib/python3.6/distutils/dist.py", line 974, in run_command
>    cmd_obj.run()
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py",
> line 148, in run
>    self.build_sources()
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py",
> line 159, in build_sources
>    self.build_library_sources(*libname_info)
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py",
> line 294, in build_library_sources
>    sources = self.generate_sources(sources, (lib_name, build_info))
>  File "/sw/src/fink.build/numpy-py36-1.13.3-1/numpy-1.13.3/numpy/distutils/command/build_src.py",
> line 377, in generate_sources
>    source = func(extension, build_dir)
>  File "numpy/core/setup.py", line 674, in get_mathlib_info
>    raise RuntimeError("Broken toolchain: cannot link a simple C program")
> RuntimeError: Broken toolchain: cannot link a simple C program
> ### execution of /tmp/fink.JpadZ failed, exit code 1
> ### execution of /tmp/fink.kTHyz failed, exit code 1
> Removing runtime build-lock...
> Removing build-lock package...
> 
> Any suggestions on how to debug this as upstream seems disinterested.

This seems to be the same issue that already turned up with the 1.13.0 package,
namely the compile command being constructed from the build user’s $SHELL,
which is /usr/bin/false for fink-bld:

https://sourceforge.net/p/fink/package-submissions/4930/#467b

Explicitly resetting SHELL=/bin/sh allows both to compile without unsetting BuildAsNobody.
I’ve tested the attached info files for all Python versions on 10.12 and 10.13, apart from a
somewhat erratic test failure of test_mstats_extras.py:test_hdmedian everything builds fine.
For the record, I’ve tested using gcc7, but Type: gcc (6) works as well.

Cheers,
					Derek

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
numpy-py.info (application/octet-stream, 2.9 KB) - not displayed
scipy-py.info (application/octet-stream, 3.9 KB) - not displayed