#3642: GHC does not build using the Haskell Platform on Windows
---------------------------+------------------------------------------------
  Reporter:  simonmar      |          Owner:  igloo           
      Type:  bug           |         Status:  reopened        
  Priority:  high          |      Milestone:  6.12.2          
 Component:  Build System  |        Version:  6.10.4          
Resolution:                |       Keywords:                  
Difficulty:  Unknown       |             Os:  Unknown/Multiple
  Testcase:                |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------

Comment(by igloo):

 Looks like this problem is caused by ar replacing object files in
 libraries, which happens when xargs adds them in different ar invocations:
 {{{
 $ AR="c:/Program Files/Haskell Platform/2009.2.0.2/bin/ar"
 $ rm z.a
 $ "$AR" clqs z.a Data/ByteString/Char8_o_split/Char8__11.o
 Data/ByteString/Lazy/Char8_o_split/Char8__11.o
 $ ls -l z.a
 -rwxr-xr-x 1 ian None 3548 2010-03-23 20:01 z.a
 $ nm z.a | grep
 bytestringzm0zi9zi1zi5_DataziByteStringziChar8_readFile1_closure
 00000014 D
 _bytestringzm0zi9zi1zi5_DataziByteStringziChar8_readFile1_closure
 $ rm z.a
 $ "$AR" clqs z.a Data/ByteString/Char8_o_split/Char8__11.o
 $ "$AR" clqs z.a Data/ByteString/Lazy/Char8_o_split/Char8__11.o
 $ ls -l z.a
 -rwxr-xr-x 1 ian None 678 2010-03-23 20:01 z.a
 $ nm z.a | grep
 bytestringzm0zi9zi1zi5_DataziByteStringziChar8_readFile1_closure
 }}}

 The same thing happens with all these ar's:
 {{{
 $ "c:/Program Files/Haskell Platform/2009.2.0.2/bin/ar" --version
 GNU ar 2.17.50 20060824
 Copyright 2005 Free Software Foundation, Inc.
 This program is free software; you may redistribute it under the terms of
 the GNU General Public License.  This program has absolutely no warranty.

 $ "../../../../inplace/mingw/bin/ar" --version
 GNU ar (GNU Binutils) 2.19.1
 Copyright 2007 Free Software Foundation, Inc.
 This program is free software; you may redistribute it under the terms of
 the GNU General Public License version 3 or (at your option) any later
 version.
 This program has absolutely no warranty.

 $ "/usr/bin/ar" --version
 GNU ar (GNU Binutils) 2.19.51.20090704
 Copyright 2008 Free Software Foundation, Inc.
 This program is free software; you may redistribute it under the terms of
 the GNU General Public License version 3 or (at your option) any later
 version.
 This program has absolutely no warranty.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3642#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to