svn commit: r512582 - head/math/suitesparse

Jan Beich jbeich at FreeBSD.org
Thu Sep 26 16:20:52 UTC 2019


thierry at freebsd.org writes:

> Selon Jan Beich <jbeich at freebsd.org> le mar. 24 sept. 23:56:45 2019 :
>
>>>> > Is there a way to request a compiler < C++11 and require openmp when not
>>>> > in base?
>>
>> Why? math/suitesparse has USES=compiler:c++0x which pulls
>> lang/gcc${GCC_DEFAULT}
>> on architectures like powerpc* (ELFv1)and sparc64. mips* and riscv* are out
>> of luck atm due to not supporting either Clang or lang/gcc*.
>
> Please see PR 240672:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240672

Did the reporter forget to rebuild lang/gcc9 ? I can't reproduce.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51785 and
http://beefy12.nyi.freebsd.org/data/latest-per-pkg/gcc9/9.2.0/head-amd64-default.log

  $ make clean all BATCH= -C ${PORTSDIR:-/usr/ports}/lang/gcc9 2>&1 | fgrep -w gets
  checking for gets declaration... no

  $ pkg install gcc9 gcc8 gcc7 gcc6 gcc5 gcc48
  $ fgrep -rl '#define _GLIBCXX_HAVE_GETS' /usr/local/lib/gcc*
  $ echo '#include <cstdio>' | g++9 -std=gnu++98 -xc++ -c - -o/dev/null
  $ echo '#include <cstdio>' | g++8 -std=gnu++98 -xc++ -c - -o/dev/null
  $ echo '#include <cstdio>' | g++7 -std=gnu++98 -xc++ -c - -o/dev/null
  $ echo '#include <cstdio>' | g++6 -std=gnu++98 -xc++ -c - -o/dev/null
  $ echo '#include <cstdio>' | g++5 -std=gnu++98 -xc++ -c - -o/dev/null
  $ echo '#include <cstdio>' | g++48 -std=gnu++98 -xc++ -c - -o/dev/null

When  -CURRENT bumps __FreeBSD_version it forces rebuild of all packages.
If gcc* binary packages were broken it was only for a short time.

  https://svnweb.freebsd.org/changeset/base/351659 # removal
  https://svnweb.freebsd.org/changeset/base/351660 # gcc42 fix
  https://svnweb.freebsd.org/changeset/base/351698 # bump

In short, reverting both r512392 and r512582 appears to help:

  https://reviews.freebsd.org/P320 # suitesparse
  https://reviews.freebsd.org/P321 # ceres-solver
  https://reviews.freebsd.org/P322 # databases/grass7


More information about the svn-ports-all mailing list