Ticket #5449 (closed bug: fixed)

Opened 9 months ago

Last modified 4 months ago

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 Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Hackage page shows a build failure for the process package.

Change History

Changed 8 months 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 (

Changed 8 months ago by bergey

  • status changed from new to patch

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

Changed 8 months ago by jimstutt

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

Changed 8 months ago by dsf

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

Changed 8 months 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.

Changed 8 months ago by igloo

  • status changed from patch to closed
  • resolution set to fixed

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.

Changed 8 months ago by huangyi

  • cc yi.codeplayer@… added
  • status changed from closed to new
  • version changed from 7.2.1 to 7.0.3
  • resolution fixed deleted

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.

Changed 6 months ago by igloo

  • milestone set to 7.4.1

Changed 6 months ago by cygnus

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

Changed 4 months ago by igloo

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to fixed

It's now on hackage.

Note: See TracTickets for help on using tickets.