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

Pass X libraries as extra-lib-dirs to fix #53 #69

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

blackgnezdo
Copy link
Contributor

Thanks @marcespie for the hint about AC_SUBST!

Thanks @marcespie for the hint about AC_SUBST!
@blackgnezdo
Copy link
Contributor Author

@peti, any chance this can get fixed and released to hackage?

@peti peti merged commit 95aef82 into xmonad:master Aug 25, 2020
@peti
Copy link
Contributor

peti commented Aug 25, 2020

https://hackage.haskell.org/package/X11-1.9.2

@unclechu
Copy link

Could this change be related to this issue?:
commercialhaskell/stackage#5955 (comment)

@geekosaur
Copy link
Contributor

I don't know but I'm now wondering if it's related to #73 as well. There's also #70 hanging out in this area. :(

@unclechu
Copy link

@geekosaur Well, it seems at least this one isn’t related as long as X11-1.9.1 also fails with the same error:

X11                              > Configuring X11-1.9.1...
X11                              > configure: WARNING: unrecognized options: --with-compiler
X11                              > checking for gcc... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/cc
X11                              > checking whether the C compiler works... yes
X11                              > checking for C compiler default output file name... a.out
X11                              > checking for suffix of executables...
X11                              > checking whether we are cross compiling... no
X11                              > checking for suffix of object files... o
X11                              > checking whether we are using the GNU C compiler... yes
X11                              > checking whether /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/cc accepts -g... yes
X11                              > checking for /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/cc option to accept ISO C89... none needed
X11                              > checking how to run the C preprocessor... /nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/bin/cc -E
X11                              > checking for X... no
X11                              > configure: error: in `/run/user/1989/stack-c36b69647930faed/X11-1.9.1/.stack-work/dist/x86_64-linux-nix/Cabal-3.0.1.0/build':
X11                              > configure: error: X11 libraries not found, so X11 package cannot be built
X11                              > See `config.log' for more details

--  While building package X11-1.9.1 using:
      /run/user/1989/stack-c36b69647930faed/X11-1.9.1/.stack-work/dist/x86_64-linux-nix/Cabal-3.0.1.0/setup/setup --builddir=.stack-work/dist/x86_64-linux-nix/Cabal-3.0.1.0 configure --user --package-db=clear --package-db=global --package-db=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/pkgdb --libdir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/lib --bindir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/bin --datadir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/share --libexecdir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/libexec --sysconfdir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/etc --docdir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/doc/X11-1.9.1 --htmldir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/doc/X11-1.9.1 --haddockdir=/home/wenzel/.stack/snapshots/x86_64-linux-nix/76ffd061aa32102993b30122d6b16510b717686c4a6d5ab0890212056a3f26db/8.8.3/doc/X11-1.9.1 --dependency=base=base-4.13.0.0 --dependency=data-default=data-default-0.7.1.1-5cjrhz8y8DG881Qqkxq9GB --extra-include-dirs=/nix/store/s9lkarhs1nika412ckd0j53gqhpv980f-ghc-8.8.3/include --extra-include-dirs=/nix/store/ljsa61alznx2jfalzsksm1wdrywxzm1q-git-2.29.2/include --extra-include-dirs=/nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/include --extra-include-dirs=/nix/store/b8z6nbydvkdflfkk6924zdn9hzxiy45r-gmp-6.2.0-dev/include --extra-lib-dirs=/nix/store/s9lkarhs1nika412ckd0j53gqhpv980f-ghc-8.8.3/lib --extra-lib-dirs=/nix/store/ljsa61alznx2jfalzsksm1wdrywxzm1q-git-2.29.2/lib --extra-lib-dirs=/nix/store/ryy81g8zv6c8fh0j10m6fdynrgrn239k-gcc-wrapper-9.3.0/lib --extra-lib-dirs=/nix/store/1lj2b24v408awrfxw6xxv9spm9023lva-gmp-6.2.0/lib --exact-configuration --ghc-option=-fhide-source-paths
    Process exited with code: ExitFailure 1
Progress 9/10

@unclechu
Copy link

Actually I managed to fix it by adding this stack.yaml file:

resolver: nightly

nix:
  packages:
    - xorg.libX11
    - xorg.libXrandr
    - xorg.libXScrnSaver
    - xorg.libXext
    - xorg.libXinerama

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

Successfully merging this pull request may close these issues.

4 participants