From owner-svn-ports-head@freebsd.org Tue Sep 24 21:56:57 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9272CF2EBE; Tue, 24 Sep 2019 21:56:57 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46dFQd3Q0nz44fS; Tue, 24 Sep 2019 21:56:57 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 541E2C575; Tue, 24 Sep 2019 21:56:57 +0000 (UTC) From: Jan Beich To: ports-committers@freebsd.org Cc: svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r512582 - head/math/suitesparse In-Reply-To: <20190924181843.GD59717@graf.pompo.net> (Thierry Thomas's message of "Tue, 24 Sep 2019 20:18:43 +0200") References: <201909221249.x8MCnoxJ014032@repo.freebsd.org> <20190924155630.GD56546@graf.pompo.net> <1rw5-4qdl-wny@FreeBSD.org> <20190924181843.GD59717@graf.pompo.net> Date: Tue, 24 Sep 2019 23:56:45 +0200 Message-ID: <1rw5-bboi-wny@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 21:56:57 -0000 Thierry Thomas writes: > Le mar. 24 sept. 19 =C3=A0 18:21:10 +0200, Jan Beich > =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