Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on macOS with GHC 9.6 (unix-2.8) #13

Open
cho-m opened this issue Jul 31, 2024 · 1 comment
Open

Build fails on macOS with GHC 9.6 (unix-2.8) #13

cho-m opened this issue Jul 31, 2024 · 1 comment

Comments

@cho-m
Copy link

cho-m commented Jul 31, 2024

When building rawfilepath (as dependency of cgrep) on macOS using GHC 9.6.6 and Cabal 3.12.1.0, I see the following failure:

cbits/runProcess.c:252:13: error:
     error: call to undeclared function 'execvpe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                execvpe(args[0], args, environment);
                ^
    |
252 |             execvpe(args[0], args, environment);
    |             ^
1 error generated.
`clang' failed in phase `C Compiler'. (Exit code: 1)
Error: [Cabal-7125]
Failed to build rawfilepath-1.1.1 (which is required by exe:cgrep from cgrep-8.1.1). See the build log above for details.

It seems like execvpe doesn't exist in system libraries on macOS (and probably most BSD platforms) as mentioned at https://www.gnu.org/software/gnulib/manual/html_node/execvpe.html

The error may be due to the removal of execvpe workaround in unix-2.8 from execvpe.h (haskell/unix@b8eb248), in which case build may only succeed on platforms that have execvpe.

@xtendo-org
Copy link
Owner

Oops sorry to notice this late. Let me have a look when I get the chance to use a macOS-running machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants