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

2008-01-21 Thread Matthias Kilian
On Mon, Jan 21, 2008 at 03:23:54PM +, 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.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


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

2008-01-21 Thread Jim Burton
On Mon, 2008-01-21 at 15:23 +, 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 +, [EMAIL PROTECTED] 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.
> >>
> >> [EMAIL PROTECTED]:~/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
> >>  >> Reading package info from stdin ... done.
> >> /home/jim/ghc-6.8.2/gmp/gmpbuild doesn't exist or isn't a directory
> >> (ignoring)
> >> cannot find libHSrts.a on library path (ignoring)
> >> Saving old package config file... done.
> >> Writing new package config file... done.
> >> ../utils/mkdependC/mkdependC -f .depend -I. -I../includes -DPROFILING
> >> -DTHREADED_RTS -DDEBUG -Ihooks -Iparallel -Ism -Iposix -I../includes
> >> -s debug -- -O -Wall -W -Wstrict-prototypes  -Wmissing-prototypes
> >> -Wmissing-declarations -Winline -Waggregate-return -I../includes -I.
> >> -Iparallel -Ism -DCOMPILING_RTS -fomit-frame-pointer -DNOSMP
> >> -I../gmp/gmpbuild -fno-strict-aliasing-- Adjustor.c Arena.c
> >> Capability.c ClosureFlags.c Disassembler.c FrontPanel.c Hash.c Hpc.c
> >> HsFFI.c Interpreter.c LdvProfile.c Linker.c Main.c Papi.c Printer.c
> >> ProfHeap.c Profiling.c Proftimer.c RaiseAsync.c RetainerProfile.c
> >> RetainerSet.c RtsAPI.c RtsFlags.c RtsMessages.c RtsStartup.c RtsUtils.c
> >> STM.c Sanity.c Schedule.c Sparks.c Stable.c Stats.c StgCRun.c
> >> StgPrimFloat.c Task.c ThreadLabels.c ThreadPaused.c Threads.c Ticky.c
> >> Timer.c Trace.c Typeable.c Weak.c hooks/FlagDefaults.c
> >> hooks/InitEachPE.c hooks/MallocFail.c hooks/OnExit.c hooks/OutOfHeap.c
> >> hooks/RtsOpts.c hooks/ShutdownEachPEHook.c hooks/StackOverflow.c
> >> parallel/0Hash.c parallel/0Unpack.c parallel/Dist.c parallel/Global.c
> >> parallel/GranSim.c parallel/HLComms.c parallel/LLComms.c parallel/Pack.c
> >> parallel/ParInit.c parallel/ParTicky.c parallel/Parallel.c
> >> parallel/ParallelDebug.c parallel/RBH.c posix/FileLock.c posix/GetTime.c
> >> posix/Itimer.c posix/OSMem.c posix/OSThreads.c posix/Select.c
> >> posix/Signals.c sm/BlockAlloc.c sm/Compact.c sm/Evac.c sm/GC.c
> >> sm/GCUtils.c sm/MBlock.c sm/MarkWeak.c sm/Scav.c sm/Storage.c 
> >> ../compiler/ghc-inplace -optc-O -optc-Wall -optc-W
> >> -optc-Wstrict-prototypes -optc-Wmissing-prototypes
> >> -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return
> >> -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
> >> -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-DNOSMP
> >> -optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -H32m
> >> -keep-hc-files -package-name rts -optc-DNOSMP -static -I../gmp/gmpbuild
> >> -I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o
> >> cc1: error: unrecognized command line option "-mieee"
> >

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

2008-01-21 Thread Simon Marlow

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 +, [EMAIL PROTECTED] 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.

[EMAIL PROTECTED]:~/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
sm/GCUtils.c sm/MBlock.c sm/MarkWeak.c sm/Scav.c sm/Storage.c 
../compiler/ghc-inplace -optc-O -optc-Wall -optc-W

-optc-Wstrict-prototypes -optc-Wmissing-prototypes
-optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return
-optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
-optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-DNOSMP
-optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -H32m
-keep-hc-files -package-name rts -optc-DNOSMP -static -I../gmp/gmpbuild
-I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o
cc1: error: unrecognized command line option "-mieee"
make: *** [Adjustor.o] Error 1


___
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


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

2008-01-18 Thread Jim Burton
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 +, [EMAIL PROTECTED] 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.
> 
> [EMAIL PROTECTED]:~/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
>  Reading package info from stdin ... done.
> /home/jim/ghc-6.8.2/gmp/gmpbuild doesn't exist or isn't a directory
> (ignoring)
> cannot find libHSrts.a on library path (ignoring)
> Saving old package config file... done.
> Writing new package config file... done.
> ../utils/mkdependC/mkdependC -f .depend -I. -I../includes -DPROFILING
> -DTHREADED_RTS -DDEBUG -Ihooks -Iparallel -Ism -Iposix -I../includes
> -s debug -- -O -Wall -W -Wstrict-prototypes  -Wmissing-prototypes
> -Wmissing-declarations -Winline -Waggregate-return -I../includes -I.
> -Iparallel -Ism -DCOMPILING_RTS -fomit-frame-pointer -DNOSMP
> -I../gmp/gmpbuild -fno-strict-aliasing-- Adjustor.c Arena.c
> Capability.c ClosureFlags.c Disassembler.c FrontPanel.c Hash.c Hpc.c
> HsFFI.c Interpreter.c LdvProfile.c Linker.c Main.c Papi.c Printer.c
> ProfHeap.c Profiling.c Proftimer.c RaiseAsync.c RetainerProfile.c
> RetainerSet.c RtsAPI.c RtsFlags.c RtsMessages.c RtsStartup.c RtsUtils.c
> STM.c Sanity.c Schedule.c Sparks.c Stable.c Stats.c StgCRun.c
> StgPrimFloat.c Task.c ThreadLabels.c ThreadPaused.c Threads.c Ticky.c
> Timer.c Trace.c Typeable.c Weak.c hooks/FlagDefaults.c
> hooks/InitEachPE.c hooks/MallocFail.c hooks/OnExit.c hooks/OutOfHeap.c
> hooks/RtsOpts.c hooks/ShutdownEachPEHook.c hooks/StackOverflow.c
> parallel/0Hash.c parallel/0Unpack.c parallel/Dist.c parallel/Global.c
> parallel/GranSim.c parallel/HLComms.c parallel/LLComms.c parallel/Pack.c
> parallel/ParInit.c parallel/ParTicky.c parallel/Parallel.c
> parallel/ParallelDebug.c parallel/RBH.c posix/FileLock.c posix/GetTime.c
> posix/Itimer.c posix/OSMem.c posix/OSThreads.c posix/Select.c
> posix/Signals.c sm/BlockAlloc.c sm/Compact.c sm/Evac.c sm/GC.c
> sm/GCUtils.c sm/MBlock.c sm/MarkWeak.c sm/Scav.c sm/Storage.c 
> ../compiler/ghc-inplace -optc-O -optc-Wall -optc-W
> -optc-Wstrict-prototypes -optc-Wmissing-prototypes
> -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return
> -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
> -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-DNOSMP
> -optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -H32m
> -keep-hc-files -package-name rts -optc-DNOSMP -static -I../gmp/gmpbuild
> -I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o
> cc1: error: unrecognized command line option "-mieee"
> make: *** [Adjustor.o] Error 1
> 
> 
> ___
> 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


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

2008-01-14 Thread jb162
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.

[EMAIL PROTECTED]:~/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
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users