Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2019 23:56:45 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org
Cc:        svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r512582 - head/math/suitesparse
Message-ID:  <1rw5-bboi-wny@FreeBSD.org>
In-Reply-To: <20190924181843.GD59717@graf.pompo.net> (Thierry Thomas's message of "Tue, 24 Sep 2019 20:18:43 %2B0200")
References:  <201909221249.x8MCnoxJ014032@repo.freebsd.org> <tv91-693k-wny@FreeBSD.org> <20190924155630.GD56546@graf.pompo.net> <1rw5-4qdl-wny@FreeBSD.org> <20190924181843.GD59717@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thierry Thomas <thierry@freebsd.org> writes:

> Le mar. 24 sept. 19 =C3=A0 18:21:10 +0200, Jan Beich <jbeich@FreeBSD.org>
>  =C3=A9crivait=C2=A0:
>
>> >> >  LIB_DEPENDS=3D3D	libmetis.so:math/metis \
>> >> > +		libomp.so:devel/openmp \
>> >>=20
>> >> 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 n=
ot
>> > in base?

Why? math/suitesparse has USES=3Dcompiler:c++0x which pulls lang/gcc${GCC_D=
EFAULT}
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=3Dc++0x a.c
cc1plus: error: unrecognized command line option "-std=3Dc++0x"

$ cd math/suitesparse
$ CC=3Dgcc42 CXX=3Dg++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=3Dc++0x"
cc1plus: error: unrecognized command line option "-std=3Dc++0x"
gmake[6]: *** [CMakeFiles/mongoose_dylib.dir/build.make:89: CMakeFiles/mong=
oose_dylib.dir/Source/Mongoose_CSparse.o] Error 1

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1rw5-bboi-wny>