Problem building on host machine when trying to cross-compile an unregistered build

Hi, host machine is Linux i386 and the target is NetBSD alpha, ghc
6.8.2. With the help of the list the first part (on the target) is done
and I'm building the compiler on the host -- when building rts I get
"cc1: error: unrecognized command line option "-mieee"
What's this about? (I notice a couple of seemingly ignorable warnings in
the following, about missing gmpbuild and libHSrts.a. Is that relevant?)
Thanks.
jim@mowa624-jb162:~/ghc-6.8.2/compiler$ cd ../rts && make boot && make
gcc -E -undef -traditional -P \
-DIMPORT_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DLIB_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DINCLUDE_DIR='"/home/jim/ghc-6.8.2/libraries/rts/include"' \
-DDATA_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DHTML_DIR='"/home/jim/ghc-6.8.2/libraries/rts/html"' \
-DHADDOCK_IFACE='"/home/jim/ghc-6.8.2/libraries/rts/html/rts.haddock"' \
-DFPTOOLS_TOP_ABS='"/home/jim/ghc-6.8.2"' \
-x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS=''
-I../includes -Iinclude -DPACKAGE=rts -DVERSION=
-DPKG_LIBDIR='"/usr/local/lib/ghc-6.8.2"'
-DPKG_DATADIR='"/usr/local/share/ghc-6.8.2"' package.conf.in | \
grep -v '^#pragma GCC' | \
sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.inplace
../utils/ghc-pkg/ghc-pkg-inplace update - --force-files

