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

Nix build fails because of undefined reference to `tree_sitter_latex' #302

Closed
malte-v opened this issue Jun 18, 2021 · 5 comments · Fixed by #311
Closed

Nix build fails because of undefined reference to `tree_sitter_latex' #302

malte-v opened this issue Jun 18, 2021 · 5 comments · Fixed by #311
Labels
C-bug Category: This is a bug

Comments

@malte-v
Copy link
Contributor

malte-v commented Jun 18, 2021

Apparently there is some issue with how the tree_sitter_latex library is linked.

Reproduction steps

➜  ~ nix build github:helix-editor/helix
error: builder for '/nix/store/27bwx26naszs4l24241faxc5rzxyr9bx-rust_helix-term-0.2.0.drv' failed with exit code 1;
       last 10 log lines:
       > error: linking with `cc` failed: exit code: 1
       >   |
       >   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/nix/store/9r892dfjanmz3dbx4yxb8jcivf1cbdf3-rust-default-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "target/bin/hx.hx.7rcbfp3g-cgu.0.rcgu.o" "target/bin/hx.hx.7rcbfp3g-cgu.1.rcgu.o" "target/bin/hx.hx.7rcbfp3g-cgu.2.rcgu.o" "target/bin/hx.hx.7rcbfp3g-cgu.3.rcgu.o" "-o" "target/bin/hx" "target/bin/hx.gbh6mjngrrqxa9s.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "target/deps" "-L" "/nix/store/xz2mjfx622n9khjjcsjjnvjim49lb3kl-rust_helix-syntax-0.2.0-lib/lib/helix-syntax.out" "-L" "/nix/store/zl0xhalcjhykhss2ajkfcccfjx806p7h-rust_tree-sitter-0.19.5-lib/lib/tree-sitter.out" "-L" "/nix/store/xz2mjfx622n9khjjcsjjnvjim49lb3kl-rust_helix-syntax-0.2.0-lib/lib/helix-syntax.out" "-L" "/nix/store/zl0xhalcjhykhss2ajkfcccfjx806p7h-rust_tree-sitter-0.19.5-lib/lib/tree-sitter.out" "-L" "/nix/store/9r892dfjanmz3dbx4yxb8jcivf1cbdf3-rust-default-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-ltree-sitter" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-agda-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-agda-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-bash-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-bash-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-c-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-c-sharp-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-cpp-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-cpp-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-css-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-elixir-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-elixir-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-go-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-html-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-html-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-java-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-javascript-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-json-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-julia-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-nix-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-php-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-php-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-python-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-python-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-ruby-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-ruby-cpp" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-rust-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-scala-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-swift-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-toml-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-tsx-c" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-ltree-sitter-typescript-c" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lstdc++" "-Wl,-Bstatic" "/nix/store/6asbmilrgpssny7nlajxbvbkymvvm7v5-rust_chrono-0.4.19-lib/lib/libchrono-ff941ea657.rlib" "/nix/store/xyb0j3akilr1xx5p0rlg77m34j29lnia-rust_num-integer-0.1.44-lib/lib/libnum_integer-08937386d3.rlib" "/nix/store/7ckig7b7w2kc8frhgagniw278g74f1bi-rust_num-traits-0.2.14-lib/lib/libnum_traits-c4523b9f62.rlib" "/nix/store/3pk48dcqz1jwsqgi2bf221by7gs33zr8-rust_fern-0.6.0-lib/lib/libfern-801cde1548.rlib" "/build/source/target/lib/libhelix_term-c12fa50cca.rlib" "/nix/store/4i9jxvzqp9z75zlpxqmdxmdb5g8pgks7-rust_ignore-0.4.18-lib/lib/libignore-c3a4b5f475.rlib" "/nix/store/px9bz2iir5k321j6ihmp44wwl8qj9wwi-rust_crossbeam-utils-0.8.5-lib/lib/libcrossbeam_utils-dccd2ab23e.rlib" "/nix/store/rw0sc8chhpb9hgc3l9s0fhmkxwr2vfc7-rust_lazy_static-1.4.0-lib/lib/liblazy_static-7c83871282.rlib" "/nix/store/7ka9wysnkxvf9gfzjfq1bs49wdypcv22-rust_walkdir-2.3.2-lib/lib/libwalkdir-a9d123b76e.rlib" "/nix/store/fzv557vjg17f5yp52yk7l1b1xa3ln2qj-rust_same-file-1.0.6-lib/lib/libsame_file-79158869c3.rlib" "/nix/store/pvxkqmhxxx04zh2w5r6q5w940fdbkv23-rust_globset-0.4.7-lib/lib/libglobset-46a17ccade.rlib" "/nix/store/82wicbind9428gpjll1ksnxy6hamhk8r-rust_fnv-1.0.7-lib/lib/libfnv-6b7bc73616.rlib" "/nix/store/k7aw7v3zi0mm2a3v6qqyw7ydbyx1qm8j-rust_bstr-0.2.16-lib/lib/libbstr-f07f5bbf5b.rlib" "/nix/store/03z4mz99f7908adm6b3345wb4a0kw5fy-rust_fuzzy-matcher-0.3.7-lib/lib/libfuzzy_matcher-c88a3ac2cb.rlib" "/nix/store/9j9pbk40h8ypzrck3x7faqclj29kq2gn-rust_thread_local-1.1.3-lib/lib/libthread_local-821f91ba24.rlib" "/nix/store/ynqwfwjm00kg4jm971bgd22m334ka30r-rust_pulldown-cmark-0.8.0-lib/lib/libpulldown_cmark-d20dd0a76c.rlib" "/nix/store/pfjibzvdk1l64cmzx9afs7agm1jlapkw-rust_unicase-2.6.0-lib/lib/libunicase-4dc74de130.rlib" "/nix/store/1sjmdvqypvsxy85bzkvdl3h3ispz0z0f-rust_helix-view-0.2.0-lib/lib/libhelix_view-43e870027c.rlib" "/nix/store/1pypq1ah99lqlvp4sgaljgrnmgm0n5if-rust_slotmap-1.0.3-lib/lib/libslotmap-bbdcd86a18.rlib" "/nix/store/758gcrpn568hlcpl32y29mc6jcs7c2z6-rust_helix-tui-0.2.0-lib/lib/libhelix_tui-19db4b27af.rlib" "/nix/store/blj9kq7cm072y6r5hw319h8xnhc2zlvq-rust_cassowary-0.3.0-lib/lib/libcassowary-eefae7081c.rlib" "/nix/store/is973lm0ws8h1j2dz7agm3jzha6x8f56-rust_crossterm-0.20.0-lib/lib/libcrossterm-1d45bdb3cf.rlib" "/nix/store/y2g8fapkmj30kh297llki2af91x5l5j2-rust_signal-hook-mio-0.2.1-lib/lib/libsignal_hook_mio-c4d99993fd.rlib" "/nix/store/afq5hrw1hcihcz35sdb3lvx6agh2vvcj-rust_signal-hook-0.3.9-lib/lib/libsignal_hook-e7c415e2d2.rlib" "/nix/store/qh3mrwmjd736q4yxr5154f43i5xf2mlb-rust_helix-lsp-0.2.0-lib/lib/libhelix_lsp-d059fc9381.rlib" "/nix/store/v7829lycs0pqd2myawx2095bzvvj506v-rust_tokio-stream-0.1.6-lib/lib/libtokio_stream-293c277946.rlib" "/nix/store/5g5l09rshb6dc89p7kgj5niy86s0jdj5-rust_futures-executor-0.3.15-lib/lib/libfutures_executor-a2e978ec5e.rlib" "/nix/store/gyg9769bpcii5qgdipwqr7lqjay8s12v-rust_tokio-1.6.1-lib/lib/libtokio-ddc447e5d0.rlib" "/nix/store/jf3k5la3pqk1lzjq80ri8ladasj57rs1-rust_signal-hook-registry-1.4.0-lib/lib/libsignal_hook_registry-de1929a283.rlib" "/nix/store/fba7jw5aqk617say3whbdncgqsl7q80f-rust_num_cpus-1.13.0-lib/lib/libnum_cpus-c8be748fb6.rlib" "/nix/store/64yzzz2cgb0f08ykxn2632ypn98nwxwr-rust_bytes-1.0.1-lib/lib/libbytes-23f7473b9c.rlib" "/nix/store/yamk8q3i6x34hk98wnyky8c282x9x802-rust_mio-0.7.11-lib/lib/libmio-c1983bf9d8.rlib" "/nix/store/zi4jqnv0ygvsdscf0zxch6hs1rfgdigj-rust_parking_lot-0.11.1-lib/lib/libparking_lot-10d9e5add9.rlib" "/nix/store/jirhvc45f5k65kym7j1f427dr56333ih-rust_parking_lot_core-0.8.3-lib/lib/libparking_lot_core-d10a5e1fc3.rlib" "/nix/store/n2am5syr8h8r2k9g0dqqmqy0i6k3bcvh-rust_lock_api-0.4.4-lib/lib/liblock_api-fe62a80fb1.rlib" "/nix/store/43agqdxna2x0s32gwk4nrffkrxxn5zh1-rust_scopeguard-1.1.0-lib/lib/libscopeguard-173b17b2cf.rlib" "/nix/store/hnn0alwgzw21dap5c4kkzl2pnma8scak-rust_instant-0.1.9-lib/lib/libinstant-ecee121df1.rlib" "/nix/store/kjzxa00p4bqkm9lqjvwr4rfh7v9dw3xx-rust_lsp-types-0.89.2-lib/lib/liblsp_types-061013d6b6.rlib" "/nix/store/aljba1jz9ld4x8lsz7gf6vs204k69ivd-rust_url-2.2.2-lib/lib/liburl-440590df2c.rlib" "/nix/store/gyqwyqai1pmhxg7q4p58v0ki8x265hx9-rust_idna-0.2.3-lib/lib/libidna-fc0354da30.rlib" "/nix/store/dvhn1zqx8pg9xj0v4v990djh6qi3jhd1-rust_unicode-normalization-0.1.19-lib/lib/libunicode_normalization-46827fcdf4.rlib" "/nix/store/ihagy6kkgz9kk64d72z2fd32s5i4x16w-rust_tinyvec-1.2.0-lib/lib/libtinyvec-8a1c628f47.rlib" "/nix/store/qjycxrvdx3kxsk642jvf9zpvrjhlk59g-rust_tinyvec_macros-0.1.0-lib/lib/libtinyvec_macros-a8677416dd.rlib" "/nix/store/4hfvf9rv8z70bzs3hb1dnqqhc67rs7a1-rust_unicode-bidi-0.3.5-lib/lib/libunicode_bidi-9202e61cf8.rlib" "/nix/store/i43sdx1n1i3sawbzr5r8mbbgdkpy06ff-rust_form_urlencoded-1.0.1-lib/lib/libform_urlencoded-67aef5fe06.rlib" "/nix/store/r95yylhj331qyhs35xk9pw9ymmhswlrl-rust_percent-encoding-2.1.0-lib/lib/libpercent_encoding-8ba67070f4.rlib" "/nix/store/fav72xszv4sad38g94cyjzg03l1dcg7z-rust_matches-0.1.8-lib/lib/libmatches-462c41bdd3.rlib" "/nix/store/jsi0y2nszw6axqmwg8y5nh0ammvarv3b-rust_bitflags-1.2.1-lib/lib/libbitflags-fda1e47b34.rlib" "/nix/store/lvmjkkcdmxgv95blzq632ymvmz1mbi57-rust_jsonrpc-core-17.1.0-lib/lib/libjsonrpc_core-39c5256ce5.rlib" "/nix/store/vahw7r6skwks45sydyvdaq0wzi9ni5ii-rust_futures-util-0.3.15-lib/lib/libfutures_util-2b0abba732.rlib" "/nix/store/wjwbjz6hrflzf7byaqxrhqhffk88pqkx-rust_slab-0.4.3-lib/lib/libslab-c3e09cc3ab.rlib" "/nix/store/d49101g404480khb79pm6xyylnfi6www-rust_pin-project-lite-0.2.6-lib/lib/libpin_project_lite-afe5643984.rlib" "/nix/store/is5q6yfihqg5v3z627wigh8mjha1rrml-rust_futures-task-0.3.15-lib/lib/libfutures_task-c955fa9701.rlib" "/nix/store/zqj28dx940fqkhjgav22y2x3ffn1havw-rust_pin-utils-0.1.0-lib/lib/libpin_utils-1e673218aa.rlib" "/nix/store/7xl3a0z8rr0xw0zj29i0a1pvbv2g41ja-rust_futures-core-0.3.15-lib/lib/libfutures_core-dc7bed2255.rlib" "/nix/store/10gnmv8y5zqcx0v9rr0x5bypfqqf0dyd-rust_serde_json-1.0.64-lib/lib/libserde_json-b40fec0229.rlib" "/nix/store/kp087lmi18qyxzw3rh7gg7dca3hwgvl6-rust_ryu-1.0.5-lib/lib/libryu-a372ab3147.rlib" "/nix/store/z4f3cwnfm1wq98ws6c4zf4wz0ydagga1-rust_itoa-0.4.7-lib/lib/libitoa-934bf539af.rlib" "/nix/store/31kyff76lqq7yhcyfnvfp4d5a9zjgj9f-rust_log-0.4.14-lib/lib/liblog-6c2322f9fb.rlib" "/nix/store/34py05365f37q4bd4lddm6sx8ry7mcnq-rust_helix-core-0.2.0-lib/lib/libhelix_core-f1b6c9f961.rlib" "/nix/store/4c3n2avgj4j6v64a6hzdsvpmq73p5a14-rust_toml-0.5.8-lib/lib/libtoml-6bb5c5b417.rlib" "/nix/store/153xhz6y3s3f5mxwqvik3ibfacdi8xqc-rust_rust-embed-5.9.0-lib/lib/librust_embed-aa95712358.rlib" "/nix/store/mnhny26c6k444j3z4jryrnw1bgifhmxd-rust_tendril-0.4.2-lib/lib/libtendril-5bd2c6dc02.rlib" "/nix/store/w8g0qmcizgwkdd5dpgjvsb0k4jljvs7z-rust_utf-8-0.7.6-lib/lib/libutf8-a0926eef4b.rlib" "/nix/store/nw64kb7i5050rknks2bx4hmpcwvqdrfc-rust_futf-0.1.4-lib/lib/libfutf-239fe33ced.rlib" "/nix/store/j45f8p7pxs94svvk2ggnawahfl66spvk-rust_new_debug_unreachable-1.0.4-lib/lib/libdebug_unreachable-5325d58848.rlib" "/nix/store/v8ly39h2hig1sjrg3cmfxiy3f5a3qas6-rust_mac-0.1.1-lib/lib/libmac-9341eb49c3.rlib" "/nix/store/hq2j2dfzpkh6hhncczzag7cq1jm0hkkb-rust_etcetera-0.3.2-lib/lib/libetcetera-99c917d2c5.rlib" "/nix/store/2cqmxlvmn6iygfw8n9p6zfg7f0dir8rz-rust_dirs-next-2.0.0-lib/lib/libdirs_next-a616f22dca.rlib" "/nix/store/mkdh9znn5fw2k8v2mlyjz0rl0xalvykk-rust_dirs-sys-next-0.1.2-lib/lib/libdirs_sys_next-5b7e20d3ff.rlib" "/nix/store/8ikhbwqm8q7lvqn6ffd2na0gfjb86l6a-rust_libc-0.2.95-lib/lib/liblibc-6725afbd4a.rlib" "/nix/store/93ssywlbyrv0ms9kzss3pz93lksirjak-rust_thiserror-1.0.25-lib/lib/libthiserror-2de8e1d637.rlib" "/nix/store/nrvsmhs5kjkikj3097cyq4d7c5czfgxd-rust_cfg-if-1.0.0-lib/lib/libcfg_if-11ac80c792.rlib" "/nix/store/xz2mjfx622n9khjjcsjjnvjim49lb3kl-rust_helix-syntax-0.2.0-lib/lib/libhelix_syntax-13cf4858ac.rlib" "/nix/store/zl0xhalcjhykhss2ajkfcccfjx806p7h-rust_tree-sitter-0.19.5-lib/lib/libtree_sitter-8b96f3935d.rlib" "/nix/store/lpm0c0phlcshyfnh5rccrixsbf23pdff-rust_serde-1.0.126-lib/lib/libserde-ae6fff1760.rlib" "/nix/store/mjiac37bny62008d1l3418akdl1lfbhx-rust_unicode-general-category-0.4.0-lib/lib/libunicode_general_category-90af620d6b.rlib" "/nix/store/nmbfs4xc6nq0x9b87hsb17z7p8ccsksg-rust_regex-1.5.4-lib/lib/libregex-76480b0ff0.rlib" "/nix/store/pgdkkfln9ph0jhmz5mjzxcd0r1xr1cc6-rust_aho-corasick-0.7.18-lib/lib/libaho_corasick-f41c5f448c.rlib" "/nix/store/qmjj3kszai3f2s0sxv481fqmz52sbw38-rust_memchr-2.4.0-lib/lib/libmemchr-c7d43c17b2.rlib" "/nix/store/nd3dky5zvrmk9zsvj703gja4addara5v-rust_regex-syntax-0.6.25-lib/lib/libregex_syntax-52823be8f8.rlib" "/nix/store/6dxdirprnzdhp7xkzrilfvkicl7mkxvm-rust_once_cell-1.8.0-lib/lib/libonce_cell-4709da7ee6.rlib" "/nix/store/113b4bh2jz987cn9cbziqfkpijbb1kcg-rust_unicode-width-0.1.8-lib/lib/libunicode_width-e5a951a430.rlib" "/nix/store/98jyb2lagqlp264qqf21aavxgm5gz9mi-rust_unicode-segmentation-1.7.1-lib/lib/libunicode_segmentation-3cc3842bf1.rlib" "/nix/store/ciclkfl9ahnkv0ni14gq9iiq2x48cbc0-rust_ropey-1.3.0-lib/lib/libropey-c87ec20ed7.rlib" "/nix/store/vpkkh3vk9vxqjildlqm45w7dfk70nah2-rust_smallvec-1.6.1-lib/lib/libsmallvec-a5972506df.rlib" "/nix/store/zpy77yz1gmsg88cjg006wl4qgaim357x-rust_anyhow-1.0.41-lib/lib/libanyhow-33f4dcc804.rlib" "-Wl,--start-group" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-0a9489cf400f65e4.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ff5dc44c66f8c479.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-3317c66a83501f9c.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-5d8dec11fc25537d.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3af2a9328550e2a6.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-3092e2ecef0f49f1.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-29b776c021389465.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-e8873bd287db0d28.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-1171b49d77e47426.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c29894d22dc88b51.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-796a7750df3d8218.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-ff7772d803d3e0de.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-dae3eac9cfa44200.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-0fa02f580e987af5.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7f7254233be843ed.rlib" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1395c6db3d116086.rlib" "-Wl,--end-group" "/nix/store/bd1icx58dnxxmlnr0zpy1lcl544hndhq-rust-std-1.52.1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4bd87926720b651.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lstdc++" "-lstdc++" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc"
       >   = note: /nix/store/77i6h1kjpdww9zzpvkmgyym2mz65yff1-binutils-2.35.1/bin/ld: /nix/store/xz2mjfx622n9khjjcsjjnvjim49lb3kl-rust_helix-syntax-0.2.0-lib/lib/libhelix_syntax-13cf4858ac.rlib(helix_syntax-13cf4858ac.helix_syntax.4i6k2skd-cgu.0.rcgu.o): in function `helix_syntax::get_language':
       >           (.text._ZN12helix_syntax12get_language17h36b07cbc0e895f13E+0x64): undefined reference to `tree_sitter_latex'
       >           collect2: error: ld returned 1 exit status
       >
       >
       > error: aborting due to previous error
       >
       For full logs, run 'nix log /nix/store/27bwx26naszs4l24241faxc5rzxyr9bx-rust_helix-term-0.2.0.drv'.
