Re: newbie: building ghc

2006-03-16 Thread Mark Greenbank
Hi DUncan, Thanks for the help. I've installed a ghc compiler on my Linux box in order to cross-compile and I'm getting the following error. Any ideas? Thanks, Mark /usr/bin/ghc -H16m -O -H32m -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename

Re: newbie: building ghc

2006-03-16 Thread Duncan Coutts
On Thu, 2006-03-16 at 13:22 -0500, Mark Greenbank wrote: Hi DUncan, Thanks for the help. I've installed a ghc compiler on my Linux box in order to cross-compile and I'm getting the following error. Any ideas? You'll have to be very specific about exactly what procedures you're following.

Re: newbie: building ghc

2006-03-15 Thread Duncan Coutts
On Wed, 2006-03-15 at 17:22 -0500, Mark Greenbank wrote: Hi, Sorry for the newbie question ... I'm trying to build the compiler and I'm getting the following error: [EMAIL PROTECTED] ghc-6.4.1]# ./configure --prefix=/usr/pkg checking build system type... i386-pc-solaris2.10 checking host

RE: Newbie building GHC

2002-09-25 Thread Simon Marlow
The reason that this worries me is that Cygwin ld links with libraries from the Cygwin lib directory rather than the Mingw equivalent, regardless of which gcc was used to compile the object files. We only use ld directly when building the GHCi libraries (HSbase.o etc.), and this doesn't

Re: Newbie building GHC

2002-09-24 Thread Saswat Anand
I ran strace with -ff option. Attached is the trace file. I can see many No such file or directory in the trace. Can you see the problem? Thanks Saswat g Description: Binary data

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
| - Run the following following commands: | | export PATH=/cygdrive/c/lang/mingw32/bin::${PATH} | | make clean; ./configure --build=mingw configure.log Uh oh. You aren't following the instructions in Section 12.4 of the GHC building guide!

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
| make clean; ./configure --build=mingw configure.log PS: I should have said * Before autoconf, mv ./configure configure-save. (It's not writable so autoconf fails otherwise.) * rm config.cache (maybe it's remembering out of date info) ___

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
Hi Simon. You're the victim of my first sentence which was obfuscated by simultaneous attempts at humour and a bad memory disclaimer - sorry - my wife always tells me not to make up my own jokes! (Oops.) To build yesterday's CVS HEAD (previously autoconfed) using Windows 2000, GHC 5.04.1, and

RE: Newbie building GHC

2002-09-24 Thread Simon Marlow
I ran strace with -ff option. Attached is the trace file. I can see many No such file or directory in the trace. Can you see the problem? Here's the problem line: [pid 1514] execve(n/sh, [/bin/sh, -c, gcc Adjustor.c -o /tmp/ghc1513.s...], [/* 36 vars */]) = -1 ENOENT (No such file or

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
: Newbie building GHC | - Run the following following commands: | | export PATH=/cygdrive/c/lang/mingw32/bin::${PATH} | | make clean; ./configure --build=mingw configure.log Uh oh. You aren't following the instructions in Section 12.4 of the GHC building guide! http://haskell.cs.yale.edu/ghc

RE: Newbie building GHC

2002-09-24 Thread Simon Peyton-Jones
] | To: Mike Thomas [EMAIL PROTECTED]; | [EMAIL PROTECTED] | Cc: [EMAIL PROTECTED] | Sent: Tuesday, September 24, 2002 5:30 PM | Subject: RE: Newbie building GHC | | | | - Run the following following commands: | | | | export PATH=/cygdrive/c/lang/mingw32/bin::${PATH} | | | | make clean

RE: Newbie building GHC

2002-09-24 Thread Simon Marlow
| In retrospect I think that unless configure is doing something really | tricky, if you want the Mingw32 ar and ld to be picked up instead of the | Cygwin equivalents then you must have the Mingw32 bin directory in your path | ahead of the Cygwin bin directory. The right thing to do

Re: Newbie building GHC

2002-09-24 Thread Mike Thomas
Hi again. Thanks for the feedback. The only way I know to make all this work is to use a straightforward Cygwin environment for building (with absolutely no mingw stuff in your path) and use --with-gcc in your configure line. Other things may work, but you're on your own. I think

RE: Newbie building GHC

2002-09-23 Thread Simon Marlow
I have been trying to build GHC, but the ghc.exe that gets built for ghc-inplace always exits with Error 1. It *can* print its version number and the help, but building anything fails. The build fails making Adjustor.o from Adjustor.c. I'm trying to build a cvs checkout fpconfig ghc

RE: Newbie building GHC

2002-09-23 Thread Simon Peyton-Jones
| I have been trying to build GHC, but the ghc.exe that gets built for | ghc-inplace always exits with Error 1. It *can* print its version | number and the help, but building anything fails. The build fails | making Adjustor.o from Adjustor.c. I have seen something like this myself. I can't

RE: Newbie building GHC

2002-09-23 Thread Saswat Anand
Hi I am also facing the same problem. I tried to build a virgin tree, but with no success as Simon PJ has pointed out. I have attached my strace file. Saswat On Mon, 23 Sep 2002, Simon Marlow wrote: I have been trying to build GHC, but the ghc.exe that gets built for ghc-inplace

Re: Newbie building GHC

2002-09-23 Thread Seth Kurtzberg
Use strace with the -ff option. This will produce separate traces for each child, which will be easier to interpret. It looks like whatever is going wrong is happening in a child process (but someone who knows more about the innards of ghc may correct me on this). On Monday 23 September

Re: Newbie building GHC

2002-09-23 Thread Mike Thomas
building the STABLE branch (if you were using HEAD previously)? Cheers Mike Thomas. - Original Message - From: Saswat Anand [EMAIL PROTECTED] To: Simon Marlow [EMAIL PROTECTED] Cc: Dominic Cooney [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 24, 2002 1:04 PM Subject: RE: Newbie