Truly sorry to bump this, but does anyone have any pointers about building the host part of a cross-compilation? I've tried to follow the wiki instructions and failed. On Mon, 2008-01-14 at 12:41 +0000, jb162@brighton.ac.uk wrote:
Hi, host machine is Linux i386 and the target is NetBSD alpha, ghc 6.8.2. With the help of the list the first part (on the target) is done and I'm building the compiler on the host -- when building rts I get
"cc1: error: unrecognized command line option "-mieee"
What's this about? (I notice a couple of seemingly ignorable warnings in the following, about missing gmpbuild and libHSrts.a. Is that relevant?) Thanks.
jim@mowa624-jb162:~/ghc-6.8.2/compiler$ cd ../rts && make boot && make gcc -E -undef -traditional -P \ -DIMPORT_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DLIB_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DINCLUDE_DIR='"/home/jim/ghc-6.8.2/libraries/rts/include"' \ -DDATA_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DHTML_DIR='"/home/jim/ghc-6.8.2/libraries/rts/html"' \
-DHADDOCK_IFACE='"/home/jim/ghc-6.8.2/libraries/rts/html/rts.haddock"' \ -DFPTOOLS_TOP_ABS='"/home/jim/ghc-6.8.2"' \ -x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS='' -I../includes -Iinclude -DPACKAGE=rts -DVERSION= -DPKG_LIBDIR='"/usr/local/lib/ghc-6.8.2"' -DPKG_DATADIR='"/usr/local/share/ghc-6.8.2"' package.conf.in | \ grep -v '^#pragma GCC' | \ sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.inplace ../utils/ghc-pkg/ghc-pkg-inplace update - --force-files
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Jim Burton wrote:
Truly sorry to bump this, but does anyone have any pointers about building the host part of a cross-compilation? I've tried to follow the wiki instructions and failed.
First thing to note is that bootstrapping from HC files has bitrotted in 6.8.x, see http://hackage.haskell.org/trac/ghc/ticket/1346. I've updated the wiki instructions to say this. You should go back to 6.6.x, or be prepared to fix things... I thought I remembered someone saying recently they were looking into getting bootstrapping working again, but I can't seem to find it now.
On Mon, 2008-01-14 at 12:41 +0000, jb162@brighton.ac.uk wrote:
Hi, host machine is Linux i386 and the target is NetBSD alpha, ghc 6.8.2. With the help of the list the first part (on the target) is done and I'm building the compiler on the host -- when building rts I get
"cc1: error: unrecognized command line option "-mieee"
It looks like this comes from mk/bootstrap.mk, which says: ifeq "$(alpha_TARGET_ARCH)" "1" PLATFORM_CC_OPTS += -static -w PLATFORM_HC_BOOT_CC_OPTS += -mieee endif So someone in the past thought it was a good idea to pass this option when compiling .hc files. I can't tell you any more than that - perhaps just removing that line will get you going again. Cheers, Simon
What's this about? (I notice a couple of seemingly ignorable warnings in the following, about missing gmpbuild and libHSrts.a. Is that relevant?) Thanks.
jim@mowa624-jb162:~/ghc-6.8.2/compiler$ cd ../rts && make boot && make gcc -E -undef -traditional -P \ -DIMPORT_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DLIB_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DINCLUDE_DIR='"/home/jim/ghc-6.8.2/libraries/rts/include"' \ -DDATA_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DHTML_DIR='"/home/jim/ghc-6.8.2/libraries/rts/html"' \
-DHADDOCK_IFACE='"/home/jim/ghc-6.8.2/libraries/rts/html/rts.haddock"' \ -DFPTOOLS_TOP_ABS='"/home/jim/ghc-6.8.2"' \ -x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS='' -I../includes -Iinclude -DPACKAGE=rts -DVERSION= -DPKG_LIBDIR='"/usr/local/lib/ghc-6.8.2"' -DPKG_DATADIR='"/usr/local/share/ghc-6.8.2"' package.conf.in | \ grep -v '^#pragma GCC' | \ sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.inplace ../utils/ghc-pkg/ghc-pkg-inplace update - --force-files
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Mon, 2008-01-21 at 15:23 +0000, Simon Marlow wrote:
Jim Burton wrote: [...] First thing to note is that bootstrapping from HC files has bitrotted in 6.8.x, see http://hackage.haskell.org/trac/ghc/ticket/1346. I've updated the wiki instructions to say this. You should go back to 6.6.x, or be prepared to fix things... I thought I remembered someone saying recently they were looking into getting bootstrapping working again, but I can't seem to find it now.
Hi,thanks for your help. I'll try 6.6.1 and let you know how I get on. Jim
On Mon, 2008-01-14 at 12:41 +0000, jb162@brighton.ac.uk wrote:
Hi, host machine is Linux i386 and the target is NetBSD alpha, ghc 6.8.2. With the help of the list the first part (on the target) is done and I'm building the compiler on the host -- when building rts I get
"cc1: error: unrecognized command line option "-mieee"
It looks like this comes from mk/bootstrap.mk, which says:
ifeq "$(alpha_TARGET_ARCH)" "1" PLATFORM_CC_OPTS += -static -w PLATFORM_HC_BOOT_CC_OPTS += -mieee endif
So someone in the past thought it was a good idea to pass this option when compiling .hc files. I can't tell you any more than that - perhaps just removing that line will get you going again.
Cheers, Simon
What's this about? (I notice a couple of seemingly ignorable warnings in the following, about missing gmpbuild and libHSrts.a. Is that relevant?) Thanks.
jim@mowa624-jb162:~/ghc-6.8.2/compiler$ cd ../rts && make boot && make gcc -E -undef -traditional -P \ -DIMPORT_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DLIB_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \
-DINCLUDE_DIR='"/home/jim/ghc-6.8.2/libraries/rts/include"' \ -DDATA_DIR='"/home/jim/ghc-6.8.2/libraries/rts"' \ -DHTML_DIR='"/home/jim/ghc-6.8.2/libraries/rts/html"' \
-DHADDOCK_IFACE='"/home/jim/ghc-6.8.2/libraries/rts/html/rts.haddock"' \ -DFPTOOLS_TOP_ABS='"/home/jim/ghc-6.8.2"' \ -x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS='' -I../includes -Iinclude -DPACKAGE=rts -DVERSION= -DPKG_LIBDIR='"/usr/local/lib/ghc-6.8.2"' -DPKG_DATADIR='"/usr/local/share/ghc-6.8.2"' package.conf.in | \ grep -v '^#pragma GCC' | \ sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.inplace ../utils/ghc-pkg/ghc-pkg-inplace update - --force-files
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Mon, Jan 21, 2008 at 03:23:54PM +0000, Simon Marlow wrote:
First thing to note is that bootstrapping from HC files has bitrotted in 6.8.x, see http://hackage.haskell.org/trac/ghc/ticket/1346. I've updated the wiki instructions to say this. You should go back to 6.6.x, or be prepared to fix things... I thought I remembered someone saying recently they were looking into getting bootstrapping working again, but I can't seem to find it now.
That may be me. I've some local patches for obvious offending stuff (like utils/pwd or libraries/ifBuildable), and similar more or less trivia in libraries/Makefile, but I didn't yet even hit the problems I expect for the GNUmakefiles generated by cabal (which I tend to include in a pre-build HC file bundle), not speaking of *real* problems that may (will?) happen on the HC files themselves when all the make issues have been fixed. I asked igloo the other day, and now I ask here: if anyone has *any* attempts for the make problems, even if they don't work, just mail your diffs to me. No promises, no timeline[1], but I really want to get HC bootstrapping back. Ciao, Kili [1] Everytime I expect to have some more time to work on things I want to work on, something bad happens that stops me from doing so. At least within the last 14 months.
participants (4)
-
jb162ï¼ brighton.ac.uk
-
Jim Burton
-
Matthias Kilian
-
Simon Marlow