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

fails to build on aws - linux2 - arm64 #2007

Closed
johndpope opened this issue Nov 3, 2021 · 2 comments
Closed

fails to build on aws - linux2 - arm64 #2007

johndpope opened this issue Nov 3, 2021 · 2 comments

Comments

@johndpope
Copy link

Environment

  • PostgreSQL version: (if using docker, specify the image)
  • latest
  • PostgREST version: (if using docker, specify the image)
  • Operating system:
    aws - linux 2 - arm64

Description of issue

I install nix

and run appropriate build command

setupCompilerEnvironmentPhase
Build with /nix/store/zzav0n3k3qqmkf9cm1zf24r0m6a5kasg-ghc-8.10.7.
unpacking sources
unpacking source archive /nix/store/h14f6qg8vil686yr0prqfdbvf15k77qf-ptr-0.16.8.1.tar.gz
source root is ptr-0.16.8.1
setting SOURCE_DATE_EPOCH to timestamp 1616249482 of file ptr-0.16.8.1/tests/Main.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j2 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
/nix/store/1q1mif7h3lgxdaxg6j39hli5azikrfla-gcc-wrapper-9.3.0/bin/ld.gold: line 256:   135 Killed                  /nix/store/10avvfvwvzj4y0z6zxij2qnz5pgqprg5-binutils-2.35.1/bin/ld.gold ${extraBefore+"${extraBefore[@]}"} ${params+"${params[@]}"} ${extraAfter+"${extraAfter[@]}"}
collect2: error: ld returned 137 exit status
`cc' failed in phase `Linker'. (Exit code: 1)
error: builder for '/nix/store/332rxb3zh4wyb9rkn8c0j35jz5qxf421-ptr-0.16.8.1.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/w0pcn1bl9fvb5m3cwbwh1p6d8h3kf1h1-hasql-dynamic-statements-0.3.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4hy1d0z94zpmfpj3v50pykfibq2zf7ck-postgrest-8.0.0.20210921.drv' failed to build
@steve-chavez
Copy link
Member

I install nix

Yeah. Unfortunately our Nix build is not working on ARM right now, we also had this issue on #1117 (comment).

The only way to compile now would be with plain cabal. Let's follow up on #2004.

@johndpope
Copy link
Author

ok - thanks

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

No branches or pull requests

2 participants