Development Essentials (C/Rust)

Hi All,

I’ve just moved to OMLx, and tried to continue some Rust development. However, it would apear I’m missing the essential libraries necessary for C or Rust development. (Coming from a distribution where these where included)

I’ve had a look around and I think I need something similar to build-essentials (Debian) or base-devel (Arch) considering not even make is installed?

2[robertfry@Rocket scratch]$ which make
which: no make in (/home/robertfry/.local/share/cargo/bin:/usr/local/bin:/usr/bin:/usr/games:/usr/local/games)

2[robertfry@Rocket scratch] ()$ cargo build
   Compiling scratch v0.1.0 (/tmp/tmp.bnPFDIx3Ou/scratch)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/robertfry/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/robertfry/.local/share/cargo/bin:/usr/local/bin:/usr/bin:/usr/games:/usr/local/games" VSLANG="1033" "cc" "-m64" "/tmp/rustcTKUVgh/symbols.o" "<7 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/robertfry/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-6273572f18644c87.rlib,libpanic_unwind-267e668abf74a283.rlib,libobject-ec6154ccae37a33e.rlib,libmemchr-500edd5521c440d4.rlib,libaddr2line-86d8d9428792e8ef.rlib,libgimli-10f06487503767c2.rlib,librustc_demangle-6a38424de1e5bca5.rlib,libstd_detect-de9763ea1c19dca3.rlib,libhashbrown-a7f5bb2f736d3c49.rlib,librustc_std_workspace_alloc-7e368919bdc4a44c.rlib,libminiz_oxide-376454d49910c786.rlib,libadler-fa99f5692b5dce85.rlib,libunwind-91cafdaf16f7fe40.rlib,libcfg_if-f7ee3f1ea78d9dae.rlib,liblibc-d3a35665f881365a.rlib,liballoc-715bc629a88bca60.rlib,librustc_std_workspace_core-ae70165d1278cff7.rlib,libcore-406129d0e3fbc101.rlib,libcompiler_builtins-1af05515ab19524a.rlib}" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/robertfry/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/tmp.bnPFDIx3Ou/scratch/target/debug/deps/scratch-a15ec318b4c784c2" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld.lld: error: cannot open Scrt1.o: No such file or directory
          ld.lld: error: cannot open crti.o: No such file or directory
          ld.lld: error: unable to find library -lutil
          ld.lld: error: unable to find library -lrt
          ld.lld: error: unable to find library -lpthread
          ld.lld: error: unable to find library -lm
          ld.lld: error: unable to find library -ldl
          ld.lld: error: unable to find library -lc
          ld.lld: error: cannot open crtn.o: No such file or directory
          cc: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `scratch` (bin "scratch") due to 1 previous error

I’d rather not have to install each of these dependencies themselves. Is there a package group (or the like) which contains all necessary C/Rust development libraries?

1 Like

Next time, please search the forum like the banner at the top of the forum says to.

1 Like

Whoa, Nellie! We can gently remind new members to use search. No need to get sharp or prickly with this well-worded thread.

1 Like

Uh! I don’t see anything unkind in: Next time, please search the forum
Is it?
Hope not, as it would mean I myself was unkind many times while encouraging the users to use the Search forum function. So apologizes.

1 Like

Thanks for the reply. I should have seen that when I was searching :slight_smile:

1 Like

One further while this thread is still going…

Is there a package group (I assume these exist in dnf) which provides additional

libopenssl-devel
libasound-devel
libudev-devel

So far, I’ve installed these manually. But it would be nice if there’s a group for all linux development libraries.

Hope this doesn’t clutter the thread

1 Like

32 bit libs start with lib and 64 bit libs start with lib64. If you need the devel variants and want to package I would suggest using pkgs[dot]org as a reference since it will have a Provides section that includes things like cmake() or pkgconfig() so the specs can be more maintainable.

I would appreciate it if you would not tone police people here. You have no idea what someone’s intentions are based on text on a screen. No one here is your therapist or your parent and we will not be moving obstacles and adversities from your path in life, and no honor is found in white knighting especially on the back of something that is entirely your own misunderstanding.

2 Likes

You have not been doing anything wrong. It is completely reasonable for a project to ask their users to do some reading to see if their issues have been solved in their documentation or forum. In any other project, users search the internet like crazy trying to find answers to issues. This is no different. Anyone offended by that is being disingenuous at best, and an authoritarian at worst. There is no place for that here.

2 Likes

Ok let’s agree on there has been a big misunderstanding and let all go… :wink:
It happens.
:heart:

2 Likes

When in doubt, assume no ill intent was intended.

1 Like

How about we chuck this up to non native english speakers vs native english speakers…ie…missunderstanding

1 Like

Last thing I will say on this, “Woah Nellie,” is a US expression. So, the person is a native English speaker.

I am merely defending myself from someone acting in bad faith that had absolutely nothing pertinent to offer this discussion. You don’t tell me or anyone else how they should communicate based on a standard the person probably does not even subscribe to. I will not be told how to speak by anyone.

If this much common sense is not recognized by someone that was not even a part of the conversation then I have to seriously question their motives.

3 Likes

I was defending you defending yourself …see miss understanding. :rofl:

2 Likes