Opened 5 years ago

Closed 5 years ago

#3525 closed bug (fixed)

current dist source fail to build when Happy not found

Reported by: kristerw Owned by: simonmar
Priority: normal Milestone: 6.12.1
Component: Build System Version: 6.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The daily source tarballs from http://www.haskell.org/ghc/dist/current/dist/ errors out at configure time if Happy is not found. This error was introduced in the ghc-6.11.20090913-src.tar.bz2 source.

A workaround to make it compile is to modify the configure script as:
--- configure.orig 2009-09-17 23:07:01.000000000 +0200
+++ configure 2009-09-17 23:07:39.000000000 +0200
@@ -5605,7 +5605,7 @@

fi
{ echo "$as_me:$LINENO: result: $fptools_cv_happy_version" >&5
echo "${ECHO_T}$fptools_cv_happy_version" >&6; }

-if test ! -f compiler/parser/Parser.hs test ! -f compiler/main/ParsePkgConf.hs test ! -f compiler/cmm/CmmParse.hs test ! -f compiler/parser/ParserCore.hs

+if test ! -f compiler/parser/Parser.hs
test ! -f compiler/cmm/CmmParse.hs test ! -f compiler/parser/ParserCore.hs

then

fp_version1=$fptools_cv_happy_version; fp_version2=1.16

fp_save_IFS=$IFS; IFS='.'

Attachments (1)

patch090917 (624 bytes) - added by kristerw 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by kristerw

comment:1 Changed 5 years ago by simonmar

  • Difficulty set to Unknown
  • Owner set to simonmar

Thanks, I'll push.

comment:2 Changed 5 years ago by simonmar

  • Component changed from Compiler to Build System
  • Milestone set to 6.12.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed

Fri Sep 18 11:43:27 BST 2009  Simon Marlow <marlowsd@gmail.com>
  * Fix #3525 - we were still checking for ParsePkgConf.hs, which is gone
Note: See TracTickets for help on using tickets.