Ticket #5760 (closed bug: fixed)

Opened 17 months ago

Last modified 16 months ago

lib/settings file wrong

Reported by: rl Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.2.1
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Other Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

This is what ghc-7.2.2/lib/settings looks like on my machine after normal installation with the Windows installer:

[("GCC extra via C opts", " -fwrapv"),
 ("C compiler command", "$topdir/../mingw/bin/gcc.exe"),
 ("C compiler flags", ""),
 ("ar command", "D:/slave/stable/builder/tempbuild/build/inplace/mingw/bin/ar.exe"),
 ("ar flags", "q"),
 ("ar supports at file", "YES"),
 ("touch command", "$topdir/touchy.exe"),
 ("dllwrap command", "$topdir/../mingw/bin/dllwrap.exe"),
 ("windres command", "$topdir/../mingw/bin/windres.exe"),
 ("perl command", "$topdir/../perl/perl.exe")]

It seems that ar command is completely wrong.

Change History

Changed 16 months ago by igloo

  • status changed from new to merge
  • difficulty set to Unknown

Thanks for the report. Fixed by:

commit 2719cacde99fd3127a3569feebdf7183030e000d
Author: Ian Lynagh <igloo@earth.li>
Date:   Sat Jan 14 21:35:53 2012 +0000

    Define "ar command" correctly in settings file on Windows
    
    We want to use the inplace ar, rather than whichever ar the
    machine that we build on happens to have.

You can fix your 7.2.2 installation by editing c:/ghc/ghc-7.2.2/lib/settings and changing the ar command entry to:

 ("ar command", "$topdir/../mingw/bin/ar.exe"),

Changed 16 months ago by igloo

  • status changed from merge to closed
  • resolution set to fixed

Merged as e71ee1b6638ea3cb5896805c3ada042f44106081

Note: See TracTickets for help on using tickets.