roblourens / vscode-ripgrep

Downloads the ripgrep binary shipped in VS Code
Other
14 stars 13 forks source link

support for vscode-ripgrep on ppc64le architecture #17

Closed vibhutisawant closed 5 years ago

vibhutisawant commented 6 years ago

vscode-ripgrep is a named yarn dependency in the theia codebase(https://github.com/theia-ide/theia). For ppc64le the yarn install fails because the yarn/npm package is not available.

The following warnings are encountered:

warning monaco-languageclient@0.9.0: The engine "vscode" appears to be invalid.
warning vscode-base-languageclient@4.4.0: The engine "vscode" appears to be invalid.

The workaround we have now is to install rust from https://static.rust-lang.org/dist then use its package manager 'cargo' to install ripgrep.

Is it possible to provide support for vscode-ripgrep npm package on ppc64le architecture? Let us know if any more information is needed.

roblourens commented 6 years ago

I'm happy to publish it if you can help me figure out what prepreqs need to be installed to build it, and what target to use in this script https://github.com/roblourens/vscode-ripgrep/blob/master/tools/build-linux.sh

vibhutisawant commented 6 years ago

Hi @roblourens Thanks for the quick response.I shall get back to you with the prerequisites needed and the target that needs to be provided in the build-linux.sh script.

vibhutisawant commented 6 years ago

Hi @roblourens The target platform is

--target powerpc64le-unknown-linux-gnu

I cloned the ripgrep repository (https://github.com/roblourens/ripgrep) ,and tried the script (https://github.com/roblourens/vscode-ripgrep/blob/master/tools/build-linux.sh) with target as powerpc64le-unknown-linux-gnu,and it worked fine.

PFA the below image for reference: vscode-ripgrep issue

Could you please help in guiding in the next steps for having vscode-ripgrep for ppc64le via npm (https://www.npmjs.com/package/vscode-ripgrep)

vibhutisawant commented 6 years ago

Hi @roblourens Have we provided you with all the necessary details? Kindly guide us with further steps .

roblourens commented 6 years ago

Yeah I have to test this, will try it this week.

roblourens commented 6 years ago

This is what I get. Maybe I'm missing some dependency, any idea what it might be? I'm cross-compiling, not on a ppc machine.

What sort of device are you building for that has a ppc processor?

 error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg1-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg10-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg11-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg12-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg13-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg14-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg15-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg2-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg3-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg4-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg5-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg6-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg7-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg8-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg9-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o" "-o" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps" "-L" "/home/parallels/code/ripgrep/target/release/deps" "-L" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libnum_cpus-20725e4687b95e7c.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libignore-271b960b3276378e.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libwalkdir-78b9a2b85cf9c9b9.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libcrossbeam_channel-1ac6afdfe3994247.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libparking_lot-c4ba5af220523172.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libparking_lot_core-3d2079f70cb8549f.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libsmallvec-ca4da36924d77ae9.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libunreachable-cfd108945f759042.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libvoid-1cd0d765f106cf2d.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/liblock_api-9c871e2dc152075c.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libowning_ref-64502cef8f75ea9f.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libstable_deref_trait-458041c13fd13175.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/librand-2bd2fa3345d72f79.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/librand_core-727da03daff649ff.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libcrossbeam_epoch-e6742e7fd5c0c286.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libscopeguard-b312575855df857a.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libmemoffset-244eec66f149c9a6.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libcrossbeam_utils-77cec9afdb25ada6.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libarrayvec-2341df1e04b89ced.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libnodrop-8281bb8b5063397c.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep-52463703a761fd05.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep_regex-66efb619f39d0572.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep_printer-69a39c16ec39bcef.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libserde_json-6219591390811848.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libitoa-0e75c729423c95e6.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libryu-13e657ba04b3b5f1.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libserde-4ef3e412e2cbddb1.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep_searcher-51f5ff59da487436.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libmemmap-e10a56c91ae8e5a7.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libencoding_rs_io-588c64717e90ee1a.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libencoding_rs-df8566c53a7e49f6.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libbytecount-5c1b304c8b32e74c.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libbase64-819fe2d8a71aabfa.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libsafemem-6ae0bcdfd87c4f36.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libbyteorder-95d5a69e5b218b29.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep_matcher-0c0af2f33f837724.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libgrep_cli-5a5580fbbd9e5c20.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libtermcolor-af5dac9c819dba42.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libsame_file-b82d0545c54a77e0.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libglobset-21822e4bd1144c03.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libregex-fd53271b4688c6f8.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libutf8_ranges-43833bc9ac84fc66.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libregex_syntax-f8f9c134e7d03f9d.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libucd_util-0c2aa1271a629529.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libthread_local-0af39141d88d6101.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/liblazy_static-502582482d438b50.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/liblog-dcd4ba9ac663b9cb.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libcfg_if-ded058bb2b809d21.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libfnv-dd1640813fbc6276.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libaho_corasick-e49adb5790a105be.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libmemchr-6235d96af839e42d.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libatty-f8887028952e4d13.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/liblibc-ae42fc07ce8b7ad3.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libclap-2772f4e986a8e542.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libtextwrap-edf54646181e7a5b.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libunicode_width-092fea956428372c.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libstrsim-e6b45f738b043933.rlib" "/home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/libbitflags-841c8f76d01cae03.rlib" "-Wl,--start-group" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libstd-c4f338a0e519f5e0.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libpanic_unwind-e3cd3f44688b2d97.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libunwind-a0ddde720c2c46c5.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/liballoc_system-9c41ffe739844496.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/liblibc-af766b046896c123.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/liballoc-00b776688b98de66.rlib" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libcore-d05a4396ceff8bc8.rlib" "-Wl,--end-group" "/home/parallels/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/powerpc64le-unknown-linux-gnu/lib/libcompiler_builtins-fe16a4dcdcd95bab.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /usr/bin/ld: /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: Relocations in generic ELF (EM: 21)
          /home/parallels/code/ripgrep/target/powerpc64le-unknown-linux-gnu/release/deps/rg-02e25685562681b0.rg0-ee7e7c50326dfdd455e0d77420debcfb.rs.rcgu.o: error adding symbols: File in wrong format
          collect2: error: ld returned 1 exit status
ghatwala commented 6 years ago

@roblourens - Am part of vibhuti's team . She had executed above steps successfully on ppc64le vm running ubuntu 18.04.

--- regarding access to a power VM.

  1. There is free power infra available intended for open source projects at Oregon state universitry ( OSU ) - http://osuosl.org/services/powerdev/request_hosting/ . Could you please fill this form . Please mention - IBM advocate as "Gerrit Huizenga" for approval sake. Once access is provided to a power (ppc64le) vm , please try out the same steps as above on that power vm.

--regarding cross-compilation

  1. We would like to try out the above cross compilation on a intel x86 and we are following the steps here - https://developer.ibm.com/linuxonpower/advance-toolchain/advtool-compiler/ to set up cross compilation . Could you please share us the build steps which you have followed giving above errors ?
ghatwala commented 6 years ago

@roblourens - any updates on above ?

ghatwala commented 5 years ago

@roblourens - do you have any updates for us on above ?

roblourens commented 5 years ago

Are you successfully using the cross compilation steps from intel? It's not clear whether you've used those or if it's just some page you found. I need steps for how to cross compile because I'm not going to borrow a VM from a university.

ghatwala commented 5 years ago

@roblourens - we were compiling this on a power vm , however as mentioned above cross compilation is the way forward on this. Can you please share the steps which you used to cross compile this package on a Intel machine . We will continue to look at cross compilation on Intel hereon to achieve our goal .. " getting vscode-ripgrep via npm for ppc64le "

roblourens commented 5 years ago

I haven't successfully cross compiled this, I'm asking for advice on how to do that :)

ghatwala commented 5 years ago

@roblourens - Just had a question from end validation perspective . 1) Once you have successfully cross-compiled vscode-ripgrep on Intel . Wanted to know "how is that this cross compiled package be validated at your end , without you having a power machine to test " ?

roblourens commented 5 years ago

I won't be able to validate it. Since I don't officially support that build, I would leave it up to any interested users to report issues.

vibhutisawant commented 5 years ago

Hi @roblourens

PFA the below file with the steps needed to cross compile viscode ripgrep binary on x86 architecture. Steps for cross compilation.txt

Please let us know in case you need any further details.

ghatwala commented 5 years ago

@roblourens - requesting you to try above steps shared and upload the ppc64le binary once successful.

roblourens commented 5 years ago

When I run wget ftp://ftp.unicamp.br/pub/linuxpatch/toolchain/at/ubuntu/dists/trusty/6976a827.gpg.key, I get ==> PASV ... couldn't connect to 143.106.10.149 port 46486: Connection refused

ghatwala commented 5 years ago

@roblourens - i just tried to open this url on browser and it opens successfully - ftp://ftp.unicamp.br/ and also tried wget too. The IP - 143.106.10.149 , we are able to ping as well.

# wget ftp://ftp.unicamp.br/pub/linuxpatch/toolchain/at/ubuntu/dists/trusty/6976a827.gpg.key
--2019-01-16 23:47:41--  ftp://ftp.unicamp.br/pub/linuxpatch/toolchain/at/ubuntu/dists/trusty/6976a827.gpg.key
           => â6976a827.gpg.keyâ
Resolving ftp.unicamp.br (ftp.unicamp.br)... **143.106.10.149**
Connecting to ftp.unicamp.br (ftp.unicamp.br)|**143.106.10.149**|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linuxpatch/toolchain/at/ubuntu/dists/trusty ... done.
==> SIZE 6976a827.gpg.key ... 3067
==> PASV ... done.    ==> RETR 6976a827.gpg.key ... done.
Length: 3067 (3.0K) (unauthoritative)

6976a827.gpg.key                     100%[===================================================================>]   3.00K  7.01KB/s    in 0.4s

2019-01-16 23:47:48 (7.01 KB/s) - â6976a827.gpg.keyâ saved [3067]

# ping 143.106.10.149
PING 143.106.10.149 (143.106.10.149) 56(84) bytes of data.
64 bytes from 143.106.10.149: icmp_seq=1 ttl=47 time=445 ms
64 bytes from 143.106.10.149: icmp_seq=2 ttl=47 time=528 ms
64 bytes from 143.106.10.149: icmp_seq=3 ttl=47 time=445 ms

Could you please try again ?

roblourens commented 5 years ago

Now it worked :) It failed several times before.

