
It seems there is no ghc 6.8.2 for my version of debian. So I am
compiling from source.
I ran config with no problem. make generated some errors. I omit all
output except the end. Let me know if Ileft something important out
please.
make all
/usr/bin/ghc -H16m -O -w -I. -Iinclude -Rghc-timing -ignore-package
Cabal -ignore-package filepath -I../libraries -fglasgow-exts -no-recomp
-c System/FilePath/Posix.hs -o System/FilePath/Posix.o -ohi
System/FilePath/Posix.hi
cc1: error: unrecognized option `-fno-unit-at-a-time'
<

On Wed, Apr 02, 2008 at 07:12:16PM -0400, michael@schmong.org wrote:
so it's this line that seems of the most interesting
cc1: error: unrecognized option `-fno-unit-at-a-time'
It looks like your version of ghc isn't designed to be used with the version of gcc you have. Putting this in mk/build.mk ought to let the build go through: SRC_HC_OPTS = -fasm GhcStage1HcOpts = -fasm Thanks Ian

Apologies to Ian, I think I sent him direct mail on my first attempt to reply. Adding those lines to mk/build.mk did not work. I hope Idon't have to build a newer gcc. This is what I have right now. michael@schmong:~/src/gcc$ gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) On Thu, Apr 03, 2008 at 12:50:46AM +0100, Ian Lynagh wrote:
On Wed, Apr 02, 2008 at 07:12:16PM -0400, michael@schmong.org wrote:
so it's this line that seems of the most interesting
cc1: error: unrecognized option `-fno-unit-at-a-time'
It looks like your version of ghc isn't designed to be used with the version of gcc you have.
Putting this in mk/build.mk ought to let the build go through:
SRC_HC_OPTS = -fasm GhcStage1HcOpts = -fasm
Thanks Ian

Michael,
Don't the available binaries work for you? From the output it seems
you are on x86, which is of course supported. The requirements are
just libreadline.so.4 and libncurses.so.5. Also, if you still want to
compile from source, you could grab those binaries and them to compile
GHC yourself, then perhaps make a debian package.
Although those binaries have been created on Fedora, I'm on Ubuntu and
they work flawlessly. By the way, you can have multiple versions of
GHC coexisting too.
Best,
Paulo
On Wed, Apr 2, 2008 at 5:45 PM,
Apologies to Ian, I think I sent him direct mail on my first attempt to reply. Adding those lines to mk/build.mk did not work. I hope Idon't have to build a newer gcc. This is what I have right now. michael@schmong:~/src/gcc$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13)
On Thu, Apr 03, 2008 at 12:50:46AM +0100, Ian Lynagh wrote:
On Wed, Apr 02, 2008 at 07:12:16PM -0400, michael@schmong.org wrote:
so it's this line that seems of the most interesting
cc1: error: unrecognized option `-fno-unit-at-a-time'
It looks like your version of ghc isn't designed to be used with the version of gcc you have.
Putting this in mk/build.mk ought to let the build go through:
SRC_HC_OPTS = -fasm GhcStage1HcOpts = -fasm
Thanks Ian
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

michael@schmong.org wrote:
It seems there is no ghc 6.8.2 for my version of debian. So I am compiling from source.
this requires a working compiler!
/usr/bin/ghc
this compiler does not work with your gcc. if you cannot install http://www.haskell.org/ghc/dist/6.8.2/ghc-6.8.2-i386-unknown-linux.tar.bz2 you'll have to try an older version.
cc1: error: unrecognized option `-fno-unit-at-a-time'
Maybe it helps, if your remove this option from your file <prefix>/lib/ghc-6.8.2/extra-gcc-opts Christian
participants (4)
-
Christian Maeder
-
Ian Lynagh
-
michael@schmong.org
-
Paulo Tanimoto