Build fails again

Andy Gill andy at galois.com
Fri Jun 22 01:45:57 EDT 2007


I had the same problem with a new tree; except it could not find  
GHC.PrimopWrappers

Preprocessing library base-2.1...
Setup: can't find source for GHC.PrimopWrappers in ["."]
make[1]: *** [base/GNUmakefile] Error 1
make: *** [stage1] Error 2

On Jun 21, 2007, at 10:09 PM, Manuel M T Chakravarty wrote:

> On MacOS 10.4.9, I pulled the latest ghc and base repos this  
> morning (Sydney time) and did "make distclean" (in the root  
> directory and in libraries/ - as distclean doesn't seem to  
> descent).  I did "sh boot" and ran ./configure again.  The build  
> fails in base with the appended output.  Any idea what's going wrong?
>
> It's onerous enough to have to distclean after a build, please  
> don't tell me to pull a virgin tree.
>
> Cheers,
> Manuel
>
> -=-
>
> rm -f -f stamp/configure.library.*.base base/unbuildable
> ( cd base && setup/Setup configure \
>             \
>            --prefix='$topdir' \
>            --datadir='$prefix/share' \
>            --libsubdir='$compiler/lib/$pkgid' \
>            --with-compiler=../../compiler/ghc-inplace \
>            --with-hc-pkg=../../utils/ghc-pkg/ghc-pkg-inplace \
>            --with-hsc2hs=../../utils/hsc2hs/hsc2hs-inplace \
>            --with-ld=/usr/bin/ld \
>            --datasubdir=ghc \
>            --haddock-args="--use-contents=../index.html \
>                            --use-index=../doc-index.html" \
>            --configure-option='--with-readline-libraries=/opt/local/ 
> lib' --configure-option='--with-readline-includes=/opt/local/ 
> include' --configure-option='--prefix=/Users/chak/Sandbox' \
>            --configure-option=--with-cc=gcc ) \
>       && touch stamp/configure.library.build.base || touch base/ 
> unbuildable
> Setup: Warning: Unknown field 'nhc98-options'
> configure: Reading installed packages...
> Configuring base-2.1...
> configure: Using install prefix: $topdir
> configure: Binaries installed in: $topdir/bin
> configure: Libraries installed in: $topdir/lib/ghc-6.7.20070621/lib/ 
> base-2.1
> configure: Private binaries installed in: $topdir/libexec
> configure: Data files installed in: $topdir/share/ghc
> configure: Using compiler: ../../compiler/ghc-inplace
> configure: Compiler flavor: GHC
> configure: Compiler version: 6.7.20070621
> configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace
> configure: Using ar found on system at: /usr/bin/ar
> configure: Using haddock found on system at: /opt/local/bin/haddock
> configure: Using ld given by user at: /usr/bin/ld
> configure: No pfesetup found
> configure: Using ranlib found on system at: /usr/bin/ranlib
> configure: Using runghc found on system at: /opt/local/bin/runghc
> configure: Using runhugs found on system at: /opt/local/bin/runhugs
> configure: Using tar found on system at: /usr/bin/tar
> configure: Using happy: /opt/local/bin/happy
> configure: Using alex: /opt/local/bin/alex
> configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace
> configure: No c2hs found
> configure: No cpphs found
> configure: No greencard found
> configure: Reading installed packages...
> Configuring base-2.1...
> configure: Dependency rts-any: using rts-1.0
> configure: Using install prefix: $topdir
> configure: Binaries installed in: $topdir/bin
> configure: Libraries installed in: $topdir/lib/ghc-6.7.20070621/lib/ 
> base-2.1
> configure: Private binaries installed in: $topdir/libexec
> configure: Data files installed in: $topdir/share/ghc
> configure: Using compiler: ../../compiler/ghc-inplace
> configure: Compiler flavor: GHC
> configure: Compiler version: 6.7.20070621
> configure: Using package tool: ../../utils/ghc-pkg/ghc-pkg-inplace
> configure: Using ar found on system at: /usr/bin/ar
> configure: Using haddock found on system at: /opt/local/bin/haddock
> configure: Using ld given by user at: /usr/bin/ld
> configure: No pfesetup found
> configure: Using ranlib found on system at: /usr/bin/ranlib
> configure: Using runghc found on system at: /opt/local/bin/runghc
> configure: Using runhugs found on system at: /opt/local/bin/runhugs
> configure: Using tar found on system at: /usr/bin/tar
> configure: Using happy: /opt/local/bin/happy
> configure: Using alex: /opt/local/bin/alex
> configure: Using hsc2hs: ../../utils/hsc2hs/hsc2hs-inplace
> configure: No c2hs found
> configure: No cpphs found
> configure: No greencard found
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for long long... yes
> checking for an ANSI C-conforming const... yes
> checking for ANSI C header files... (cached) yes
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking dirent.h usability... yes
> checking dirent.h presence... yes
> checking for dirent.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking for inttypes.h... (cached) yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking signal.h usability... yes
> checking signal.h presence... yes
> checking for signal.h... yes
> checking sys/resource.h usability... yes
> checking sys/resource.h presence... yes
> checking for sys/resource.h... yes
> checking sys/select.h usability... yes
> checking sys/select.h presence... yes
> checking for sys/select.h... yes
> checking for sys/stat.h... (cached) yes
> checking sys/syscall.h usability... yes
> checking sys/syscall.h presence... yes
> checking for sys/syscall.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/timeb.h usability... yes
> checking sys/timeb.h presence... yes
> checking for sys/timeb.h... yes
> checking sys/timers.h usability... no
> checking sys/timers.h presence... no
> checking for sys/timers.h... no
> checking sys/times.h usability... yes
> checking sys/times.h presence... yes
> checking for sys/times.h... yes
> checking for sys/types.h... (cached) yes
> checking sys/utsname.h usability... yes
> checking sys/utsname.h presence... yes
> checking for sys/utsname.h... yes
> checking sys/wait.h usability... yes
> checking sys/wait.h presence... yes
> checking for sys/wait.h... yes
> checking termios.h usability... yes
> checking termios.h presence... yes
> checking for termios.h... yes
> checking time.h usability... yes
> checking time.h presence... yes
> checking for time.h... yes
> checking for unistd.h... (cached) yes
> checking utime.h usability... yes
> checking utime.h presence... yes
> checking for utime.h... yes
> checking windows.h usability... no
> checking windows.h presence... no
> checking for windows.h... no
> checking winsock.h usability... no
> checking winsock.h presence... no
> checking for winsock.h... no
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for _LARGE_FILES value needed for large files... no
> checking wctype.h usability... yes
> checking wctype.h presence... yes
> checking for wctype.h... yes
> checking for iswspace... yes
> checking for lstat... yes
> checking for readdir_r... yes
> checking for getclock... no
> checking for getrusage... yes
> checking for times... yes
> checking for _chsize... no
> checking for ftruncate... yes
> checking Haskell type for char... Int8
> checking Haskell type for signed char... Int8
> checking Haskell type for unsigned char... Word8
> checking Haskell type for short... Int16
> checking Haskell type for unsigned short... Word16
> checking Haskell type for int... Int32
> checking Haskell type for unsigned int... Word32
> checking Haskell type for long... Int32
> checking Haskell type for unsigned long... Word32
> checking Haskell type for long long... Int64
> checking Haskell type for unsigned long long... Word64
> checking Haskell type for float... Float
> checking Haskell type for double... Double
> checking Haskell type for ptrdiff_t... Int32
> checking Haskell type for size_t... Word32
> checking Haskell type for wchar_t... Int32
> checking Haskell type for sig_atomic_t... Int32
> checking Haskell type for clock_t... Word32
> checking Haskell type for time_t... Int32
> checking Haskell type for dev_t... Int32
> checking Haskell type for ino_t... Word32
> checking Haskell type for mode_t... Word16
> checking Haskell type for off_t... Int64
> checking Haskell type for pid_t... Int32
> checking Haskell type for gid_t... Word32
> checking Haskell type for uid_t... Word32
> checking Haskell type for cc_t... Word8
> checking Haskell type for speed_t... Int32
> checking Haskell type for tcflag_t... Word32
> checking Haskell type for nlink_t... Word16
> checking Haskell type for ssize_t... Int32
> checking Haskell type for rlim_t... Int64
> checking Haskell type for wint_t... Int32
> checking Haskell type for intptr_t... Int32
> checking Haskell type for uintptr_t... Word32
> checking Haskell type for intmax_t... Int64
> checking Haskell type for uintmax_t... Word64
> checking value of E2BIG... 7
> checking value of EACCES... 13
> checking value of EADDRINUSE... 48
> checking value of EADDRNOTAVAIL... 49
> checking value of EADV... -1
> checking value of EAFNOSUPPORT... 47
> checking value of EAGAIN... 35
> checking value of EALREADY... 37
> checking value of EBADF... 9
> checking value of EBADMSG... 94
> checking value of EBADRPC... 72
> checking value of EBUSY... 16
> checking value of ECHILD... 10
> checking value of ECOMM... -1
> checking value of ECONNABORTED... 53
> checking value of ECONNREFUSED... 61
> checking value of ECONNRESET... 54
> checking value of EDEADLK... 11
> checking value of EDESTADDRREQ... 39
> checking value of EDIRTY... -1
> checking value of EDOM... 33
> checking value of EDQUOT... 69
> checking value of EEXIST... 17
> checking value of EFAULT... 14
> checking value of EFBIG... 27
> checking value of EFTYPE... 79
> checking value of EHOSTDOWN... 64
> checking value of EHOSTUNREACH... 65
> checking value of EIDRM... 90
> checking value of EILSEQ... 92
> checking value of EINPROGRESS... 36
> checking value of EINTR... 4
> checking value of EINVAL... 22
> checking value of EIO... 5
> checking value of EISCONN... 56
> checking value of EISDIR... 21
> checking value of ELOOP... 62
> checking value of EMFILE... 24
> checking value of EMLINK... 31
> checking value of EMSGSIZE... 40
> checking value of EMULTIHOP... 95
> checking value of ENAMETOOLONG... 63
> checking value of ENETDOWN... 50
> checking value of ENETRESET... 52
> checking value of ENETUNREACH... 51
> checking value of ENFILE... 23
> checking value of ENOBUFS... 55
> checking value of ENODATA... 96
> checking value of ENODEV... 19
> checking value of ENOENT... 2
> checking value of ENOEXEC... 8
> checking value of ENOLCK... 77
> checking value of ENOLINK... 97
> checking value of ENOMEM... 12
> checking value of ENOMSG... 91
> checking value of ENONET... -1
> checking value of ENOPROTOOPT... 42
> checking value of ENOSPC... 28
> checking value of ENOSR... 98
> checking value of ENOSTR... 99
> checking value of ENOSYS... 78
> checking value of ENOTBLK... 15
> checking value of ENOTCONN... 57
> checking value of ENOTDIR... 20
> checking value of ENOTEMPTY... 66
> checking value of ENOTSOCK... 38
> checking value of ENOTTY... 25
> checking value of ENXIO... 6
> checking value of EOPNOTSUPP... 45
> checking value of EPERM... 1
> checking value of EPFNOSUPPORT... 46
> checking value of EPIPE... 32
> checking value of EPROCLIM... 67
> checking value of EPROCUNAVAIL... 76
> checking value of EPROGMISMATCH... 75
> checking value of EPROGUNAVAIL... 74
> checking value of EPROTO... 100
> checking value of EPROTONOSUPPORT... 43
> checking value of EPROTOTYPE... 41
> checking value of ERANGE... 34
> checking value of EREMCHG... -1
> checking value of EREMOTE... 71
> checking value of EROFS... 30
> checking value of ERPCMISMATCH... 73
> checking value of ERREMOTE... -1
> checking value of ESHUTDOWN... 58
> checking value of ESOCKTNOSUPPORT... 44
> checking value of ESPIPE... 29
> checking value of ESRCH... 3
> checking value of ESRMNT... -1
> checking value of ESTALE... 70
> checking value of ETIME... 101
> checking value of ETIMEDOUT... 60
> checking value of ETOOMANYREFS... 59
> checking value of ETXTBSY... 26
> checking value of EUSERS... 68
> checking value of EWOULDBLOCK... 35
> checking value of EXDEV... 18
> checking value of ENOCIGAR... -1
> checking value of SIGABRT... 6
> checking value of SIGALRM... 14
> checking value of SIGBUS... 10
> checking value of SIGCHLD... 20
> checking value of SIGCONT... 19
> checking value of SIGFPE... 8
> checking value of SIGHUP... 1
> checking value of SIGILL... 4
> checking value of SIGINT... 2
> checking value of SIGKILL... 9
> checking value of SIGPIPE... 13
> checking value of SIGQUIT... 3
> checking value of SIGSEGV... 11
> checking value of SIGSTOP... 17
> checking value of SIGTERM... 15
> checking value of SIGTSTP... 18
> checking value of SIGTTIN... 21
> checking value of SIGTTOU... 22
> checking value of SIGUSR1... 30
> checking value of SIGUSR2... 31
> checking value of SIGPOLL... -1
> checking value of SIGPROF... 27
> checking value of SIGSYS... 12
> checking value of SIGTRAP... 5
> checking value of SIGURG... 16
> checking value of SIGVTALRM... 26
> checking value of SIGXCPU... 24
> checking value of SIGXFSZ... 25
> checking value of SIG_BLOCK... 1
> checking value of SIG_SETMASK... 3
> checking value of SIG_UNBLOCK... 2
> checking value of O_BINARY... 0
> checking what readdir sets errno to upon EOF... 0
> configure: creating ./config.status
> config.status: creating include/HsBaseConfig.h
> config.status: include/HsBaseConfig.h is unchanged
> rm -f base/GNUmakefile
> cp Makefile.local base
> ifBuildable/ifBuildable base setup/Setup makefile -f GNUmakefile
> Setup: Warning: Unknown field 'nhc98-options'
> Preprocessing library base-2.1...
> CPUTime.hsc: In function 'main':
> CPUTime.hsc:61: error: parse error before 'struct'
> CPUTime.hsc:62: error: parse error before 'struct'
> CPUTime.hsc:63: error: parse error before 'struct'
> CPUTime.hsc:64: error: parse error before 'struct'
> CPUTime.hsc:65: error: parse error before 'struct'
> CPUTime.hsc:66: error: parse error before 'struct'
> compiling dist/build/System/CPUTime_hsc_make.c failed
> command was: gcc -c -D__GLASGOW_HASKELL__=607 -I/Users/chak/Code/ 
> ghc/includes -Iinclude -I../../includes -I../../rts dist/build/ 
> System/CPUTime_hsc_make.c -o dist/build/System/CPUTime_hsc_make.o
> make[1]: *** [base/GNUmakefile] Error 1
> make: *** [stage1] Error 2
> EthicsGradient chak 54 (.../Code/ghc):
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc



More information about the Cvs-ghc mailing list