From owner-freebsd-ports@FreeBSD.ORG Sun Jun 26 00:40:13 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FF3B106566B for ; Sun, 26 Jun 2011 00:40:13 +0000 (UTC) (envelope-from eric@shadowsun.net) Received: from mail.atlantawebhost.com (dns1.atlantawebhost.com [66.223.40.39]) by mx1.freebsd.org (Postfix) with ESMTP id E37A38FC12 for ; Sun, 26 Jun 2011 00:40:12 +0000 (UTC) Received: (qmail 4906 invoked from network); 25 Jun 2011 20:13:31 -0400 Received: from host-64-202-138-67.cybera.net (HELO Macintosh-21.local) (64.202.138.67) by mail.atlantawebhost.com with SMTP; 25 Jun 2011 20:13:31 -0400 Message-ID: <4E0679AA.20100@shadowsun.net> Date: Sat, 25 Jun 2011 20:13:30 -0400 From: Eric McCorkle User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: GHC Port on 9-CURRENT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2011 00:40:13 -0000 The GHC (Glasgow Haskell Compiler) was marked broken by pointyhat sometime back in May, following its update to GHC 7.0.3_1. I'm not sure if anyone has looked at this, but it doesn't appear anyone has. Sorry if any of this is repeated. I tried building the port yesterday, with both GCC and Clang. The GCC build succeeds, and the compiler seems to work just fine (it has no trouble compiling and installing the haskell-platform port, as well as many of my own haskell programs). With Clang, an error occurs in one of the configure scripts, because Clang warns about unused command-line arguments, and the configure script assumes that to be a compiler error. You can deal with this by adding -Qunused-parameter to CFLAGS. With this, it builds the bootstrap and stage 1 compilers. However, the stage 1 compiler's parser appears to be broken, as it reports erroneous parse errors on the GHC compiler's source code (and probably for any haskell program, but it never gets a chance to). I'm not sure why this happens, but I will investigate more closely once I deal with some more important issues I'm investigating. In any case, the port builds fine with GCC. Perhaps it would be prudent to set CC=gcc and CXX=g++ in the makefile for the time being and mark the port as working again? -- Eric McCorkle Computer Science Ph.D Student, University of Massachusetts Research Intern, IBM Research