-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add genearlized inverse #773
Conversation
@spinkney Nice. You just need to additionally run: dune runtest and commit the changes. A simple model that runs the new function in transformed data and transformed parameters would also be good to have. Like https://github.com/stan-dev/stanc3/blob/master/test/integration/good/function-signatures/math/matrix/mdivide_right_tri_low.stan And that is it. |
Do you need data with the model or just the model code? |
No data needed. For this simple signature this mode is enough: data {
int d_int;
matrix[d_int,d_int] d_matrix;
}
transformed data {
matrix[d_int,d_int] transformed_data_matrix;
transformed_data_matrix = generalized_inverse(d_matrix);
}
parameters {
real y_p;
matrix[d_int,d_int] p_matrix;
}
transformed parameters {
matrix[d_int,d_int] transformed_param_matrix;
transformed_param_matrix = generalized_matrix(d_matrix);
transformed_param_matrix = generalized_matrix(p_matrix);
}
model {
y_p ~ normal(0,1);
} This is needed to double check the signature is supported and also that it compiles on the C++ level. |
@rok-cesnovar I added the stan code. I'm getting an error when trying to build stanc using nix that can't find the long build message with error
pinkney@Pinkneys-MBP stanc3 % nix-build
unpacking 'https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz'...
these derivations will be built:
/nix/store/0hny16g8gk9kc8908krrca9w2ri630yc-ocaml4.06.1-stdlib-shims-0.1.0.drv
/nix/store/y7c8clvp93pc4i0yfzrgjhdcd439k9pp-ocaml4.06.1-stanc-2.23.0.drv
these paths will be fetched (297.82 MiB download, 1576.81 MiB unpacked):
/nix/store/073l4vpy6v1lvvjjwzijhpx8v29rg5af-ncurses-6.1-20190112
/nix/store/07jcv76pfgppiryv0b0nf20ygz34wvzn-swift-corefoundation
/nix/store/11sw3j3mpvyp1x0k6g35vky2crz2a9v3-curl-7.65.3
/nix/store/1aafgvnvbqjfdfm899fcvq6dnnlrsvb3-ocaml4.06.1-fieldslib-0.11.0
/nix/store/1gzhbd2xka684il4a83817rgvs2grxsr-ocaml4.06.1-ppx_let-0.11.0
/nix/store/2ljqj4jqslwhba081ckb5s03w7nva7x5-ocaml4.06.1-ppx_base-0.11.0
/nix/store/2na9p0gp034yksbsvis8n4laqwvkvd30-ocaml4.06.1-ppx_enumerate-0.11.1
/nix/store/2nzyf3350kh6rcgla23zr37hgsbm38rc-expand-response-params
/nix/store/2vzm0xjc5wcg12qwgh97frypdc85s8vl-ocaml4.06.1-bin_prot-0.11.0
/nix/store/30ndfndalbxdj531491z2hmv5shlxpqf-ocaml-findlib-1.8.1
/nix/store/35shxf6l73xclcigk7ipmdsb7pkm4zrv-ocaml4.06.1-ppx_deriving-4.4
/nix/store/39fqk0prf5q850y9w349v54lss0yxngz-ocaml4.06.1-octavius-0.2.0
/nix/store/3j24bxhc35hwcby810ah2khihk4pl2ia-Libsystem-osx-10.12.6
/nix/store/3mn7ixvydbhjaq8wnb5q4zsy7v0120ih-ncurses-6.1-20190112-dev
/nix/store/440vpi5xx9jsq8hc3k5l3qsw37yy9xwd-stdlib-shims-0.1.0.tbz
/nix/store/47fx6lckin93l99ccksbmh2zjvyvlgpm-ocaml4.06.1-ppx_sexp_value-0.11.0
/nix/store/4h3zzn9ws6b3nzww12a89vqw92mvy6px-zlib-1.2.11
/nix/store/4rxwn3xf76i4n4mjq3cy30anmvpq55gv-compiler-rt-7.1.0-dev
/nix/store/4y7xrmwlrlv70jdsyabrgcq2ckz2y1c9-ocaml4.06.1-ppx_derivers-1.2.1
/nix/store/52yz2fjzys6wwn6n7qsv075crr2namqi-gmp-6.1.2
/nix/store/56ny0chbmwy66bgn1if45v5xi0v1szld-ocaml4.06.1-fmt-0.8.5
/nix/store/579ayaay4axln9la00wgjk7b5c0bsa1a-ocaml4.06.1-typerep-0.11.0
/nix/store/64k2wkvk1vxa05ywwin31hybdla65f2x-xorgproto-2018.4
/nix/store/68q0fq66klzs7lgyq8qzr46zql8zxxiv-ocaml4.06.1-num-1.1
/nix/store/68r15ydk3ivnw0aj60bkx0a5qhqjq53b-gnugrep-3.3
/nix/store/71db21gvdjzk56bg1ib8rm4rm0v5xyj1-ocaml4.06.1-ppx_typerep_conv-0.11.1
/nix/store/79wb7swnxhjv9mrq7xc0pmpnghl6ci0w-ocaml4.06.1-ppx_js_style-0.11.0
/nix/store/81rvffamha5shm430xvf0ikap99413nv-ocaml4.06.1-uchar-0.0.2
/nix/store/8lncmrm0jg8w9mwyrpfsf57v6kf7b6k6-ocaml4.06.1-ppx_here-0.11.0
/nix/store/8xnm4sckflrz0rw2p134cizsq0izz7j4-ocaml4.06.1-base-0.11.1
/nix/store/8ywgdknsjmipk5yx70fkp7qibpqc36sy-ocaml4.06.1-ppx_inline_test-0.11.0
/nix/store/9cy996i44niiixsxa01si1h1pngz8d3q-ocaml4.06.1-ppx_pipebang-0.11.0
/nix/store/9hb5ivqfrbzm0mglhxkwjdk1w17hff0q-cctools-binutils-darwin-wrapper
/nix/store/9hdy0468fw5dma2mw9ffvkma7c304w24-gawk-5.0.1
/nix/store/9zqavsdv0svbpm17c5y9nfak50yhj3m9-ocaml4.06.1-sexplib0-0.11.0
/nix/store/al9wvh49py92x74anksxj4lx8i2akr27-ocaml4.06.1-ppx_assert-0.11.0
/nix/store/amk8gl1gl0fsb4vdxplb8mbv1ii7ppkd-ocaml4.06.1-yojson-1.7.0
/nix/store/b2lwgm8vpagq5b6lkf7np0bmqa1064l6-ocaml4.06.1-ppx_sexp_message-0.11.0
/nix/store/bf0hs3rw6f1lb02gv6k5hqd4v444w10m-menhir-20181113
/nix/store/bkzgq2x7mcdgrcdd7f1r046q6pf6sa14-ocaml4.06.1-parsexp-0.11.0
/nix/store/bmxpb0q0pmmcfb4svpbnlpx54yxbhw88-ocaml4.06.1-ppxlib-0.8.1
/nix/store/bxpyi2hr399f4gsxz188zk1gdqc4xc45-compiler-rt-7.1.0
/nix/store/c7zr9rl9slj9b5d9k31smhxiw745lf3i-libiconv-osx-10.12.6
/nix/store/cc2sxfmwrr9z7ikmzlbpj7qi95ffwy22-ocaml4.06.1-re-1.9.0
/nix/store/cjj70577z9jn21av21qp4mkh7znmk658-ocaml4.06.1-stdio-0.11.0
/nix/store/ckjljvac0z43b0l0s5xamcpnglz35r67-cctools-binutils-darwin
/nix/store/ckrlrz487qh993hjxp7xpk8h8hiq1w18-libXau-1.0.9
/nix/store/cnxrdhw0p7pq640xa9f25xhgzgsfz1sv-libXdmcp-1.1.3
/nix/store/cq3ahr8a2b9qhsr1bgxgxgkf3ybhc1w6-libc++abi-7.1.0
/nix/store/cwrk2vqzxjrx0rbcbiwwjzchqcryy403-clang-wrapper-7.1.0
/nix/store/d6fpbkzh0196mx4zwgjh9xmdn564v5dx-stdenv-darwin
/nix/store/dknqnzw03h8xsg9j01wl1p6nyijsx0d3-clang-7.1.0-lib
/nix/store/dl6zhysp7jgbc6xlrs7bisxzr234zjya-llvm-7.1.0-lib
/nix/store/fwkncvhxr0l7412w30fc0ij10midfw3s-libX11-1.6.8
/nix/store/gcvgcshff3i25kab2wcs07knh6ja8sk3-llvm-7.1.0
/nix/store/gj90l0srg73n364p1qw6xasv9fq7f66a-opaline-0.3.2
/nix/store/gwbkj37spq5lzbm4ylbw70jjv8v4xa9m-ocaml4.06.1-ppx_compare-0.11.1
/nix/store/gyz7dhcfv4yaqphn1wmp92233rmqr7b5-xz-5.2.4
/nix/store/h207hvp4wlzmzwm29vhkvkbhag6pglyy-pcre-8.43
/nix/store/h568713mviz3q2vf94lkl1v87r0ff5vr-ICU-osx-10.10.5
/nix/store/hcqsmarqxdsba17g2q1876nwgav50w27-ocaml4.06.1-ppx_fields_conv-0.11.0
/nix/store/hhj7n94wpw5kzclswr59amvzb5j83cd8-ocaml4.06.1-ppx_tools-5.1+4.06.0
/nix/store/hyv92dmqfrywfc1a5rrrjqzf43d3a29k-x11env
/nix/store/i90mfl6iv5va52rgqxkcdw8hm00cvlp9-coreutils-8.31
/nix/store/ig7nw9hhfdkl6iw01gp8qii8wh5a1vmb-binutils-2.31.1
/nix/store/izvqz6bqil7z05b55qdqqd3z5sa7s65r-clang-7.1.0
/nix/store/jhh5kx1frwnq4r9wwbja4sbn5z8mn3gm-gettext-0.19.8.1
/nix/store/jmx0w29cfbqx1qcm1ywgz1k8al5km4l4-ocaml4.06.1-cmdliner-1.0.4
/nix/store/k3854jvfp86llka0dwdd7dh371pn0pmp-zlib-1.2.11-dev
/nix/store/kbizdqwhln66k05q5k473vfj3xqr4s9b-ocaml4.06.1-ppx_jane-0.11.0
/nix/store/knaa11z6hh5cvzs1qjx20zk5z8b6ip3k-libxcb-1.13.1
/nix/store/kpascnw5k8dghqvnzcib7l4zkjycgkbk-ocaml4.06.1-sexplib-0.11.0
/nix/store/l67p9dndh55nmxkipvjhq33bjjy0xyp4-ocaml4.06.1-ppx_variants_conv-0.11.1
/nix/store/lfkgv1sr651zkc2y1rz8izlydi8q5y1w-ncurses-6.1-20190112-man
/nix/store/lh403as4d6ls8l12vr9fdf3s94585azk-dune-1.11.3
/nix/store/lka3agfhrzbwjvnvwwlgivf8ziii3l1l-ocaml4.06.1-ppx_custom_printf-0.11.0
/nix/store/ly7vz65xwhl8wdj6f70b2861flbl10l6-easy-format-1.2.0
/nix/store/m1d3awsx3cm8c7flszzhj0z09m4sz7r9-ocaml4.06.1-core_kernel-0.11.1
/nix/store/m37v2qi9n5z3z2dc2hnj9pzby139h3z3-gzip-1.10
/nix/store/manwblxv4n70fwji369liqc7g9jbl0vr-bash-4.4-p23
/nix/store/mcdl2lj1y11pp2707hkprrj9qb1k2f4s-ocaml4.06.1-ppx_optcomp-0.11.0
/nix/store/n5xl56hnhcr0qry80av3npfrzsz94zpm-gnutar-1.32
/nix/store/n6x93p6449x9mjk1cp4nmy9gy620a3mc-ocaml4.06.1-biniou-1.2.0
/nix/store/nar40kya2m6dx0615knfw2gsbdr4sx3a-ocaml4.06.1-ppx_bin_prot-0.11.1
/nix/store/nhbdlnnfp9nyyqx2cb2hmbqf2rw2gw75-ocaml4.06.1-configurator-0.11.0
/nix/store/njangkkjjy489xi5yi2p451x1hvvkr7x-ocaml4.06.1-ppx_bench-0.11.0
/nix/store/nyynwzjhn6gvbhw388vxza99zxgmslpz-ocaml4.06.1-ppx_fail-0.11.0
/nix/store/p1klxzklljrvva9f9s357lf0r6sdawm6-bzip2-1.0.6.0.1
/nix/store/p32asx9r7fafgc50km6kjqhadp16rssd-patch-2.7.6
/nix/store/p6qpm1xjkzyfniccl5z96adz6qz1k32d-ocaml4.06.1-ocaml-compiler-libs-0.11.0
/nix/store/pbw8xa9pz5vlk7p82kzqy3lzii63gzkx-nghttp2-1.39.2-lib
/nix/store/pmsxk1p264ia2176fipaplnrvpgmic87-libc++-7.1.0
/nix/store/q6ilf069gpyzfjgbrj508fp0dl22dkkg-ocaml4.06.1-seq-0.1
/nix/store/qb0sgsn323q9g7n52hl14fbla6bhj61n-gnumake-4.2.1
/nix/store/qjsv8zy7nhfg4g3ihz1b02hx6mn2v7iy-libssh2-1.9.0
/nix/store/qkvkvyhrdcdwz5x57bqcvwmaixmsjp93-ocaml4.06.1-variantslib-0.11.0
/nix/store/qrzhglvy17ma4i57bs24lznazpj6q1bw-ocaml4.06.1-ppx_hash-0.11.1
/nix/store/r43vk5crzmnswfn4yd2vhafp3b3jx8hy-libkrb5-1.17
/nix/store/rwkns29l6sf5cirk4309w4wl7m0kvlrb-ocaml4.06.1-jane-street-headers-0.11.0
/nix/store/s4fhyxkp19zs9p2491almwrh945fh6vz-ocaml4.06.1-ocaml-migrate-parsetree-1.4.0
/nix/store/s4s8y4rr13n5hxggzmwsm0nk2cd23igp-ocaml4.06.1-splittable_random-0.11.0
/nix/store/sgzm88skfzkp1kqq3mf0j7njxj87lcqi-ocaml4.06.1-result-1.2
/nix/store/skmk59b6vjz1nqmgwdbrc57mwk1n0y1m-ocaml4.06.1-ppx_optional-0.11.0
/nix/store/sqz4zhayw29l0bvpkb1nqxlcb4r5vbsy-findutils-4.7.0
/nix/store/sv3rjwwywakqfqhck9ahc8if76n4q4vy-ocaml4.06.1-ppx_sexp_conv-0.11.2
/nix/store/vq3xy2lpqhxl4m5vk8n5rvwv4fj7gxl1-openssl-1.1.1d
/nix/store/w2q6h9p59gz0aq7pk470kl017lvfnfbj-libxml2-2.9.9
/nix/store/wdb3qyl7mg0xcl0zm83bvzx0b9vfg4d9-cctools-port-895
/nix/store/wf80k5k5pkgm3012qak3gcbm1xadfdn1-ocaml4.06.1-ppx_expect-0.11.0
/nix/store/x0rb9yi0ldlp5a8pw3hlxsjq4fwycv7m-ocaml-4.06.1
/nix/store/xbfnc4blzbx20rmg76sx57d712syzyvh-xz-5.2.4-bin
/nix/store/xnxv9k3197ynr8snhz3apn7786va6yfx-diffutils-3.7
/nix/store/xp3qbw99z441a895cf9ddzlbdwkzs744-cppo-1.6.5
/nix/store/xy3mrm6r9dhz3yr1fsvidgfdyj1xia01-adv_cmds-osx-10.5.8-locale
/nix/store/yayp4kq8bwpicbd45wicln18slhrbir9-ed-1.15
/nix/store/yj1g2xs6w44kvq9xsb8mv84wi0ab9f86-libX11-1.6.8-man
/nix/store/yqxkiq9llklix8qm4dzhh5p23kjz2q3l-bzip2-1.0.6.0.1-bin
/nix/store/yyr024w5gkszx8h6c74h5qqc4qka8wqm-ocamlbuild-0.14.0
/nix/store/z61h8577csqgdx0zqrkzby8z8799ir95-gnused-4.7
/nix/store/zvrn3mxbmjnzj6fxadv2pyyvn2qr6hhh-libffi-3.2.1
copying path '/nix/store/3j24bxhc35hwcby810ah2khihk4pl2ia-Libsystem-osx-10.12.6' from 'https://cache.nixos.org'...
copying path '/nix/store/xy3mrm6r9dhz3yr1fsvidgfdyj1xia01-adv_cmds-osx-10.5.8-locale' from 'https://cache.nixos.org'...
copying path '/nix/store/manwblxv4n70fwji369liqc7g9jbl0vr-bash-4.4-p23' from 'https://cache.nixos.org'...
copying path '/nix/store/p1klxzklljrvva9f9s357lf0r6sdawm6-bzip2-1.0.6.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/yayp4kq8bwpicbd45wicln18slhrbir9-ed-1.15' from 'https://cache.nixos.org'...
copying path '/nix/store/yqxkiq9llklix8qm4dzhh5p23kjz2q3l-bzip2-1.0.6.0.1-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/2nzyf3350kh6rcgla23zr37hgsbm38rc-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/9hdy0468fw5dma2mw9ffvkma7c304w24-gawk-5.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/qb0sgsn323q9g7n52hl14fbla6bhj61n-gnumake-4.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/z61h8577csqgdx0zqrkzby8z8799ir95-gnused-4.7' from 'https://cache.nixos.org'...
copying path '/nix/store/m37v2qi9n5z3z2dc2hnj9pzby139h3z3-gzip-1.10' from 'https://cache.nixos.org'...
copying path '/nix/store/yj1g2xs6w44kvq9xsb8mv84wi0ab9f86-libX11-1.6.8-man' from 'https://cache.nixos.org'...
copying path '/nix/store/cq3ahr8a2b9qhsr1bgxgxgkf3ybhc1w6-libc++abi-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/zvrn3mxbmjnzj6fxadv2pyyvn2qr6hhh-libffi-3.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/pmsxk1p264ia2176fipaplnrvpgmic87-libc++-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/c7zr9rl9slj9b5d9k31smhxiw745lf3i-libiconv-osx-10.12.6' from 'https://cache.nixos.org'...
copying path '/nix/store/h568713mviz3q2vf94lkl1v87r0ff5vr-ICU-osx-10.10.5' from 'https://cache.nixos.org'...
copying path '/nix/store/wdb3qyl7mg0xcl0zm83bvzx0b9vfg4d9-cctools-port-895' from 'https://cache.nixos.org'...
copying path '/nix/store/bxpyi2hr399f4gsxz188zk1gdqc4xc45-compiler-rt-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/jhh5kx1frwnq4r9wwbja4sbn5z8mn3gm-gettext-0.19.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/4rxwn3xf76i4n4mjq3cy30anmvpq55gv-compiler-rt-7.1.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/52yz2fjzys6wwn6n7qsv075crr2namqi-gmp-6.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/n5xl56hnhcr0qry80av3npfrzsz94zpm-gnutar-1.32' from 'https://cache.nixos.org'...
copying path '/nix/store/i90mfl6iv5va52rgqxkcdw8hm00cvlp9-coreutils-8.31' from 'https://cache.nixos.org'...
copying path '/nix/store/r43vk5crzmnswfn4yd2vhafp3b3jx8hy-libkrb5-1.17' from 'https://cache.nixos.org'...
copying path '/nix/store/xnxv9k3197ynr8snhz3apn7786va6yfx-diffutils-3.7' from 'https://cache.nixos.org'...
copying path '/nix/store/sqz4zhayw29l0bvpkb1nqxlcb4r5vbsy-findutils-4.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/073l4vpy6v1lvvjjwzijhpx8v29rg5af-ncurses-6.1-20190112' from 'https://cache.nixos.org'...
copying path '/nix/store/lfkgv1sr651zkc2y1rz8izlydi8q5y1w-ncurses-6.1-20190112-man' from 'https://cache.nixos.org'...
copying path '/nix/store/pbw8xa9pz5vlk7p82kzqy3lzii63gzkx-nghttp2-1.39.2-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/3mn7ixvydbhjaq8wnb5q4zsy7v0120ih-ncurses-6.1-20190112-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/81rvffamha5shm430xvf0ikap99413nv-ocaml4.06.1-uchar-0.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/vq3xy2lpqhxl4m5vk8n5rvwv4fj7gxl1-openssl-1.1.1d' from 'https://cache.nixos.org'...
copying path '/nix/store/p32asx9r7fafgc50km6kjqhadp16rssd-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/h207hvp4wlzmzwm29vhkvkbhag6pglyy-pcre-8.43' from 'https://cache.nixos.org'...
copying path '/nix/store/440vpi5xx9jsq8hc3k5l3qsw37yy9xwd-stdlib-shims-0.1.0.tbz' from 'https://cache.nixos.org'...
copying path '/nix/store/68r15ydk3ivnw0aj60bkx0a5qhqjq53b-gnugrep-3.3' from 'https://cache.nixos.org'...
copying path '/nix/store/64k2wkvk1vxa05ywwin31hybdla65f2x-xorgproto-2018.4' from 'https://cache.nixos.org'...
copying path '/nix/store/gyz7dhcfv4yaqphn1wmp92233rmqr7b5-xz-5.2.4' from 'https://cache.nixos.org'...
copying path '/nix/store/4h3zzn9ws6b3nzww12a89vqw92mvy6px-zlib-1.2.11' from 'https://cache.nixos.org'...
copying path '/nix/store/xbfnc4blzbx20rmg76sx57d712syzyvh-xz-5.2.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/ig7nw9hhfdkl6iw01gp8qii8wh5a1vmb-binutils-2.31.1' from 'https://cache.nixos.org'...
copying path '/nix/store/qjsv8zy7nhfg4g3ihz1b02hx6mn2v7iy-libssh2-1.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/w2q6h9p59gz0aq7pk470kl017lvfnfbj-libxml2-2.9.9' from 'https://cache.nixos.org'...
copying path '/nix/store/11sw3j3mpvyp1x0k6g35vky2crz2a9v3-curl-7.65.3' from 'https://cache.nixos.org'...
copying path '/nix/store/dl6zhysp7jgbc6xlrs7bisxzr234zjya-llvm-7.1.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/07jcv76pfgppiryv0b0nf20ygz34wvzn-swift-corefoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/dknqnzw03h8xsg9j01wl1p6nyijsx0d3-clang-7.1.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/ly7vz65xwhl8wdj6f70b2861flbl10l6-easy-format-1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/izvqz6bqil7z05b55qdqqd3z5sa7s65r-clang-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/ckrlrz487qh993hjxp7xpk8h8hiq1w18-libXau-1.0.9' from 'https://cache.nixos.org'...
copying path '/nix/store/cnxrdhw0p7pq640xa9f25xhgzgsfz1sv-libXdmcp-1.1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/sgzm88skfzkp1kqq3mf0j7njxj87lcqi-ocaml4.06.1-result-1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/knaa11z6hh5cvzs1qjx20zk5z8b6ip3k-libxcb-1.13.1' from 'https://cache.nixos.org'...
copying path '/nix/store/q6ilf069gpyzfjgbrj508fp0dl22dkkg-ocaml4.06.1-seq-0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/fwkncvhxr0l7412w30fc0ij10midfw3s-libX11-1.6.8' from 'https://cache.nixos.org'...
copying path '/nix/store/gj90l0srg73n364p1qw6xasv9fq7f66a-opaline-0.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/hyv92dmqfrywfc1a5rrrjqzf43d3a29k-x11env' from 'https://cache.nixos.org'...
copying path '/nix/store/k3854jvfp86llka0dwdd7dh371pn0pmp-zlib-1.2.11-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/gcvgcshff3i25kab2wcs07knh6ja8sk3-llvm-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/ckjljvac0z43b0l0s5xamcpnglz35r67-cctools-binutils-darwin' from 'https://cache.nixos.org'...
copying path '/nix/store/9hb5ivqfrbzm0mglhxkwjdk1w17hff0q-cctools-binutils-darwin-wrapper' from 'https://cache.nixos.org'...
copying path '/nix/store/cwrk2vqzxjrx0rbcbiwwjzchqcryy403-clang-wrapper-7.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/x0rb9yi0ldlp5a8pw3hlxsjq4fwycv7m-ocaml-4.06.1' from 'https://cache.nixos.org'...
copying path '/nix/store/d6fpbkzh0196mx4zwgjh9xmdn564v5dx-stdenv-darwin' from 'https://cache.nixos.org'...
copying path '/nix/store/lh403as4d6ls8l12vr9fdf3s94585azk-dune-1.11.3' from 'https://cache.nixos.org'...
copying path '/nix/store/bf0hs3rw6f1lb02gv6k5hqd4v444w10m-menhir-20181113' from 'https://cache.nixos.org'...
copying path '/nix/store/30ndfndalbxdj531491z2hmv5shlxpqf-ocaml-findlib-1.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/n6x93p6449x9mjk1cp4nmy9gy620a3mc-ocaml4.06.1-biniou-1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/jmx0w29cfbqx1qcm1ywgz1k8al5km4l4-ocaml4.06.1-cmdliner-1.0.4' from 'https://cache.nixos.org'...
copying path '/nix/store/rwkns29l6sf5cirk4309w4wl7m0kvlrb-ocaml4.06.1-jane-street-headers-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/56ny0chbmwy66bgn1if45v5xi0v1szld-ocaml4.06.1-fmt-0.8.5' from 'https://cache.nixos.org'...
copying path '/nix/store/68q0fq66klzs7lgyq8qzr46zql8zxxiv-ocaml4.06.1-num-1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/p6qpm1xjkzyfniccl5z96adz6qz1k32d-ocaml4.06.1-ocaml-compiler-libs-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/39fqk0prf5q850y9w349v54lss0yxngz-ocaml4.06.1-octavius-0.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/4y7xrmwlrlv70jdsyabrgcq2ckz2y1c9-ocaml4.06.1-ppx_derivers-1.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/hhj7n94wpw5kzclswr59amvzb5j83cd8-ocaml4.06.1-ppx_tools-5.1+4.06.0' from 'https://cache.nixos.org'...
copying path '/nix/store/s4fhyxkp19zs9p2491almwrh945fh6vz-ocaml4.06.1-ocaml-migrate-parsetree-1.4.0' from 'https://cache.nixos.org'...
copying path '/nix/store/cc2sxfmwrr9z7ikmzlbpj7qi95ffwy22-ocaml4.06.1-re-1.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/35shxf6l73xclcigk7ipmdsb7pkm4zrv-ocaml4.06.1-ppx_deriving-4.4' from 'https://cache.nixos.org'...
copying path '/nix/store/9zqavsdv0svbpm17c5y9nfak50yhj3m9-ocaml4.06.1-sexplib0-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/yyr024w5gkszx8h6c74h5qqc4qka8wqm-ocamlbuild-0.14.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8xnm4sckflrz0rw2p134cizsq0izz7j4-ocaml4.06.1-base-0.11.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xp3qbw99z441a895cf9ddzlbdwkzs744-cppo-1.6.5' from 'https://cache.nixos.org'...
copying path '/nix/store/bkzgq2x7mcdgrcdd7f1r046q6pf6sa14-ocaml4.06.1-parsexp-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/cjj70577z9jn21av21qp4mkh7znmk658-ocaml4.06.1-stdio-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/kpascnw5k8dghqvnzcib7l4zkjycgkbk-ocaml4.06.1-sexplib-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/nhbdlnnfp9nyyqx2cb2hmbqf2rw2gw75-ocaml4.06.1-configurator-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/bmxpb0q0pmmcfb4svpbnlpx54yxbhw88-ocaml4.06.1-ppxlib-0.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/579ayaay4axln9la00wgjk7b5c0bsa1a-ocaml4.06.1-typerep-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1aafgvnvbqjfdfm899fcvq6dnnlrsvb3-ocaml4.06.1-fieldslib-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/gwbkj37spq5lzbm4ylbw70jjv8v4xa9m-ocaml4.06.1-ppx_compare-0.11.1' from 'https://cache.nixos.org'...
copying path '/nix/store/2na9p0gp034yksbsvis8n4laqwvkvd30-ocaml4.06.1-ppx_enumerate-0.11.1' from 'https://cache.nixos.org'...
copying path '/nix/store/hcqsmarqxdsba17g2q1876nwgav50w27-ocaml4.06.1-ppx_fields_conv-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8lncmrm0jg8w9mwyrpfsf57v6kf7b6k6-ocaml4.06.1-ppx_here-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8ywgdknsjmipk5yx70fkp7qibpqc36sy-ocaml4.06.1-ppx_inline_test-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/nyynwzjhn6gvbhw388vxza99zxgmslpz-ocaml4.06.1-ppx_fail-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/njangkkjjy489xi5yi2p451x1hvvkr7x-ocaml4.06.1-ppx_bench-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/79wb7swnxhjv9mrq7xc0pmpnghl6ci0w-ocaml4.06.1-ppx_js_style-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1gzhbd2xka684il4a83817rgvs2grxsr-ocaml4.06.1-ppx_let-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/mcdl2lj1y11pp2707hkprrj9qb1k2f4s-ocaml4.06.1-ppx_optcomp-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/skmk59b6vjz1nqmgwdbrc57mwk1n0y1m-ocaml4.06.1-ppx_optional-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/9cy996i44niiixsxa01si1h1pngz8d3q-ocaml4.06.1-ppx_pipebang-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/sv3rjwwywakqfqhck9ahc8if76n4q4vy-ocaml4.06.1-ppx_sexp_conv-0.11.2' from 'https://cache.nixos.org'...
copying path '/nix/store/71db21gvdjzk56bg1ib8rm4rm0v5xyj1-ocaml4.06.1-ppx_typerep_conv-0.11.1' from 'https://cache.nixos.org'...
copying path '/nix/store/al9wvh49py92x74anksxj4lx8i2akr27-ocaml4.06.1-ppx_assert-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/lka3agfhrzbwjvnvwwlgivf8ziii3l1l-ocaml4.06.1-ppx_custom_printf-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/qrzhglvy17ma4i57bs24lznazpj6q1bw-ocaml4.06.1-ppx_hash-0.11.1' from 'https://cache.nixos.org'...
copying path '/nix/store/b2lwgm8vpagq5b6lkf7np0bmqa1064l6-ocaml4.06.1-ppx_sexp_message-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/2ljqj4jqslwhba081ckb5s03w7nva7x5-ocaml4.06.1-ppx_base-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/47fx6lckin93l99ccksbmh2zjvyvlgpm-ocaml4.06.1-ppx_sexp_value-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/qkvkvyhrdcdwz5x57bqcvwmaixmsjp93-ocaml4.06.1-variantslib-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/amk8gl1gl0fsb4vdxplb8mbv1ii7ppkd-ocaml4.06.1-yojson-1.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/wf80k5k5pkgm3012qak3gcbm1xadfdn1-ocaml4.06.1-ppx_expect-0.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/l67p9dndh55nmxkipvjhq33bjjy0xyp4-ocaml4.06.1-ppx_variants_conv-0.11.1' from 'https://cache.nixos.org'...
building '/nix/store/0hny16g8gk9kc8908krrca9w2ri630yc-ocaml4.06.1-stdlib-shims-0.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/440vpi5xx9jsq8hc3k5l3qsw37yy9xwd-stdlib-shims-0.1.0.tbz
source root is stdlib-shims-0.1.0
setting SOURCE_DATE_EPOCH to timestamp 1550591823 of file stdlib-shims-0.1.0/test/test.ml
patching sources
configuring
no configure script, doing nothing
building
ocamlopt src/stdlib_shims.cmxs (exit 2)
(cd _build/default && /nix/store/x0rb9yi0ldlp5a8pw3hlxsjq4fwycv7m-ocaml-4.06.1/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src -o src/stdlib_shims.cmxs src/stdlib_shims.cmxa)
ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
File "caml_startup", line 1:
Error: Error during linking
builder for '/nix/store/0hny16g8gk9kc8908krrca9w2ri630yc-ocaml4.06.1-stdlib-shims-0.1.0.drv' failed with exit code 1
cannot build derivation '/nix/store/y7c8clvp93pc4i0yfzrgjhdcd439k9pp-ocaml4.06.1-stanc-2.23.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/y7c8clvp93pc4i0yfzrgjhdcd439k9pp-ocaml4.06.1-stanc-2.23.0.drv' failed |
I am guessing you are using Big Sur. There seems to be nix issue with it right now: NixOS/nixpkgs#91748, NixOS/nixpkgs#104580 There seems to be some fix but I am not sure if it would fix your case. If you want, I can run those commands and push to the branch. All the manual work is done. |
Yes and yes. I'm on big sur. Now, I'm trying the Opam+Make+Dune route. But, please go ahead and push. ltgm for the next release :) |
dune runtest & promote
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Will wait for the Math PR to be merged and that a docs PR is at least open.
No description provided.