yesodweb / yesod

A RESTful Haskell web framework built on WAI.
http://www.yesodweb.com/
MIT License
2.64k stars 373 forks source link

Building yesod-1.0.1.4 on Windows fails with 'touch' not in scope #342

Closed zsiciarz closed 12 years ago

zsiciarz commented 12 years ago

After last upgrade and another installation attempt, this is what is blocking me:

... <snap> successful builds...

Configuring yesod-1.0.1.4...
Preprocessing library yesod-1.0.1.4...
Preprocessing executables for yesod-1.0.1.4...
Building yesod-1.0.1.4...
[1 of 1] Compiling Yesod            ( Yesod.hs, dist\build\Yesod.o )
Registering yesod-1.0.1.4...
[1 of 5] Compiling Scaffolding.CodeGen ( Scaffolding\CodeGen.hs, dist\build\yesod\yesod-
n.o )
[2 of 5] Compiling Build            ( Build.hs, dist\build\yesod\yesod-tmp\Build.o )
[3 of 5] Compiling Devel            ( Devel.hs, dist\build\yesod\yesod-tmp\Devel.o )
[4 of 5] Compiling Scaffolding.Scaffolder ( Scaffolding\Scaffolder.hs, dist\build\yesod\
Scaffolder.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.3.0.2 ... linking ... done.
Loading package bytestring-0.9.1.10 ... linking ... done.
Loading package containers-0.4.0.0 ... linking ... done.
Loading package binary-0.5.1.0 ... linking ... done.
Loading package SHA-1.5.0.1 ... linking ... done.
Loading package deepseq-1.1.0.2 ... linking ... done.
Loading package text-0.11.1.5 ... linking ... done.
Loading package attoparsec-0.10.1.1 ... linking ... done.
Loading package blaze-builder-0.3.1.0 ... linking ... done.
Loading package hashable-1.1.2.3 ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package syb-0.3.3 ... linking ... done.
Loading package pretty-1.0.1.2 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package Win32-2.2.0.1 ... linking ... done.
Loading package time-1.2.0.3 ... linking ... done.
Loading package unordered-containers-0.2.1.0 ... linking ... done.
Loading package primitive-0.4.1 ... linking ... done.
Loading package vector-0.9.1 ... linking ... done.
Loading package aeson-0.6.0.2 ... linking ... done.
Loading package base-unicode-symbols-0.2.2.3 ... linking ... done.
Loading package transformers-base-0.4.1 ... linking ... done.
Loading package monad-control-0.3.1.2 ... linking ... done.
Loading package lifted-base-0.1.0.4 ... linking ... done.
Loading package resourcet-0.3.2.1 ... linking ... done.
Loading package semigroups-0.8.3 ... linking ... done.
Loading package void-0.5.5.1 ... linking ... done.
Loading package conduit-0.4.1.1 ... linking ... done.
Loading package blaze-builder-conduit-0.4.0.1 ... linking ... done.
Loading package case-insensitive-0.4.0.1 ... linking ... done.
Loading package enumerator-0.4.19 ... linking ... done.
Loading package attoparsec-enumerator-0.3 ... linking ... done.
Loading package asn1-data-0.6.1.3 ... linking ... done.
Loading package attoparsec-conduit-0.4.0 ... linking ... done.
Loading package base64-bytestring-0.1.1.1 ... linking ... done.
Loading package cereal-0.3.5.1 ... linking ... done.
Loading package entropy-0.2.1 ... linking ... done.
Loading package largeword-1.0.1 ... linking ... done.
Loading package tagged-0.4.2 ... linking ... done.
Loading package crypto-api-0.10.1 ... linking ... done.
Loading package crypto-pubkey-types-0.1.1 ... linking ... done.
Loading package filepath-1.2.0.0 ... linking ... done.
Loading package old-time-1.0.0.6 ... linking ... done.
Loading package directory-1.1.0.0 ... linking ... done.
Loading package pem-0.1.1 ... linking ... done.
Loading package process-1.0.1.5 ... linking ... done.
Loading package certificate-1.2.1 ... linking ... done.
Loading package dlist-0.5 ... linking ... done.
Loading package data-default-0.4.0 ... linking ... done.
Loading package cookie-0.4.0 ... linking ... done.
Loading package cryptocipher-0.3.0 ... linking ... done.
Loading package random-1.0.0.3 ... linking ... done.
Loading package cprng-aes-0.2.3 ... linking ... done.
Loading package failure-0.2.0.1 ... linking ... done.
Loading package http-types-0.6.10 ... linking ... done.
Loading package parsec-3.1.1 ... linking ... done.
Loading package network-2.3.0.5 ... linking ... done.
Loading package regex-base-0.93.2 ... linking ... done.
Loading package regex-posix-0.95.1 ... linking ... done.
Loading package regex-compat-0.95.1 ... linking ... done.
Loading package socks-0.4.1 ... linking ... done.
Loading package cryptohash-0.7.5 ... linking ... done.
Loading package tls-0.9.5 ... linking ... done.
Loading package tls-extra-0.4.6 ... linking ... done.
Loading package utf8-string-0.3.7 ... linking ... done.
Loading package zlib-0.5.3.3 ... linking ... done.
Loading package zlib-bindings-0.1.0.1 ... linking ... done.
Loading package zlib-conduit-0.4.0.1 ... linking ... done.
Loading package http-conduit-1.4.1.2 ... linking ... done.
Loading package tagsoup-0.12.6 ... linking ... done.
Loading package system-filepath-0.4.6 ... linking ... done.
Loading package xml-types-0.3.1 ... linking ... done.
Loading package xml-conduit-0.7.0.1 ... linking ... done.
Loading package authenticate-1.2.1 ... linking ... done.
Loading package blaze-markup-0.5.1.0 ... linking ... done.
Loading package blaze-html-0.5.0.0 ... linking ... done.
Loading package shakespeare-1.0.0.1 ... linking ... done.
Loading package hamlet-1.0.1.1 ... linking ... done.
Loading package mime-mail-0.4.1.1 ... linking ... done.
Loading package path-pieces-0.1.1 ... linking ... done.
Loading package stm-2.3 ... linking ... done.
Loading package resource-pool-0.2.1.0 ... linking ... done.
Loading package pool-conduit-0.1.0.1 ... linking ... done.
Loading package persistent-0.9.0.3 ... linking ... done.
Loading package persistent-template-0.9.0.1 ... linking ... done.
Loading package pureMD5-2.1.0.3 ... linking ... done.
Loading package pwstore-fast-2.2 ... linking ... done.
Loading package shakespeare-css-1.0.1.1 ... linking ... done.
Loading package vault-0.1.0.0 ... linking ... done.
Loading package wai-1.2.0.1 ... linking ... done.
Loading package skein-0.1.0.7 ... linking ... done.
Loading package clientsession-0.7.5 ... linking ... done.
Loading package fast-logger-0.0.2 ... linking ... done.
Loading package shakespeare-i18n-1.0.0.1 ... linking ... done.
Loading package shakespeare-js-1.0.0.1 ... linking ... done.
Loading package ansi-terminal-0.5.5 ... linking ... done.
Loading package wai-extra-1.2.0.3 ... linking ... done.
Loading package byteorder-1.0.3 ... linking ... done.
Loading package wai-logger-0.1.4 ... linking ... done.
Loading package yesod-routes-1.0.1 ... linking ... done.
Loading package yesod-core-1.0.1.1 ... linking ... done.
Loading package ranges-0.2.4 ... linking ... done.
Loading package email-validate-0.2.8 ... linking ... done.
Loading package css-text-0.1.1 ... linking ... done.
Loading package xss-sanitize-0.3.1.1 ... linking ... done.
Loading package yesod-persistent-1.0.0 ... linking ... done.
Loading package yesod-form-1.0.0.3 ... linking ... done.
Loading package safe-0.3.3 ... linking ... done.
Loading package yesod-json-1.0.0 ... linking ... done.
Loading package yesod-auth-1.0.2 ... linking ... done.
Loading package network-conduit-0.4.0 ... linking ... done.
Loading package simple-sendfile-0.2.3 ... linking ... done.
Loading package unix-compat-0.3.0.1 ... linking ... done.
Loading package warp-1.2.0.1 ... linking ... done.
Loading package shakespeare-text-1.0.0.1 ... linking ... done.
Loading package Cabal-1.10.2.0 ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
[5 of 5] Compiling Main             ( main.hs, dist\build\yesod\yesod-tmp\Main.o )

main.hs:41:13: Not in scope: `touch'
Configuring yesod-static-1.0.0.1...
Preprocessing library yesod-static-1.0.0.1...
Preprocessing test suites for yesod-static-1.0.0.1...
Building yesod-static-1.0.0.1...
[1 of 1] Compiling Yesod.Static     ( Yesod\Static.hs, dist\build\Yesod\Static.o )
Registering yesod-static-1.0.0.1...
Installing library in
C:\Users\USER\Development\Haskell\yrl\cabal-dev/yesod-static-1.0.0.1\ghc-7.0.4
Registering yesod-static-1.0.0.1...
cabal.exe: Error: some packages failed to install:
yesod-1.0.1.4 failed during the building phase. The exception was:
ExitFailure 1
yesod-platform-1.0.3.2 depends on yesod-1.0.1.4 which failed to install.

GHC 7.0.4, Windows 7 x64. Seems like this line should be also wrapped with #ifdef?

snoyberg commented 12 years ago

Good catch, should be fixed now.

pSub commented 12 years ago

FYI: Pull request #343 solves this issue too and could therefore be closed.