pikajude / nixpkgs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nixos/nixpkgs
Nix Packages collection
License: Other
This project forked from nixos/nixpkgs
Nix Packages collection
License: Other
Right now the most up-to-date released llvm-general package links against llvm-3.4, but as nixpkgs' default llvm is llvm-3.5 it can't build. Changing line 1641
-llvmGeneral = callPackage ../development/libraries/haskell/llvm-general { llvmConfig = pkgs.llvm; };
+llvmGeneral = callPackage ../development/libraries/haskell/llvm-general { llvmConfig = pkgs.llvmPackages_34.llvm; };
is all that's required to patch it until the llvm-general package catches up to llvm-3.5.
I wanted to try it out the new haskellngPackges so I ran nix-env -i haskellngPackages.cabal2nix
and eventually ended up with
Building regex-tdfa-rc-1.1.8.3...
Preprocessing library regex-tdfa-rc-1.1.8.3...
Unmatched #endif at ./Text/Regex/TDFA/NewDFA/Engine.hs at line 727 col 1
Unmatched #endif at ./Text/Regex/TDFA/NewDFA/Engine_FA.hs at line 585 col 1
[ 1 of 23] Compiling Text.Regex.TDFA.NewDFA.Uncons ( Text/Regex/TDFA/NewDFA/Uncons.hs, dist/build/Text/Regex/TDFA/NewDFA/Uncons.o )
[ 2 of 23] Compiling Text.Regex.TDFA.IntArrTrieSet ( Text/Regex/TDFA/IntArrTrieSet.hs, dist/build/Text/Regex/TDFA/IntArrTrieSet.o )
[ 3 of 23] Compiling Paths_regex_tdfa_rc ( dist/build/autogen/Paths_regex_tdfa_rc.hs, dist/build/Paths_regex_tdfa_rc.o )
[ 4 of 23] Compiling Data.IntSet.EnumSet2 ( Data/IntSet/EnumSet2.hs, dist/build/Data/IntSet/EnumSet2.o )
[ 5 of 23] Compiling Data.IntMap.EnumMap2 ( Data/IntMap/EnumMap2.hs, dist/build/Data/IntMap/EnumMap2.o )
[ 6 of 23] Compiling Data.IntMap.CharMap2 ( Data/IntMap/CharMap2.hs, dist/build/Data/IntMap/CharMap2.o )
[ 7 of 23] Compiling Text.Regex.TDFA.Common ( Text/Regex/TDFA/Common.hs, dist/build/Text/Regex/TDFA/Common.o )
Text/Regex/TDFA/Common.hs:12:1: Warning:
The qualified import of ‘Data.IntSet.EnumSet2’ is redundant
except perhaps to import instances from ‘Data.IntSet.EnumSet2’
To import instances alone, use: import Data.IntSet.EnumSet2()
Text/Regex/TDFA/Common.hs:15:1: Warning:
The qualified import of ‘IMap.toList, IMap.null, IMap.assocs’
from module ‘Data.IntMap’ is redundant
Text/Regex/TDFA/Common.hs:17:1: Warning:
The qualified import of ‘Data.IntMap.CharMap2’ is redundant
except perhaps to import instances from ‘Data.IntMap.CharMap2’
To import instances alone, use: import Data.IntMap.CharMap2()
[ 8 of 23] Compiling Text.Regex.TDFA.Pattern ( Text/Regex/TDFA/Pattern.hs, dist/build/Text/Regex/TDFA/Pattern.o )
[ 9 of 23] Compiling Text.Regex.TDFA.ReadRegex ( Text/Regex/TDFA/ReadRegex.hs, dist/build/Text/Regex/TDFA/ReadRegex.o )
[10 of 23] Compiling Text.Regex.TDFA.CorePattern ( Text/Regex/TDFA/CorePattern.hs, dist/build/Text/Regex/TDFA/CorePattern.o )
[11 of 23] Compiling Text.Regex.TDFA.NewDFA.MakeTest ( Text/Regex/TDFA/NewDFA/MakeTest.hs, dist/build/Text/Regex/TDFA/NewDFA/MakeTest.o )
[12 of 23] Compiling Text.Regex.TDFA.NewDFA.Tester ( Text/Regex/TDFA/NewDFA/Tester.hs, dist/build/Text/Regex/TDFA/NewDFA/Tester.o )
[13 of 23] Compiling Text.Regex.TDFA.NewDFA.Engine_FA ( Text/Regex/TDFA/NewDFA/Engine_FA.hs, dist/build/Text/Regex/TDFA/NewDFA/Engine_FA.o )
Text/Regex/TDFA/NewDFA/Engine_FA.hs:573:1: unterminated `{-'
builder for ‘/nix/store/0vggfvfgk1mlgn76bh1657jgb69sx67i-haskell-regex-tdfa-rc-1.1.8.3.drv’ failed with exit code 1
building path(s) ‘/nix/store/l2kjimymq1m43xwy7zwkd7y4890km6vw-haskell-base-compat-0.5.0’
cannot build derivation ‘/nix/store/nha9wzah2q07jmfbamd3495405vk3835-haskell-tasty-0.10.1.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/gd4ix2s1in7x8v7m8f3yrp7bjpjl3gcj-haskell-haskell-src-exts-1.16.0.1.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/2xis303dlc91mywcp1ybbawzy7mvc8b7-haskell-scientific-0.3.3.5.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/sy25hiw1bp0g8104zvj7sinn8zlzp522-haskell-aeson-0.8.0.2.drv’: 1 dependencies couldn't be built
@acowley reported that he ran into the same issue.
@copumpkin @gridaphobe @joelteon wget is failing due to missing symbols from iconv:
building unit-tests
/nix/store/jk6130sfnnpnpd22bai77acbk93lmlm3-clang-wrapper-3.5.0/bin/clang -g -O2 -o unit-tests ../src/libunittest.a ../lib/libgnu.a -lnettle -lgnutls -lz -lidn -lnettle -lgnutls -lz -lidn
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_do_conversion in libunittest.a(libunittest_a-iri.o)
"_iconv_close", referenced from:
_do_conversion in libunittest.a(libunittest_a-iri.o)
"_iconv_open", referenced from:
_do_conversion in libunittest.a(libunittest_a-iri.o)
"_libintl_bindtextdomain", referenced from:
_main in libunittest.a(libunittest_a-test.o)
"_libintl_gettext", referenced from:
_url_error in libunittest.a(libunittest_a-url.o)
_wgetrc_env_file_name in libunittest.a(libunittest_a-init.o)
_run_wgetrc in libunittest.a(libunittest_a-init.o)
_initialize in libunittest.a(libunittest_a-init.o)
_run_command in libunittest.a(libunittest_a-init.o)
_cmd_spec_restrict_file_names in libunittest.a(libunittest_a-init.o)
_cmd_boolean in libunittest.a(libunittest_a-init.o)
...
"_libintl_ngettext", referenced from:
_print_broken_links in libunittest.a(libunittest_a-spider.o)
_warc_init in libunittest.a(libunittest_a-warc.o)
"_libintl_setlocale", referenced from:
_main in libunittest.a(libunittest_a-test.o)
_http_atotm in libunittest.a(libunittest_a-http.o)
"_libintl_textdomain", referenced from:
_main in libunittest.a(libunittest_a-test.o)
ld: symbol(s) not found for architecture x86_64
Hey @joelteon , change your wrapProgram
invocation to:
wrapProgram $out/bin/ghc --add-flags "-optl -Wl,-no_dtrace_dof" \
--prefix DYLD_LIBRARY_PATH : "${libiconv}/lib"
Then kill your patch to ld
and you're all set. Hidden ld
options are the best!
When I run nix-env -qas
it complains about attribute gcc
missing.
$ nix-env -qas --show-trace
error: while evaluating the attribute ‘cc’ of the derivation ‘ccache-links-wrapper’ at /Users/user/.joelteon-nixpkgs/pkgs/build-support/cc-wrapper/default.nix:31:3:
while evaluating the attribute ‘buildCommand’ of the derivation ‘ccache-links’ at /Users/user/.joelteon-nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
attribute ‘gcc’ missing, at /Users/user/.joelteon-nixpkgs/pkgs/development/tools/misc/ccache/default.nix:20:20
When checking the file, the error appears to occur on this line:
cat > $out/bin/gcc << EOF
Following the Nix on OS X guide, I've cloned this repo and configured nix to use it and the zalora binary cache. When I run nix-env -i nix
I encounter the following error
building path(s) ‘/nix/store/50j926c9klqssy5q9p5z165m3861sjiv-sharutils-4.11.1’
building /nix/store/50j926c9klqssy5q9p5z165m3861sjiv-sharutils-4.11.1
unpacking sources
unpacking source archive /nix/store/z7jmwsfqn15za3q080573vry2agicy9m-sharutils-4.11.1.tar.bz2
source root is sharutils-4.11.1
dyld: lazy symbol binding failed: Symbol not found: _fchmodat
Referenced from: /nix/store/zj3sns4csb3xcj8xn4v2cg21s9jy410g-coreutils-8.23/bin/chmod
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _fchmodat
Referenced from: /nix/store/zj3sns4csb3xcj8xn4v2cg21s9jy410g-coreutils-8.23/bin/chmod
Expected in: /usr/lib/libSystem.B.dylib
/nix/store/qyh2snqa6gg96xh03kklvj2y7kfs69r4-stdenv-darwin-boot-2/setup: line 523: 24579 Trace/BPT trap: 5 chmod -R u+w "$sourceRoot"
builder for ‘/nix/store/6qj0km8abafkahc9s9gk86zy0gwh9w14-sharutils-4.11.1.drv’ failed with exit code 133
cannot build derivation ‘/nix/store/k7zmkhx11j7frxs06v3i7x04pyshw22c-libarchive-3.1.2.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/0n7zny91azvjhzfwaarhs0gg1zj4d8vd-cmake-2.8.12.2.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/d177cng0102ppdq27jwk476q4v2v2sid-clang-3.5.0.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/zilpbwfrxqs338bc552m953al6pp16c9-libc++-3.5.0.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/fcc4xll0dzbn2yx6f6bsv660cf58qim6-libcxxabi-pre-217324.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/195wm8nfj6csvcayb8nh57a4y8cm91zw-llvm-3.5.0.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/aivmpxbsyjzw6mzkyi6kgm5lnb6cp3j0-clang-wrapper-3.5.0.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/q0pqmad7ns082inlnpqv9j28jknackil-stdenv-darwin-boot-3.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/03yq33nh12m7789xsa0855i8j71bfpl2-nix-1.8.drv’: 1 dependencies couldn't be built
@gridaphobe Hi Eric, I know you fixed this before (around Halloween time), but the python3.4 build is crashing again after the latest merge. Can you fix it again, and further, document what the fix is here so that I can apply it next time? Thanks!
I'm setting up my Mac from scratch: uninstalled brew, new dotfiles, etc.
I installed Nix as instructed here, and when I run
$ nix-env -qa gcc
error: selector ‘gcc’ matches no derivations
So I did
$ nix-env -qa | grep gcc
gcc-arm-embedded-4.7-2013q3-20130916
gcc-arm-embedded-4.8-2014q1-20140314
gcc-debug-wrapper-4.8.4
gcc-wrapper-3.4.6
gcc-wrapper-4.6.4
gcc-wrapper-4.8.4
gcc-wrapper-4.9.2
gccgo-wrapper-4.8.4
gccmakedep-1.0.3
After trying to
$ nix-env -i gcc-wrapper-4.9.2
I get a lot of output, but the end is this:
builder for ‘/nix/store/i6f9r4n7k4jdw9c5zn9rqpmlvzd2wrdg-gcc-4.9.2.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/d59g3xqd3ivg14pg2088qzbrgs4jxnyj-gcc-wrapper-4.9.2.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/d59g3xqd3ivg14pg2088qzbrgs4jxnyj-gcc-wrapper-4.9.2.drv’ failed
How can I install gcc
with nix
correctly?
I use cdargs
, so I want to merge it to nixpkgs, should I make a pull request in this repo or in NixOS/nixpkgs?
I'm running into an issue trying to use master
on a non-NixOS Linux today.
$ nix-shell -p hello --show-trace
error: while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘shell’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating the attribute ‘builder’ of the derivation ‘hello-2.10’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/applications/misc/hello/ex-2/default.nix:4:3:
while evaluating the attribute ‘pkgs.gcc’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/linux/default.nix:232:7:
while evaluating ‘makeOverridable’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:56:24, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/linux/default.nix:232:13:
while evaluating anonymous function at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/build-support/cc-wrapper/default.nix:8:1, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:58:12:
while evaluating the attribute ‘stdenv.cc.gcc’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/generic/default.nix:198:14:
while evaluating the attribute ‘gccPlain’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/linux/default.nix:212:7:
while evaluating the attribute ‘gcc.gcc’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:3137:3:
while evaluating ‘lowPrio’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/meta.nix:48:13, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:3256:11:
while evaluating ‘addMetaAttrs’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/meta.nix:16:28, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/meta.nix:48:18:
while evaluating ‘wrapCCWith’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:4056:33, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:3256:20:
while evaluating ‘makeOverridable’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:56:24, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:4056:41:
while evaluating anonymous function at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/build-support/cc-wrapper/default.nix:8:1, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:58:12:
while evaluating the attribute ‘cc.nativeTools’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/generic/default.nix:198:14:
while evaluating ‘makeOverridable’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:56:24, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/stdenv/linux/default.nix:88:19:
while evaluating anonymous function at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/build-support/cc-wrapper/default.nix:8:1, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:58:12:
while evaluating the attribute ‘glibc’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:5426:3:
while evaluating ‘callPackageWith’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:104:35, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/top-level/all-packages.nix:5426:11:
while evaluating ‘makeOverridable’ at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:56:24, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:106:5:
while evaluating anonymous function at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/development/libraries/glibc/default.nix:1:1, called from /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/lib/customisation.nix:58:12:
assertion failed at /home/rwallace/Development/atlassian/hiberico/nixpkgs/upstream/pkgs/development/libraries/glibc/default.nix:11:1
This might be better linked into NixOS/nixpkgs, but I'm currently testing it on this branch.
Right now, llvmGeneral
requires shared libraries (I believe because it uses Template Haskell, which in turn requires GHCi, which in turn requires shared linking) but llvm
itself is flagged to build on Darwin without shared libs. The relevant file is here.
If I adjust the flags to try building shared libs for Darwin it results in an LLVM compilation error. I have a log linked here. The short of it is the following however:
dyld: Library not loaded: libLLVMTableGen.dylib
Referenced from: /private/var/folders/lj/655x29_s66718hvw6bdcvy1w0000gn/T/nix-build-llvm-3.4.2.drv-0/llvm/build/include/llvm/IR/../../../bin/llvm-tblgen
Reason: image not found
This appears to be an rpath error, LLVM can't find its own compiled shared libraries in the nix tree.
Is there a fix for this in nix?
Invoking nix-env -u \*
does not work; I get the error shown below.
It appears that the nix version specified in the current 'master' branch refers to a source code archive that is no longer being served by http://hydra.nixos.org
upgrading ‘nix-1.8’ to ‘nix-1.9pre4021_f46e329’
these derivations will be built:
/nix/store/3x9sjm47yhvn252xpzg7vcpdybg1gw09-DBD-SQLite-1.44.tar.gz.drv
/nix/store/3hsbscqpdyqhsx3qyingsc1naa9z6012-DBI-1.631.tar.gz.drv
/nix/store/vm1xy9d43b40pk68mmz74dzf85j6hsbf-perl-DBI-1.631.drv
/nix/store/315fdzv30ilh30i528bbplfc7ww2ifay-perl-DBD-SQLite-1.44.drv
/nix/store/sarmiahhjf2ym5386ikrwgcaqw4f62xn-gc-7.2f.tar.gz.drv
/nix/store/5pjh4cmifxcb8kwqjdg3g7f6ykr3afkf-boehm-gc-7.2f.drv
/nix/store/f9qzdpcjkdyi6sjsfwkyn1s51n3vnm4w-nix-1.9pre4021_f46e329.tar.xz.drv
/nix/store/x21i8lmpscqp7zqbrpbn5cm4d44n2d0n-pkg-config-0.28.tar.gz.drv
/nix/store/g5gf3yini8f2vdz704c803c4lfz7pl2s-pkg-config-0.28.drv
/nix/store/ghfgvpzcl0fad80i994i0n2a25xdxj3s-WWW-Curl-4.17.tar.gz.drv
/nix/store/slsfc281jz7plcc4gcf7dms2c6zj6c84-perl-WWW-Curl-4.17.drv
/nix/store/b5rawvf6jr7b6cfiwn8jjjznc8nj9hgv-nix-1.9pre4021_f46e329.drv
building path(s) ‘/nix/store/8x6hblrx1vhsmvizy7sd2pga9bs4p5i0-nix-1.9pre4021_f46e329.tar.xz’
trying http://hydra.nixos.org/build/18964230/download/4/nix-1.9pre4021_f46e329.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
error: cannot download nix-1.9pre4021_f46e329.tar.xz from any mirror
builder for ‘/nix/store/f9qzdpcjkdyi6sjsfwkyn1s51n3vnm4w-nix-1.9pre4021_f46e329.tar.xz.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/b5rawvf6jr7b6cfiwn8jjjznc8nj9hgv-nix-1.9pre4021_f46e329.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/b5rawvf6jr7b6cfiwn8jjjznc8nj9hgv-nix-1.9pre4021_f46e329.drv’ failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.