stable test failures
Thorkil Naur
naur at post11.tele.dk
Sun Jun 8 17:14:28 EDT 2008
Hello,
I have looked at this, not to the bottom, but perhaps to a level where you
will be able to proceed. Otherwise, I'll happily continue later.
The compile that fails (edited to reduce line lengths) is this:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1 \
-quiet \
-v \
-I \
. \
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/array/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/process/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/directory/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/old-time/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/base/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/rts
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/gmp/gmpbuild
\
-D__DYNAMIC__ \
-D__GLASGOW_HASKELL__=608 \
-DTABLES_NEXT_TO_CODE \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.hc
\
-quiet \
-dumpbase \
ghc323_0.hc \
-mdynamic-no-pic \
-auxbase-strip \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.raw_s
\
-O \
-Wimplicit \
-version \
-fwrapv \
-fno-strict-aliasing \
-o \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.raw_s
A compile that succeeds (similarly edited) is this:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1 \
-quiet \
-v \
-I \
. \
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/array/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/process/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/directory/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/old-time/include
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/base/include
\
-I \
/Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include \
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/rts
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/gmp/gmpbuild
\
-D__DYNAMIC__ \
-D__GLASGOW_HASKELL__=608 \
-DTABLES_NEXT_TO_CODE \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.hc
\
-quiet \
-dumpbase \
ghc323_0.hc \
-mdynamic-no-pic \
-auxbase-strip \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.raw_s
\
-O \
-Wimplicit \
-version \
-fwrapv \
-fno-strict-aliasing \
-o \
/Users/thorkilnaur/tn/test/GHC/buildbot/20080608_1618/tmp-dirs/stage2/ghc323_0/ghc323_0.raw_s
The difference is:
Thorkil-Naurs-Computer:~/tn/test/GHC/buildbot/20080608_1618/work thorkilnaur$
diff -C 3 good_command.txt raw/bad_command.txt
*** good_command.txt Sun Jun 8 22:18:31 2008
--- raw/bad_command.txt Sun Jun 8 20:57:04 2008
***************
*** 16,23 ****
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/base/include
\
-I \
- /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include \
- -I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes
\
-I \
/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/rts
\
--- 16,21 ----
Thorkil-Naurs-Computer:~/tn/test/GHC/buildbot/20080608_1618/work thorkilnaur$
The succeeding compile was found using the ghc-6.8.2 that I had installed
already.
I don't really understand this. The place of the
install/ghc-6.8.2/lib/ghc-6.8.2/include directory in the list of include
directories is significant: If I move it to a position after the
buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes directory, the
compile fails. The difference between the contents of these two directories
is:
> Thorkil-Naurs-Computer:~/tn/test/GHC/buildbot/20080608_1618/work
thorkilnaur$ diff
-r /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes: .depend
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes: .depend.bak
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
Makefile
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
README
> diff
-r /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include/SMP.h /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes/SMP.h
> 209c209
> < unlockClosure(StgClosure *p, StgInfoTable *info)
> ---
> > unlockClosure(StgClosure *p, const StgInfoTable *info)
> 322c322
> < unlockClosure(StgClosure *p STG_UNUSED, StgInfoTable *info STG_UNUSED)
> ---
> > unlockClosure(StgClosure *p STG_UNUSED, const StgInfoTable *info
STG_UNUSED)
> 339c339
> < { unlockClosure((StgClosure*)tso, (StgInfoTable*)&stg_TSO_info); }
> ---
> > { unlockClosure((StgClosure*)tso, (const StgInfoTable *)&stg_TSO_info); }
> diff
-r /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include/Stg.h /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes/Stg.h
> 33a34,54
> >
> > // Turn on C99 for .hc code. This gives us the INFINITY and NAN
> > // constants from math.h, which we occasionally need to use in .hc
(#1861):
> > # define _ISOC99_SOURCE
> >
> > // Turning on _ISOC99_SOURCE means unistd.h doesn't give us prototypes for
> > // things like ftruncate; turning on _BSD_SOURCE too makes them reappear:
> > # define _BSD_SOURCE
> >
> > // But... turning on _BSD_SOURCE by itself (on Linux) causes unistd.h to
define
> > // the BSD variant of getpgrp rather than the POSIX one. We want
> > // POSIX-flavoured stuff rather than BSD-flavoured stuff:
> > # ifndef _POSIX_C_SOURCE
> > # define _POSIX_C_SOURCE 200112L
> > # endif
> >
> > // And finally, we need _XOPEN_SOURCE in order to get a prototype for
> > // putenv on Linux. Defining it to be 600 makes Sparc/Solaris unhappy
> > // (trac #2381, #2342), but all is good with 500.
> > #define _XOPEN_SOURCE 500
> >
> diff
-r /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include/StgMiscClosures.h /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes/StgMiscClosures.h
> 121a122
> > RTS_INFO(stg_unblockAsyncExceptionszh_ret_info);
> diff
-r /Users/thorkilnaur/tn/install/ghc-6.8.2/lib/ghc-6.8.2/include/ghcautoconf.h /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes/ghcautoconf.h
> 3c3
> < /* mk/config.h. Generated by configure. */
> ---
> > /* mk/config.h. Generated from config.h.in by configure. */
> 138c138
> < #define HAVE_LIB_GMP 1
> ---
> > /* #undef HAVE_LIB_GMP */
> 291c291
> < /* The size of a `char', as computed by sizeof. */
> ---
> > /* The size of `char', as computed by sizeof. */
> 294c294
> < /* The size of a `double', as computed by sizeof. */
> ---
> > /* The size of `double', as computed by sizeof. */
> 297c297
> < /* The size of a `float', as computed by sizeof. */
> ---
> > /* The size of `float', as computed by sizeof. */
> 300c300
> < /* The size of a `int', as computed by sizeof. */
> ---
> > /* The size of `int', as computed by sizeof. */
> 303c303
> < /* The size of a `long', as computed by sizeof. */
> ---
> > /* The size of `long', as computed by sizeof. */
> 306c306
> < /* The size of a `long long', as computed by sizeof. */
> ---
> > /* The size of `long long', as computed by sizeof. */
> 309c309
> < /* The size of a `short', as computed by sizeof. */
> ---
> > /* The size of `short', as computed by sizeof. */
> 312c312
> < /* The size of a `unsigned char', as computed by sizeof. */
> ---
> > /* The size of `unsigned char', as computed by sizeof. */
> 315c315
> < /* The size of a `unsigned int', as computed by sizeof. */
> ---
> > /* The size of `unsigned int', as computed by sizeof. */
> 318c318
> < /* The size of a `unsigned long', as computed by sizeof. */
> ---
> > /* The size of `unsigned long', as computed by sizeof. */
> 321c321
> < /* The size of a `unsigned long long', as computed by sizeof. */
> ---
> > /* The size of `unsigned long long', as computed by sizeof. */
> 324c324
> < /* The size of a `unsigned short', as computed by sizeof. */
> ---
> > /* The size of `unsigned short', as computed by sizeof. */
> 327c327
> < /* The size of a `void *', as computed by sizeof. */
> ---
> > /* The size of `void *', as computed by sizeof. */
> 332c332
> < automatically deduced at run-time.
> ---
> > automatically deduced at runtime.
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
mkDerivedConstants.c
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
mkDerivedConstants.o
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
mkDerivedConstantsHdr
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
mkGHCConstants
> Only
in /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/includes:
mkGHCConstants.o
> Thorkil-Naurs-Computer:~/tn/test/GHC/buildbot/20080608_1618/work
thorkilnaur$
Best regards
Thorkil
On Sunday 08 June 2008 06:17, Simon Marlow wrote:
> It seems the PPC OSX buildbot is failing all its -fvia-C tests, with the
> error below. We ought to look into this before the 6.8.3 release.
> Thorkil, can you shed any light?
>
> Cheers,
> Simon
>
> ====> arr001(optc)
> cd ./array/should_run &&
>
'/Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/compiler/stage2/ghc-inplace'
> -no-recomp -dcore-lint -dcmm-lint -Dpowerpc_apple_darwin -o arr001
> arr001.hs -O -fvia-C >arr001.comp.stderr 2>&1
> Compile failed (status 256) errors were:
>
> In file included from /tmp/ghc4263_0/ghc4263_0.hc:4:0:
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/base/include/HsBase.h:
> In function 'getUSecOfDay':
>
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/base/include/HsBase.h:726:0:
> warning: passing argument 2 of 'gettimeofday' from incompatible
> pointer type
>
> In file included from /tmp/ghc4263_0/ghc4263_0.hc:8:0:
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:
> In function '__hsunix_rtldNext':
>
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:111:0:
> error: 'RTLD_NEXT' undeclared (first use in this function)
>
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:111:0:
> error: (Each undeclared identifier is reported only once
>
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:111:0:
> error: for each function it appears in.)
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:
> In function '__hsunix_rtldDefault':
>
> /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx/tnaur-ppc-osx-stable/build/libraries/unix/include/HsUnix.h:115:0:
> error: 'RTLD_DEFAULT' undeclared (first use in this function)
>
More information about the Cvs-ghc
mailing list