Skip to content

homebrew-standard: Fix several problems with library search paths #29607

@mkoeppe

Description

@mkoeppe

#29562 broke the gfortran build in homebrew-macos-minimal (https://github.com/mkoeppe/sage/runs/624417033):

Checking LIBRARY_PATH variable... contains current directory
configure: error: 
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.

#29562 also broke flint/singular on homebrew when conflicting versions of libraries are in /usr/local, leading to doctest errors and segfaults such as this one:

File "src/sage/combinat/posets/posets.py", line 3816, in sage.combinat.posets.posets.FinitePoset.coxeter_smith_form
Failed example:
    prod(P.coxeter_smith_form()) == P.coxeter_polynomial()
Exception raised:
    Traceback (most recent call last):
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.posets.posets.FinitePoset.coxeter_smith_form[3]>", line 1, in <module>
        prod(P.coxeter_smith_form()) == P.coxeter_polynomial()
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/combinat/posets/posets.py", line 3846, in coxeter_smith_form
        L = sing_m.smith().sage().diagonal()
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/interfaces/interface.py", line 1087, in sage
        return self._sage_(*args, **kwds)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/interfaces/singular.py", line 1949, in _sage_
        typ = self.type()
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/interfaces/singular.py", line 2107, in type
        m = p.match(self.parent().eval("type(%s)"%self.name()))
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard/local/lib/python3.7/site-packages/sage/interfaces/singular.py", line 659, in eval
        raise SingularError('Singular error:\n%s'%s)
    sage.interfaces.singular.SingularError: Singular error:
           GCDL[j,i]=-STDM[j,j]/G;<<
    Segment fault/Bus error occurred (r:0)
    please inform the authors
    trying to restart...
    Singular : signal 11 (v: 4112):
    current line:>
**********************************************************************

Depends on #29562

CC: @jhpalmieri @dimpase @slel @kiwifb @isuruf @antonio-rojas @mwageringel @thierry-FreeBSD @vbraun

Component: build

Author: Matthias Koeppe

Branch/Commit: fcfbc10

Reviewer: John Palmieri, Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29607

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions