From owner-freebsd-current@freebsd.org Thu Dec 31 20:36:56 2015 Return-Path: Delivered-To: freebsd-current@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 C7582A566B5 for ; Thu, 31 Dec 2015 20:36:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B5DE518A9 for ; Thu, 31 Dec 2015 20:36:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: by mailman.ysv.freebsd.org (Postfix) id B4F35A566B3; Thu, 31 Dec 2015 20:36:56 +0000 (UTC) Delivered-To: current@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 B492AA566B2 for ; Thu, 31 Dec 2015 20:36:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id A2BFB18A8; Thu, 31 Dec 2015 20:36:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yuri.doctorlan.com (c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id tBVKas87086098 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 31 Dec 2015 12:36:55 -0800 (PST) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128] claimed to be yuri.doctorlan.com Subject: Re: Is updating contrib/gcc desirable? To: David Chisnall References: <56851884.4020105@rawbw.com> <3CB8D267-00D4-4A48-A821-0644CC1F050E@FreeBSD.org> Cc: current@freebsd.org From: Yuri Message-ID: <568591E6.8030303@rawbw.com> Date: Thu, 31 Dec 2015 12:36:54 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <3CB8D267-00D4-4A48-A821-0644CC1F050E@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2015 20:36:56 -0000 On 12/31/2015 04:15, David Chisnall wrote: > The newer versions of GCC are GPLv3 and so are unacceptable for the FreeBSD base system. Most of libgcc in base now comes from compiler-rt. The correct solution would be to identify the missing functionality in compiler-rt so that it can be fixed (with patches ideally, but even a list of the missing functions and what they do would be helpful). Things like libquadmath, which are only needed for the port, belong in ports. When I look which symbols clang++-compiled executables require from libgcc_s.so, list only has these symbols (mostly the first one): _Unwind_Resume _Unwind_DeleteException _Unwind_GetCFA _Unwind_RaiseException _Unwind_SetGR _Unwind_SetIP I couldn't find any of them defined in compiler-rt. But it looks like libunwind project implements them: http://www.nongnu.org/libunwind/. There is also the port devel/libunwind. I am not sure if this means that libunwind should be imported into the base. If only general C++ programs could be untangled from libgcc, this fortran problem will be solved. Yuri