ghatwala commented 5 years ago

@roblourens - do let us know once you've run through above steps successfully and created a cross compiled power binary + pushed somewhere ... we are kind of waiting on having "vscode-ripgrep" installed using "npm" command on ppc64le similar to x86 arch.

roblourens commented 5 years ago

Thanks for the detailed directions. Sorry it took so long. Since I don't have access to a ppc machine, please quickly verify that this binary works:

ripgrep-linux-powerpc64le.zip

If so I will upload it to the vscode-ripgrep package right away.

ghatwala commented 5 years ago

@roblourens -its working..

root@c49f8cc711d2:/# arch
ppc64le

root@c49f8cc711d2:/# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

root@c49f8cc711d2:/# wget https://github.com/roblourens/vscode-ripgrep/files/2769834/ripgrep-linux-powerpc64le.zip
--2019-01-17 18:17:55--  https://github.com/roblourens/vscode-ripgrep/files/2769834/ripgrep-linux-powerpc64le.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-repository-file-5c1aeb.s3.amazonaws.com/84863778/2769834?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190117T181756Z&X-Amz-Expires=300&X-Amz-Signature=e32fc2cf7a37a3a23bbf7ca2e5a5852395613042f651a2ee757c22b7a1673c48&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3Bfilename%3Dripgrep-linux-powerpc64le.zip&response-content-type=application%2Fzip [following]
--2019-01-17 18:17:56--  https://github-production-repository-file-5c1aeb.s3.amazonaws.com/84863778/2769834?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190117T181756Z&X-Amz-Expires=300&X-Amz-Signature=e32fc2cf7a37a3a23bbf7ca2e5a5852395613042f651a2ee757c22b7a1673c48&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3Bfilename%3Dripgrep-linux-powerpc64le.zip&response-content-type=application%2Fzip
Resolving github-production-repository-file-5c1aeb.s3.amazonaws.com (github-production-repository-file-5c1aeb.s3.amazonaws.com)... 52.216.85.35
Connecting to github-production-repository-file-5c1aeb.s3.amazonaws.com (github-production-repository-file-5c1aeb.s3.amazonaws.com)|52.216.85.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2039409 (1.9M) [application/zip]
Saving to: 'ripgrep-linux-powerpc64le.zip'

ripgrep-linux-powerpc64le.zip      100%[=============================================================>]   1.94M  12.7MB/s    in 0.2s

2019-01-17 18:17:56 (12.7 MB/s) - 'ripgrep-linux-powerpc64le.zip' saved [2039409/2039409]

root@c49f8cc711d2:/# unzip ripgrep-linux-powerpc64le.zip
Archive:  ripgrep-linux-powerpc64le.zip
  inflating: rg

root@c49f8cc711d2:/# file rg
rg: ELF 64-bit LSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /opt/at10.0/lib64/ld64.so.2, for GNU/Linux 3.13.0, BuildID[sha1]=7d733ced6c2c0572b6d24922bbe648261027478c, stripped

root@c49f8cc711d2:/# ./rg --version
ripgrep 0.10.0 (rev 8a7db1a918)
-SIMD -AVX (compiled)

Please go ahead to do the needful.

roblourens commented 5 years ago

Uploaded, please try it.