alcinnz
alcinnz boosted

Hey, Linux people: a LOT of folks are screaming off Windows right now.

Be. Kind. To. Them.

They don't know much yet, so they are going to ask really basic questions. If you're KIND, you might get some to give it a try and stick to it bc they know they can ask for help. If you're unkind, you're showing them using Linux will be worse than Windows. If you can't bring yourself to be kind, then SAY NOTHING. Let others pick up that slack.

#FOSS#FLOSS#OpenSource #Linux#Ubuntu#Debian #LinuxMint

alcinnz
alcinnz boosted

Cross-compiling a #Rust project that has custom build scripts that build C/C++ dependencies is an absolute clusterfuck!

I'm trying to cross-compile a Rust project from #Linux -> #Windows (x86_64-pc-windows-gnu) and I get walls of errors!

Some I could already fix by setting env vars to different compilers (gcc, g++, oh my!), but now I'm stuck. Maybe some missing compiler flags to gcc?

Or could it be related to this?
=> https://stackoverflow.com/a/53635241

#Help #RustLang#CrossCompile#CrossCompilation

Output of the terminal after cross-compiling the whisper-rs crate from Linux to Windows (warning: the output is very long):

  -- Detecting C compiler ABI info - failed
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeDetermineCompilerABI.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Check for working C compiler: /usr/bin/gcc
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Check for working C compiler: /usr/bin/gcc - broken
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Configuring incomplete, errors occurred!

  --- stderr
  ./whisper.cpp/ggml/include/ggml.h:210:10: fatal error: 'stdio.h' file not found
Output of the terminal after cross-compiling the whisper-rs crate from Linux to Windows (warning: the output is very long): -- Detecting C compiler ABI info - failed Called from: [3] /usr/share/cmake-3.28/Modules/CMakeDetermineCompilerABI.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Check for working C compiler: /usr/bin/gcc Called from: [3] /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Check for working C compiler: /usr/bin/gcc - broken Called from: [3] /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Configuring incomplete, errors occurred! --- stderr ./whisper.cpp/ggml/include/ggml.h:210:10: fatal error: 'stdio.h' file not found
alcinnz
alcinnz boosted

A forced update in the middle of a tooth extraction motivated this dentist to switch to Linux exclusively!

"Windows is below the standard of care when it comes to dentistry."

Invidious: https://invidious.nerdvpn.de/watch?v=za1kkEFU4cQ

YouTube: https://www.youtube.com/shorts/za1kkEFU4cQ

#ZenFamilyDental#Dentistry#Dentist #Linux #Windows

The evolution of #linux system administration:

Stage 1:
echo '1' > /proc/sys/net/ipv4/ip_forward

Stage 2:
sysctl -w net.ipv4.ip_forward=1

Stage 3:
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf

Stage 4:
tuned_custom_profiles:
- name: 'docker'
sections:
- name: sysctl
params:
- option: net.ipv4.ip_forward
value: 1

Stage 5:
"Dear copilot, tell ansible to enable ip forwarding."

Stage 5b:
"Dear copilot, tell ansible to enable ip forwarding, please."

Stage 6:
"Create a cronjob that does "echo '1' > /proc/sys/net/ipv4/ip_forward" daily."

Cross-compiling a #Rust project that has custom build scripts that build C/C++ dependencies is an absolute clusterfuck!

I'm trying to cross-compile a Rust project from #Linux -> #Windows (x86_64-pc-windows-gnu) and I get walls of errors!

Some I could already fix by setting env vars to different compilers (gcc, g++, oh my!), but now I'm stuck. Maybe some missing compiler flags to gcc?

Or could it be related to this?
=> https://stackoverflow.com/a/53635241

#Help #RustLang#CrossCompile#CrossCompilation

Output of the terminal after cross-compiling the whisper-rs crate from Linux to Windows (warning: the output is very long):

  -- Detecting C compiler ABI info - failed
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeDetermineCompilerABI.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Check for working C compiler: /usr/bin/gcc
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Check for working C compiler: /usr/bin/gcc - broken
     Called from: [3]   /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake
                  [2]   /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake
                  [1]   /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt
  -- Configuring incomplete, errors occurred!

  --- stderr
  ./whisper.cpp/ggml/include/ggml.h:210:10: fatal error: 'stdio.h' file not found
Output of the terminal after cross-compiling the whisper-rs crate from Linux to Windows (warning: the output is very long): -- Detecting C compiler ABI info - failed Called from: [3] /usr/share/cmake-3.28/Modules/CMakeDetermineCompilerABI.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Check for working C compiler: /usr/bin/gcc Called from: [3] /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Check for working C compiler: /usr/bin/gcc - broken Called from: [3] /usr/share/cmake-3.28/Modules/CMakeTestCompilerCommon.cmake [2] /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake [1] /home/jan/Dev-Projects/repos/talky/target/x86_64-pc-windows-gnu/release/build/whisper-rs-sys-90a1c9a45fb90ba6/out/whisper.cpp/CMakeLists.txt -- Configuring incomplete, errors occurred! --- stderr ./whisper.cpp/ggml/include/ggml.h:210:10: fatal error: 'stdio.h' file not found

Every time there's a new version of #CopyQ I update it in hopes that it will have started working again now. And the answer is always no. It starts, but does not pick up anything I copy. It's been like this for a long time, across distros. I suspect it's got something to do with #Wayland? But I see Wayland mentioned in the changelog as if it works? Makes me sad, CopyQ is such an incredible tool. Is there anything similarly powerful for #Gnome? #Linux #LinuxApps

The evolution of #linux system administration:

Stage 1:
echo '1' > /proc/sys/net/ipv4/ip_forward

Stage 2:
sysctl -w net.ipv4.ip_forward=1

Stage 3:
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf

Stage 4:
tuned_custom_profiles:
- name: 'docker'
sections:
- name: sysctl
params:
- option: net.ipv4.ip_forward
value: 1

Stage 5:
"Dear copilot, tell ansible to enable ip forwarding."

Stage 5b:
"Dear copilot, tell ansible to enable ip forwarding, please."

Stage 6:
"Create a cronjob that does "echo '1' > /proc/sys/net/ipv4/ip_forward" daily."

@mikebabcock Hey I wasn't trying to suggest that computers were better back then, I was suggesting that it was harder for them to be good!

Though from my reading there's a bit of a distinction to be had with Amiga here: The IBM PCs Microsoft was targeting barely had a graphics chip, Apple omitted them entirely initially.
Amiga had more acceleration.

@alcinnz sorry my response was probably too terse. I just meant that we have rose coloured glasses until we actually boot old hardware and go "oh yeah, the gui sucked on these."
(As someone who ran various non-Windows GUIs before succumbing to Windows 3.1 then 95, 98 and finally X11 on Linux)
See also: https://en.wikipedia.org/wiki/TSX-32
#OperatingSystem #OS #Linux #Windows#GUI#Computing#oldPerson