svn commit: r512582 - head/math/suitesparse

Jan Beich jbeich at FreeBSD.org
Tue Sep 24 21:56:57 UTC 2019


Thierry Thomas <thierry at freebsd.org> writes:

> Le mar. 24 sept. 19 à 18:21:10 +0200, Jan Beich <jbeich at FreeBSD.org>
>  écrivait :
>
>> >> >  LIB_DEPENDS=3D	libmetis.so:math/metis \
>> >> > +		libomp.so:devel/openmp \
>> >> 
>> >> Breaks all platforms except amd64 and i386, even Clang-based ones like
>> >> aarch64, armv6, armv7. See ONLY_FOR_ARCHS in devel/openmp.
>> >
>> > 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*.

$ echo 'int main() {}' >a.c
$ g++42 -std=c++0x a.c
cc1plus: error: unrecognized command line option "-std=c++0x"

$ cd math/suitesparse
$ CC=gcc42 CXX=g++42 make
[...]
-- CMAKE_CXX_COMPILER: GNU
CMake Warning at CMakeLists.txt:335 (message):
   WARNING: Your compiler does not support the C++11 ISO standard.
  Future versions of Mongoose will require a compiler with C++11 support.  We
  recommend you upgrade to at least GCC 4.6.
[...]
gmake[6]: Entering directory '/usr/ports/math/suitesparse/work/SuiteSparse/Mongoose/build'
cc1plus: error: unrecognized command line option "-std=c++0x"
cc1plus: error: unrecognized command line option "-std=c++0x"
gmake[6]: *** [CMakeFiles/mongoose_dylib.dir/build.make:89: CMakeFiles/mongoose_dylib.dir/Source/Mongoose_CSparse.o] Error 1

>> Bug 210337 tried to support USES=compiler:openmp on Clang but never finished.
>> I have an improved version (attached) but it wasn't finished as well.
>
> Great! math/suitesparse would need;
>
> USES=     compiler:c++0x:openmp

Multiple arguments aren't supported yet.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199603


More information about the svn-ports-head mailing list