Re: [Haskell-cafe] Issue building ghc on NetBSD/amd64

2012-10-16 Thread lhagan
On Mon, Oct 15, 2012 at 8:51 PM, Chatsiri Ratana insider...@gmail.comwrote:

Should be not include intermediate C by call .hc file? It should be using
 flags as below.

  ./configure --build=x86_64-unknown-netbsd --host=x86_64-unknown-netbsd
 --target=x86_64-unknown-netbsd

 Change flag in mk/build.mk  for porting code before running command.


Just tried changing the flag in build.mk, but I get the same error. Also,
I'm pretty sure I need the --enable-hc-boot flag. Without it, I
get: configure: error: GHC is required unless bootstrapping from .hc files.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Issue building ghc on NetBSD/amd64

2012-10-16 Thread Donn Cave
Quoth lhagan lhaga...@gmail.com,

 Just tried changing the flag in build.mk, but I get the same error. Also,
 I'm pretty sure I need the --enable-hc-boot flag. Without it, I
 get: configure: error: GHC is required unless bootstrapping from .hc files.

Unless I've missed a whole lot of progress on this matter, it's going
to be much more work than just getting the flags right.

Several years ago, I managed to build 6.8, by starting with an OpenBSD
port of 6.6 as an hc donor, and of course building 6.6 on NetBSD, and
then using 6.6 to build 6.8.  There's a great deal of debugging and
patching that needs to be done in the process, some of it already done
for i386 and some novel to amd64.  I presented it to the NetBSD Haskell
maintainer, but obviously it's a low priority - I think in the intervening
years, you're the second person to mention it.  If that individual
(whose identity I can't recall at the moment) has a working NetBSD/amd64
port at this time, of any version, that would be extremely helpful;
unfortunately I don't, I think my amd64 hardware is defunct.  (I don't
think I got the interpreter working, by the way, and that also usually
means no haddock, etc.)

Today, you'd be obliged to follow the same course, but probably would have
to build one or two intermediate GHC versions as I doubt that 6.6 could
build the current version.  I understand the current version is not able
to be bootstrapped from hc files at all.

Donn

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Issue building ghc on NetBSD/amd64

2012-10-15 Thread Chatsiri Ratana
On Tue, Oct 16, 2012 at 2:49 AM, lhagan lhaga...@gmail.com wrote:

 I'm attempting to build ghc on NetBSD/amd64 by following the instructions
 at http://hackage.haskell.org/trac/ghc/wiki/Building/Porting, but I
 haven't been able to get past the configure step on the target (see errors
 below). Where am I going wrong here? Alternatively, any ideas on where I
 can find pre-built binaries for this system? NetBSD/i386 would be easy, but
 I've had no luck finding a 64-bit version.

 Here's the configure error:

 ./configure --enable-hc-boot --build=x86_64-unknown-netbsd
 --host=x86_64-unknown-netbsd --target=x86_64-unknown-netbsd
 checking for gfind... no
 checking for find... /usr/bin/find
 checking for sort... /usr/bin/sort
 checking for ghc... no
 checking build system type... x86_64-unknown-netbsd
 checking host system type... x86_64-unknown-netbsd
 checking target system type... x86_64-unknown-netbsd
 HOST: x86_64-unknown-netbsd
 GHC build  : x86_64-unknown-netbsd
 GHC host   : x86_64-unknown-netbsd
 GHC target : x86_64-unknown-netbsd
 configure: Building in-tree ghc-pwd
 ./configure[3900]: : cannot execute - Is a directory
 configure: error: Building ghc-pwd failed

   Can you post an error in config.log? Something wrong find on its.

   Chatsiri Rattana.

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
:
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Issue building ghc on NetBSD/amd64

2012-10-15 Thread lhagan
On Mon, Oct 15, 2012 at 2:44 PM, Chatsiri Ratana insider...@gmail.comwrote:


   Can you post an error in config.log?


Sure, log attached.


config.log
Description: Binary data
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Issue building ghc on NetBSD/amd64

2012-10-15 Thread Chatsiri Ratana
On Tue, Oct 16, 2012 at 8:46 AM, lhagan lhaga...@gmail.com wrote:

 On Mon, Oct 15, 2012 at 2:44 PM, Chatsiri Ratana insider...@gmail.comwrote:


   Can you post an error in config.log?


 Sure, log attached.


Should be not include intermediate C by call .hc file? It should be using
flags as below.

 ./configure --build=x86_64-unknown-netbsd --host=x86_64-unknown-netbsd
--target=x86_64-unknown-netbsd

Change flag in mk/build.mk  for porting code before running command.

Chatsiri Rattana



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




-- 
:
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe