GHC 7.2.2 Distribution.Simple.Program.Ar

Joe Buehler aspam at cox.net
Fri May 18 21:20:07 CEST 2012


I built GHC 7.2.2 on a LINUX box running RHEL 3.  When compiling a package using
this GHC it is trying to invoke ar thus:

execve("/usr/bin/ar", ["/usr/bin/ar", "-r", "-c",
"dist/build/libHSregex-base-0.93."..., "dist/build/Text/Regex/Base.o",
"dist/build/Text/Regex/Base/Regex"..., "dist/build/Text/Regex/Base/Conte"...,
"dist/build/Text/Regex/Base/Impl."...], [/* 45 vars */]) = 0

My version of ar does not like being invoked as "/usr/bin/ar -r -c lib.a file
file file...", it complains that the .a file is missing.  I believe it should be
"/usr/bin/ar rc lib.a file file file...".

This appears to originate in Distribution.Simple.Program.Ar.  Can someone tell
me what is going on here?

Joe Buehler





More information about the Glasgow-haskell-users mailing list