error: 1 dependencies of derivation '/nix/store/2ww2br0gnkcn68lmvn1n71ycg5qc2ikq-rust_helix-term-0.2.0-linked.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6mlc4kcbgkjz12xgrzsvin0ki9r3wmn1-helix-0.2.0.drv' failed to build

Environment

  • Platform: GNU/Linux (NixOS)
  • Helix version: b052223
@malte-v malte-v added the C-bug Category: This is a bug label Jun 18, 2021
@archseer
Copy link
Member

Try wiping the build cache? -latex was added recently and is included as a sub-module: https://github.com/helix-editor/helix/tree/master/helix-syntax/languages

I had to git submodule update --init. Should be a fresh clone+build if using nix though so I'm not quite sure

@malte-v
Copy link
Contributor Author

malte-v commented Jun 19, 2021

The probles is that the helix flake references an older version of itself in order to fetch the submodules. In this case, the rev from flake.lock did not contain the tree-sitter-latex submodule. While a nix flake update would fix this, it's still a very ugly hack. I'll make a PR.

@archseer
Copy link
Member

It's a hack because nix flakes don't see submodules (see more discussion here: #27 (comment)). @nrdxp is trying to land a fix upstream NixOS/nix#4922

@malte-v
Copy link
Contributor Author

malte-v commented Jun 19, 2021

My approch would have been to add the submodules to flake.nix explicitly, but native submodules support in nix flakes would of course be better.

malte-v pushed a commit to malte-v/helix that referenced this issue Jun 19, 2021
@malte-v
Copy link
Contributor Author

malte-v commented Jun 19, 2021

See #311 for a temporary fix.

archseer pushed a commit that referenced this issue Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants