-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin
Description
Issue description
While trying to fix #50902 I was unable to build postgresql. The important lines from the build log (full log) seem to be:
ar crs libpgtypes.a numeric.o datetime.o common.o dt_common.o timestamp.o interval.o pgstrcasecmp.o
echo 'Libs: -L/nix/store/7l8df1na81psj9cx56yjs4m9084nrayr-postgresql-9.6.10-lib/lib -lecpg_compat' >>libecpg_compat.pc
error: /nix/store/p1zg3dnaaglqm34pq12ynfa2pc3r2lq8-cctools-port-895/bin/ranlib: can't open file: libpgtypes.a (No such file or directory)
ar: internal ranlib command failed
make[5]: *** [../../../../src/Makefile.shlib:306: libpgtypes.a] Error 1
The build succeeds with nix-build --cores 1 --max-jobs 1 -E 'let nixpkgs = import (builtins.fetchTarball { url = "https://github.com/endgame/nixpkgs/archive/bc565bba2762edf12a40fb0c153d676e66e28faa.tar.gz"; sha256 = "1hdcg4b84c0mw959d6x9pxal95j58ks82fpfsy5sbazs6s40hdhy"; }) {}; in nixpkgs.haskellPackages.postgresql-libpq'
Steps to reproduce
This build may fail:
nix-build -E 'let nixpkgs = import (builtins.fetchTarball { url = "https://github.com/endgame/nixpkgs/archive/bc565bba2762edf12a40fb0c153d676e66e28faa.tar.gz"; sha256 = "1hdcg4b84c0mw959d6x9pxal95j58ks82fpfsy5sbazs6s40hdhy"; }) {}; in nixpkgs.haskellPackages.postgresql-libpq'
(While it points to a commit in my fork of nixpkgs, this fork does not change the postgresql package. It updates something that depends on postgresql which I still haven't got building on Darwin.)
Technical details
nix-info -m:
- system: `"x86_64-darwin"`
- host os: `Darwin 17.7.0, macOS 10.13.6`
- multi-user?: `no`
- sandbox: `no`
- version: `nix-env (Nix) 2.1.3`
- channels(che347): `"nixpkgs-19.03pre159614.f52b7f5c345, nixpkgs-18.09-darwin-18.09pre152973.012b9e6c219"`
- nixpkgs: `/Users/che347/.nix-defexpr/channels/nixpkgs`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin