[Yhc] Yhc: A second impression

Thorkil Naur naur at post11.tele.dk
Wed Feb 14 02:20:59 EST 2007


Hello Niel,

On Tuesday 13 February 2007 23:49, Neil Mitchell wrote:
> ...
> Andrew: Does Yhi get built by default with -O ?
> ...

In the output from the Yhc build, I cannot find traces that -O is being used, 
neither for the ghc compiled nor the gcc compiles.

But then I tried to add -O using the CCFLAGS and GHCFLAGS environment 
variables that were mentioned recently. First, however, I did a scons clean, 
output was this:

scons: Reading SConscript files ...
Building version 0.7.0-20070207134437-custom.
Checking for architecture... (cached) ppc
Checking for operating system... (cached) darwin
Checking for Subversion binary... (cached) "svn"
Checking for Subversion version... (cached) Found version 1.4.0.
Checking for C header file gmp.h... (cached) yes
Checking for mpz_t integ; mpz_init (integ) in C library gmp... (cached) yes
Checking for libgmp version... (cached)
scons: done reading SConscript files.
scons: Building targets ...
scons: Nothing to be done for `clean'.
scons: done building targets.

"Nothing"? Hm ... At this point, I believe that I observed that bin/yhc still 
existed, so I decided to scons fullclean:

scons: Reading SConscript files ...
Building version 0.7.0-20070207134437-custom.
Checking for architecture... (cached) ppc
Checking for operating system... (cached) darwin
Checking for Subversion binary... (cached) "svn"
Checking for Subversion version... (cached) Found version 1.4.0.
Checking for C header file gmp.h... (cached) yes
Checking for mpz_t integ; mpz_init (integ) in C library gmp... (cached) yes
Checking for libgmp version... (cached)
scons: done reading SConscript files.
scons: Building targets ...
scons: Nothing to be done for `fullclean'.
scons: done building targets.

Again "Nothing". But now bin/yhc had disappeared. So "scons". But:

scons: Reading SConscript files ...
Building version 0.7.0-20070213181100-custom.
Checking for architecture... (cached) ppc
Checking for operating system... (cached) darwin
Checking for architecture... (cached) ppc
Checking for operating system... (cached) darwin
Checking for Subversion binary... (cached) "svn"
Checking for Subversion version... (cached) Found version 1.4.0.
Checking for GHC binary... (cached) "ghc"
Checking for GHC version 6.4.1 or later... (cached) Found version 6.4.1.
Checking for C header file gmp.h... (cached) yes
Checking for mpz_t integ; mpz_init (integ) in C library gmp... (cached) yes
Checking for libgmp version... (cached)
Checking for Python version 2.3 or later... (cached) Found version 2.4.3 final 
(0).
Checking for Scons binary... (cached) "scons"
Checking for Scons version... (cached) Found version 0.96.92.D002.
Checking for Darcs binary... (cached) "darcs"
Checking for Darcs version... (cached) Found version 1.0.8 (release).
Checking for Haddock binary... (cached) Not found
Error. Haddock not found, you won't be able to build the documentation.
Checking whether byte ordering is bigendian... (cached) no
Checking size of char... (cached) no
Checking size of short... (cached) no
Checking size of int... (cached) no
Checking size of long... (cached) no
Checking size of long long... (cached) no
Checking size of float... (cached) no
Checking size of double... (cached) no
Checking size of void*... (cached) no
Failed to check types sizes/endianness. You do have a working C compiler don't 
you?
If so then please contact the Yhc developers for help.

So, at least with this pull, I seem to be stuck. I could probably pull a fresh 
Yhc and get going again, but I have not tried that.

Comments?

Best regards
Thorkil


More information about the Yhc mailing list