Skip to content

postgrest project stack build error GHC: ld-linux-x86-64.so.2: No such file or directory #21

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

Closed
clojurians-org opened this issue May 14, 2019 · 3 comments

Comments

@clojurians-org
Copy link

this is my procedure for build stack project: postgrest, but it failed finally:
BTW, what's the best way to build stackage project?

export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/88ae8f7d55efa457c95187011eb410d097108445.tar.gz

$(nix-build --no-out-link -A stack2nix-script) ~/my-repo/postgrest

[larluo@nixos-larluo:~/my-repo/static-haskell-nix/static-stack2nix-builder]$ $(nix-build --no-out-link -A static-build-script)
+ /nix/store/ilf1nd7xvfska20pc7x8pslr7mw7lm2v-nix-2.0.4/bin/nix-build --no-out-link -A static_package
error: attribute 'myproject' missing, at /home/larluo/my-repo/static-haskell-nix/static-stack2nix-builder/default.nix:64:20
(use '--show-trace' to show detailed location information)

@clojurians-org
Copy link
Author

i modify the "cabalPackageName" attribute to project name, the build can continue now

@clojurians-org clojurians-org changed the title stack project build error: attribute 'myproject' missing postgrest project stack build error GHC: ld-linux-x86-64.so.2: No such file or directory May 14, 2019
@clojurians-org
Copy link
Author

it still can't be built:

[larluo@nixos-larluo:~/my-repo/static-haskell-nix/static-stack2nix-builder]$ $(nix-build -v --no-out-link -A static-build-script)
...
  /nix/store/y2znppbr9mz06qvzjzjn55gk57jf1hgs-interpolatedstring-perl6-1.0.0.drv                                                                                                        
  /nix/store/zjdfrdig8jd1s6hx2jzrjw54i09y4fas-lens-aeson-1.0.2.drv                                                                                                                      
  /nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv                                                                                                                       
building '/nix/store/l0imqllzra0d0xvvw696zljx41wlq5lm-ghc-7.10.3-binary.drv'...                                                                                                         
unpacking sources                                                                                                                                                                       
unpacking source archive /nix/store/r4dhq1zjnm0iw8l794nfgw7k906lb5qk-ghc-7.10.3b-x86_64-deb8-linux.tar.bz2                                                                              
source root is ghc-7.10.3                                                                                                                                                               
patching script interpreter paths in ghc-7.10.3/utils/                                                                                                                                  
ghc-7.10.3/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd-bindist: interpreter directive changed from "/bin/bash" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/bash"  
ghc-7.10.3/utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: interpreter directive changed from "/bin/bash" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/bas
h"                                                                                                                                                                                      
patching script interpreter paths in ghc-7.10.3/configure                                                                                                                               
ghc-7.10.3/configure: interpreter directive changed from " /bin/sh" to "/nix/store/v2hmssglxm87bxg29227zpgjnr2j98vn-bash-4.4-p23/bin/sh"                                                
missing ELF header                                                                                                                                                                      
not an ELF executable                                                                                                                                                                   
not an ELF executable                                                                                                                                                                   
cannot find section .interp                                                                                                                                                             
cannot find section .interp            
...
...
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/ghc_0AG9TOjDEtx4Ji3wSwHOBe                                                                                 
"/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc-pkg" --force --global-package-db "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/li
b/ghc-7.10.3/package.conf.d" update rts/dist/package.conf.install                                                                                                                       
Reading package info from "rts/dist/package.conf.install" ... done.                                                                                                                     
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" register libraries/ghc-prim dist-install "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/gh
c" "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc-pkg" "/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3" '' '/nix/st
ore/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary' '/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3' '/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-
7.10.3-binary/share/doc/ghc/html/libraries' NO                                                                                                                                          
Warning: cannot determine version of                                                                                                                                                    
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc                                                                                                    
:                                                                                                                                                                                       
""                                                                                                                                                                                      
ghc-cabal:                                                                                                                                                                              
'/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/ghc'                                                                                                  
exited with an error:                                                                                                                                                                   
Error loading shared library ld-linux-x86-64.so.2: No such file or directory                                                                                                            
(needed by                                                                                                                                                                              
/nix/store/76qlf8h7qiwsr1f5jq5z1g2ljxa7pzph-ghc-7.10.3-binary/lib/ghc-7.10.3/bin/../rts/libHSrts_thr-ghc7.10.3.so)                                                                      
make[1]: *** [ghc.mk:926: install_packages] Error 1                                                                                                                                     
make: *** [Makefile:24: install] Error 2                                                                                                                                                
builder for '/nix/store/l0imqllzra0d0xvvw696zljx41wlq5lm-ghc-7.10.3-binary.drv' failed with exit code 2                                                                                 
cannot build derivation '/nix/store/c2fy5xm4vn4yqgzgmzqmdlgmhry6pdaw-ghc-8.0.2.drv': 1 dependencies couldn't be built                                                                   
cannot build derivation '/nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv': 1 dependencies couldn't be built                                                             
error: build of '/nix/store/l60y9ixw4sixppih6l2jpf0np9qlgnnr-postgrest-5.2.0.drv' failed                                                                                                                                                                                                                                                 

@nh2
Copy link
Owner

nh2 commented Jul 23, 2021

postgrest is now building fine, it was added to be part of CI in PR #98.

@nh2 nh2 closed this as completed Jul 23, 2021
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