Opened 8 years ago

Closed 8 years ago

#5449 closed bug (fixed)

Build failure with ghc 7.2.1: Missing (or bad) header file: runProcess.h

Reported by: dsf Owned by:
Priority: normal Milestone: 7.4.1
Component: libraries/process Version: 7.0.3
Keywords: Cc: yi.codeplayer@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Hackage page shows a build failure for the process package.

Change History (10)

comment:1 Changed 8 years ago by jimstutt

This happens for me on:

archlinux ghc-7.0.3 (generic tarball) i696

scientific linux 2.6.32 ghc-7.2.1 (generic tarball) x86_64 (

comment:2 Changed 8 years ago by bergey

Status: newpatch

I can build process if I add a file processFlags.h to the include directory, with these two lines:

#define RUN_PROCESS_IN_CLOSE_FDS 0x1 #define RUN_PROCESS_IN_NEW_GROUP 0x2

Not sure if processFlags.h is meant to be part of this package or elsewhere.

File contents cribbed from this thread; I can't seem to find the actual patch: http://hackage.haskell.org/trac/ghc/ticket/3994

ubuntu Natty, haskell platform 2011.2, process-1.1.0.0

comment:3 Changed 8 years ago by jimstutt

Worked for me after I'd rebuilt old-time-1.0.0.3. Tnx. Can close for me.

comment:4 Changed 8 years ago by dsf

I'm not sure we've yet reached the heart of the matter...

comment:5 Changed 8 years ago by dsf

runProcess.h is shipped with the process tarball in the include subdirectory, its just that gcc isn't seeing it during the build.

comment:6 Changed 8 years ago by igloo

Resolution: fixed
Status: patchclosed

Fixed in HEAD by:

commit d53840d9c45efab2fadac7ea01f026d14e3f60fd
Author: Ian Lynagh <igloo@earth.li>
Date:   Sun Sep 25 17:47:51 2011 +0100

    Add "processFlags.h" to "install-includes"

    Fixes #5449: The process package wouldn't build outside of a GHC tree.

comment:7 Changed 8 years ago by huangyi

Cc: yi.codeplayer@… added
Resolution: fixed
Status: closednew
Version: 7.2.17.0.3

I still experience this problem with ghc7.0.3 and process 1.1.0.0. `cabal configure -v3' shows the real problem:

/usr/bin/gcc returned ExitFailure 1 with error message:
In file included from /tmp/9484.c:1:0:
include/runProcess.h:47:26: fatal error: processFlags.h: no such file or directory
compilation terminated.

I guess there still some files missing.

comment:8 Changed 8 years ago by igloo

Milestone: 7.4.1

comment:9 Changed 8 years ago by cygnus

Is there any chance we can have a bugfix release of process before the release of GHC 7.4.1?

comment:10 Changed 8 years ago by igloo

difficulty: Unknown
Resolution: fixed
Status: newclosed

It's now on hackage.

Note: See TracTickets for help on using tickets.