Ticket #3669 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

haddock: internal Haddock or GHC error: Win32-version:: openBinaryFile: invalid argument (Invalid argument)

Reported by: igloo Owned by: igloo
Priority: high Milestone: 6.12.1
Component: Compiler Version: 6.10.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This change to gen_contents_index:

VERSION=`grep -i '^version:' $LIBPATH/$NAME.cabal | sed 's/.*[ \t]//'`

looks like it has caused this problem for SPJ on MSYS:

cd libraries && sh gen_contents_index --inplace
haddock: internal Haddock or GHC error: Win32-version:: openBinaryFile: invalid argument (Invalid argument)
make[1]: *** [libraries/index.html] Error 1
make: *** [all] Error 2
sh-3.1$

Presumably the problem is that the sed didn't remove what it was meant to, presumably because the '\t' didn't end up matching the tab character in the file.

Change History

Changed 4 years ago by igloo

  • status changed from new to closed
  • failure set to None/Unknown
  • resolution set to fixed

Fixed in HEAD and 6.12 by:

Tue Nov 17 22:35:56 GMT 2009  Ian Lynagh <igloo@earth.li>
  * Fix gen_contents_index on MSYS
  On MSYS
      sed 's/.*[ \t]//'
  wasn't matching
      version:<tab>1.0
  so I've switched to
      's/.*[[:space:]]//'
  which works on Linux, cygwin and MSYS.
Note: See TracTickets for help on using tickets.