... | ... | @@ -20,8 +20,109 @@ All developers, what ARM-based devices do you have available for testing? |
|
|
|
|
|
- shepheb has a Nokia N810.
|
|
|
|
|
|
## Unregisterised 6.6.1 Notes
|
|
|
|
|
|
### Another False Start
|
|
|
|
|
|
|
|
|
I had to install 6.6.1 on my system to compile 6.6.1, first off. Then I apparent need an older gcc (have 4.3.0). Rather than dive deeper into that (it would require an old gcc on the scratchbox dev environment too, too much pain when I have an alternative), I'm just going to try to build an unregisterised 6.8.2 with the patch posted in [\#1346](https://gitlab.haskell.org//ghc/ghc/issues/1346). The results for that build attempt follow, after the info for the failed 6.6.1 one.
|
|
|
|
|
|
### Original 6.6.1 Build Intro
|
|
|
|
|
|
|
|
|
Building using the 6.6.1 released source. Note that I already have libgmp and libffi installed on both machines (though libffi isn't being used).
|
|
|
|
|
|
### Target-side Prep
|
|
|
|
|
|
|
|
|
Flawless! (Again, I had libgmp installed this time).
|
|
|
|
|
|
### Host-side
|
|
|
|
|
|
#### It complains about Perl 5.10
|
|
|
|
|
|
|
|
|
./configure failed saying my Perl version wouldn't work. perl --version reveals it's 5.10, and I had to edit aclocal.m4, thus:
|
|
|
|
|
|
```wiki
|
|
|
AC_DEFUN([FPTOOLS_CHECK_PERL_VERSION],
|
|
|
[$PerlCmd -v >conftest.out 2>&1
|
|
|
if grep "v5.6" conftest.out >/dev/null 2>&1; then
|
|
|
:
|
|
|
else
|
|
|
if grep "v5.8" conftest.out >/dev/null 2>&1; then
|
|
|
:
|
|
|
else
|
|
|
if grep "v5.10" conftest.out >/dev/null 2>&1; then
|
|
|
:
|
|
|
else
|
|
|
if grep "version 6" conftest.out >/dev/null 2>&1; then
|
|
|
:
|
|
|
else
|
|
|
AC_MSG_ERROR([your version of perl probably won't work, try up\
|
|
|
grading it.])
|
|
|
fi
|
|
|
fi
|
|
|
fi
|
|
|
fi
|
|
|
rm -fr conftest*
|
|
|
])
|
|
|
```
|
|
|
|
|
|
|
|
|
making it accept 5.10 too. Then I ran autoreconf, and ./configure ran to completion.
|
|
|
|
|
|
## Third Unregistered Build - GHC 6.8.2
|
|
|
|
|
|
|
|
|
Using the patch posted at [\#1346](https://gitlab.haskell.org//ghc/ghc/issues/1346), I'm trying to build 6.8.2.
|
|
|
|
|
|
### Target-side
|
|
|
|
|
|
#### utils/pwd/pwd again
|
|
|
|
|
|
|
|
|
Same problem with utils/pwd/pwd as in the first attempt below, with the same solution. After that fix both machines configure successfully.
|
|
|
|
|
|
### Host-side
|
|
|
|
|
|
#### Tripped up at the last again
|
|
|
|
|
|
|
|
|
Got all the way to make hc-file-bundle Project=Ghc, the last host-side step for now, before running into trouble. It couldn't find the file rts/AutoApply_debug.hc, so I touched it and ran the command again. I have no idea if that will break anything later on, but we shall see.
|
|
|
|
|
|
### Back to the Target
|
|
|
|
|
|
#### Stuck on libraries/ again
|
|
|
|
|
|
|
|
|
I'm manually stepping through distrib/hc-build, and get stuck on
|
|
|
|
|
|
```wiki
|
|
|
make -C libraries boot all GhcBootLibs=YES
|
|
|
```
|
|
|
|
|
|
|
|
|
with the error message
|
|
|
|
|
|
```wiki
|
|
|
> make -C libraries boot all GhcBootLibs=YES
|
|
|
make: Entering directory `/home/braden/ghc/ghc-6.8.2/libraries'
|
|
|
make: *** No rule to make target `base/Makefile', needed by `boot'. Stop.
|
|
|
make: Leaving directory `/home/braden/ghc/ghc-6.8.2/libraries'
|
|
|
> echo $?
|
|
|
2
|
|
|
```
|
|
|
|
|
|
## First Unregisterised Hack Notes
|
|
|
|
|
|
### Why it doesn't work
|
|
|
|
|
|
|
|
|
On discussion with Igloo (Ian Lynagh) on \#haskell, it turns out that hc-file bootstrapping has been broken in 6.8 since the beginning, meaning that only platforms with a working GHC prior to 6.8 can build a 6.8 or later. This undercuts the porting effort until [\#1346](https://gitlab.haskell.org//ghc/ghc/issues/1346) is fixed. I may try the "quick hack" diff attached to see if it works out. The comment from the user who posted it seems to imply that it's incomplete, though.
|
|
|
|
|
|
### The original attempt
|
|
|
|
|
|
|
|
|
This documents shepheb's first attempt at a crude, unregisterised build for the Nokia N810 using Maemo 4 Diablo and the Maemo SDK (scratchbox-based)
|
|
|
|
... | ... | |