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

linux-namespaces-0.2.0.0 build failure #7587

Closed
DanBurton opened this issue Nov 29, 2024 · 0 comments
Closed

linux-namespaces-0.2.0.0 build failure #7587

DanBurton opened this issue Nov 29, 2024 · 0 comments

Comments

@DanBurton
Copy link
Contributor

       While building package linux-namespaces-0.2.0.0 (scroll up to its secti
on to see the error)
       using:
       /home/curators/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_
HwdwpEmb_3.10.3.0_ghc-9.8.3 --verbose=1 --builddir=.stack-work/dist/x86_64-lin
ux-tinfo6/ghc-9.8.3 build lib:linux-namespaces --ghc-options ""
       Process exited with code: ExitFailure 1
       Logs have been written
       to: /home/curators/work/unpack-dir/.stack-work/logs/linux-namespaces-0.
2.0.0.log

       Preprocessing library for linux-namespaces-0.2.0.0..
       compiling .stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3/build/System/L
inux/Namespaces_hsc_make.c failed (exit code 1)
       rsp file was: ".stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3/build/Sys
tem/Linux/hsc2hscall41-0.rsp"
       command was: /usr/bin/gcc -c .stack-work/dist/x86_64-linux-tinfo6/ghc-9
.8.3/build/System/Linux/Namespaces_hsc_make.c -o .stack-work/dist/x86_64-linux
-tinfo6/ghc-9.8.3/build/System/Linux/Namespaces_hsc_make.o -fuse-ld=gold -D__G
LASGOW_HASKELL__=908 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=
1 -Dx86_64_HOST_ARCH=1 -I.stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3/build/
autogen -I.stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3/build/global-autogen
-include .stack-work/dist/x86_64-linux-tinfo6/ghc-9.8.3/build/autogen/cabal_ma
cros.h -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-
9.8.3/lib/../lib/x86_64-linux-ghc-9.8.3/unix-2.8.4.0-0828/include -I/home/cura
tors/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-9.8.3/lib/../lib/x8
6_64-linux-ghc-9.8.3/time-1.12.2-baae/include -I/home/curators/.stack/programs
/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-9.8.3/lib/../lib/x86_64-linux-ghc-9.8.3
/bytestring-0.12.1.0-d7dc/include -I/home/curators/.stack/programs/x86_64-linu
x/ghc-tinfo6-9.8.3/lib/ghc-9.8.3/lib/../lib/x86_64-linux-ghc-9.8.3/base-4.19.2
.0-2710/include -I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3
/lib/ghc-9.8.3/lib/../lib/x86_64-linux-ghc-9.8.3/ghc-bignum-1.3-0f4e/include -
I/home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-9.8.3/li
b/../lib/x86_64-linux-ghc-9.8.3/rts-1.0.2/include -I/home/curators/.stack/prog
rams/x86_64-linux/ghc-tinfo6-9.8.3/include/include/
       error: In file included from .stack-work/dist/x86_64-linux-tinfo6/ghc-9
.8.3/build/System/Linux/Namespaces_hsc_make.c:1:
       Namespaces.hsc: In function ‘main’:
       /home/curators/work/unpack-dir/unpacked/linux-namespaces-0.2.0.0-d41f5e
0e49d20abe318e44ed1aa7945d3115333dd53dfcd3e078d7bb6ff8699f/Namespaces.hsc:90:1
6: error: ‘CLONE_NEWTIME’ undeclared (first use in this function); did you mea
n ‘CLONE_NEWPID’?
       /home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-9.
8.3/lib/template-hsc.h:45:10: note: in definition of macro ‘hsc_const’
          45 |     if ((x) < 0)                                      \
             |          ^
       /home/curators/work/unpack-dir/unpacked/linux-namespaces-0.2.0.0-d41f5e
0e49d20abe318e44ed1aa7945d3115333dd53dfcd3e078d7bb6ff8699f/Namespaces.hsc:90:1
6: note: each undeclared identifier is reported only once for each function it
 appears in
       /home/curators/.stack/programs/x86_64-linux/ghc-tinfo6-9.8.3/lib/ghc-9.
8.3/lib/template-hsc.h:45:10: note: in definition of macro ‘hsc_const’
          45 |     if ((x) < 0)                                      \
             |          ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant