From owner-svn-ports-all@freebsd.org Tue Nov 14 15:11:52 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDAC2DC1765; Tue, 14 Nov 2017 15:11:52 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay107.isp.belgacom.be (mailrelay107.isp.belgacom.be [195.238.20.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 032D2287E; Tue, 14 Nov 2017 15:11:50 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3AY7MgdxZcE0FtxxMSvZG2C4v/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZps24Zx7h7PlgxGXEQZ/co6odzbGH4+a4ASQp2tWoiDg6aptCVhsI24?= =?us-ascii?q?09vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7?= =?us-ascii?q?Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Yr5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYe?= =?us-ascii?q?RWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZ?= =?us-ascii?q?TAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hy?= =?us-ascii?q?cdLzM3/mHZhNJtgqxYoh2hqRNwzJLbboyOKPpzfL/Rcc8GSWZdQMpcUTFKDIOm?= =?us-ascii?q?b4sICuoMJfhWr4j/p1sKsBCzGw6sBOT0yjBWg3/5x6s60/88GgzBwAwgHtAOsH?= =?us-ascii?q?DPodv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c2jbN9GCdwmqSp0xYXhRwXrvb?= =?us-ascii?q?Un8EfUvZsM715kTYT7+hWvwbNV5jztWPMqsCT9zvgk9BQvqrbNbEZkqfgWq9Ly?= =?us-ascii?q?2kgLSWY9y5VX8a2XDhCUoA2ysU+m2LMAE4HW/1v2PcCBRAD1/iSXjAt+5kpyXo?= =?us-ascii?q?HQcP0wiWYhg5hPKO8RkPiKnERg=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C/CAByBgta/0Oz9VFcGwEBAQEDAQEBC?= =?us-ascii?q?QEBAYM2VH4UE48RjjwCgXw0AZYighGFRQKEf0IWAQEBAQEBAQEBAWoogjgigkU?= =?us-ascii?q?BBTocIxALDgoJJQ8qHgYTiietTIsTAQEBAQEBAQMBAQEBASODNIVFgyqLEAWiN?= =?us-ascii?q?JR5gQCST5dkJg0kgXNVMgiDLYRgQDaJBAEBAQ?= X-IPAS-Result: =?us-ascii?q?A2C/CAByBgta/0Oz9VFcGwEBAQEDAQEBCQEBAYM2VH4UE48?= =?us-ascii?q?RjjwCgXw0AZYighGFRQKEf0IWAQEBAQEBAQEBAWoogjgigkUBBTocIxALDgoJJ?= =?us-ascii?q?Q8qHgYTiietTIsTAQEBAQEBAQMBAQEBASODNIVFgyqLEAWiNJR5gQCST5dkJg0?= =?us-ascii?q?kgXNVMgiDLYRgQDaJBAEBAQ?= Received: from 67.179-245-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.245.179.67]) by relay.skynet.be with ESMTP; 14 Nov 2017 16:10:36 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id vAEFAYgi027882; Tue, 14 Nov 2017 16:10:34 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Tue, 14 Nov 2017 16:10:33 +0100 From: Tijl Coosemans To: Joseph Mingrone Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, portmgr@FreeBSD.org, Johannes M Dieterich , yuri@rawbw.com, maho@FreeBSD.org, sunpoet@FreeBSD.org Subject: Re: svn commit: r452962 - head/math/libRmath Message-ID: <20171114161025.41b4d822@kalimero.tijl.coosemans.org> In-Reply-To: <861slmu8qx.fsf@phe.ftfl.ca> References: <201710270052.v9R0qf7A058644@repo.freebsd.org> <20171027125130.39e98c9c@kalimero.tijl.coosemans.org> <86d158vcve.fsf@phe.ftfl.ca> <20171028124843.56f8e8d3@kalimero.tijl.coosemans.org> <86y3nvtjlt.fsf@phe.ftfl.ca> <20171028182237.1f83708c@kalimero.tijl.coosemans.org> <861slmu8qx.fsf@phe.ftfl.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 15:11:52 -0000 On Sat, 28 Oct 2017 20:56:38 -0300 Joseph Mingrone wrote: > Tijl Coosemans writes: >> It's not a gfortran problem. It's a kernel or libthr problem. You >> can work around it by avoiding the combination of recycled thread >> stacks and exception handling done by ports libgcc_s. When you >> switched from curl to wget you avoided threads and that fixed the >> problem. Switching to flang avoids ports libgcc_s and that also >> fixes the problem, but it's not necessary to go this way. You could >> probably go back to curl if you build it with the CARES option instead >> of THREADED_RESOLVER. > > I missed this paragraph last time around. > > It's not really a switch to wget. We just pull it in as RUN_DEPENDS > when gfortran is on. R still defaults to downloading packages with > curl. Users can create/edit configuration to switch to wget, which > is not a big deal, but not ideal. I've copied sunpoet@, the > maintainer of ftp/curl. sunpoet@, what do you think about switching > ftp/curl's default to c-ares instead of THREADED_RESOLVER to work > around this problem (until there are fixes for the threading problem > that is triggered with ports libgcc_s)? The fix for this was committed to FreeBSD head and stable/11 and a workaround has been added to the lang/gcc ports now, so it should be possible for math/R to use curl again, with THREADED_RESOLVER option. So I'd like to propose the following compromise: We keep USES=fortran:gcc and fortran:flang but also introduce DEFAULT_VERSIONS=fortran and let plain USES=fortran choose the Fortran compiler based on that. Then math/R can provide a flang option that sets USES=fortran:flang when on, and USES=fortran when off. So the description of the option would be something like "Use flang instead of the default Fortran compiler". The default for this option would be off, also on amd64.