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

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

@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
alcinnz
Cooperativa Tierra Común
alcinnz and 1 other boosted

Reason 10 To Choose Linux 😍

Linux 🐧 is more private, by default

Own and control your data!

Your operating system won't record your key strokes or dictation, collect lists of devices and their Wi-Fi details, or webcams, printers and anything else plugged in and then send that back to Big Tech HQ.

It's possible to avoid data collection altogether, from the start.

With #Linux YOU decide how to share YOUR data.

/10

#EndOf10 #FreeSoftware #OpenSource #Microsoft #Windows #Windows10 #Windows11

Joseph Nuthalapati :fbx:
alcinnz
Joseph Nuthalapati :fbx: and 1 other boosted
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges.

Tux, the penguin mascot of Linux, is visible in the lower right corner.

Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org.

Top right: The title "End Of 10: FOSS Instead Of Toss".

The text on the flyer reads:

"""
Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again?

If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come!

Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux.

Five Reasons To Upgrade To Linux:
1. No New Hardware or License Costs
2. Enhanced Privacy
3. Good for the Planet
4. Community and Pro Support
5. Better User Control
"""
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges. Tux, the penguin mascot of Linux, is visible in the lower right corner. Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org. Top right: The title "End Of 10: FOSS Instead Of Toss". The text on the flyer reads: """ Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again? If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come! Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux. Five Reasons To Upgrade To Linux: 1. No New Hardware or License Costs 2. Enhanced Privacy 3. Good for the Planet 4. Community and Pro Support 5. Better User Control """
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges.

Tux, the penguin mascot of Linux, is visible in the lower right corner.

Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org.

Top right: The title "End Of 10: FOSS Instead Of Toss".

The text on the flyer reads:

"""
Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again?

If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come!

Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux.

Five Reasons To Upgrade To Linux:
1. No New Hardware or License Costs
2. Enhanced Privacy
3. Good for the Planet
4. Community and Pro Support
5. Better User Control
"""
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges. Tux, the penguin mascot of Linux, is visible in the lower right corner. Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org. Top right: The title "End Of 10: FOSS Instead Of Toss". The text on the flyer reads: """ Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again? If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come! Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux. Five Reasons To Upgrade To Linux: 1. No New Hardware or License Costs 2. Enhanced Privacy 3. Good for the Planet 4. Community and Pro Support 5. Better User Control """
Beardy Star Stuff
Alex Akselrod
Beardy Star Stuff and 1 other boosted

Tuesday 15 July 🐧 Linux install parties in #Canada 🇨🇦 and #France 🇫🇷 (all times local)!

* #VanLUG Linux Link @ #Surrey (#Vancouver#BritishColumbia), 17h30-19h30

https://www.meetup.com/vanlug-bc/events/308064078/

* Rencontre et atelier d'installation de Linux, #Grenoble, 19h-21h

https://www.agendadulibre.org/events/32051

For details and more events worldwide: https://endof10.org/events/

#EndOf10 #FreeSoftware #OpenSource #FOSS #FLOSS #Linux#GNULinux #Microsoft #Windows #Windows10 #Windows11


Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges.

Tux, the penguin mascot of Linux, is visible in the lower right corner.

Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org.

Top right: The title "End Of 10: FOSS Instead Of Toss".

The text on the flyer reads:

"""
Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again?

If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come!

Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux.

Five Reasons To Upgrade To Linux:
1. No New Hardware or License Costs
2. Enhanced Privacy
3. Good for the Planet
4. Community and Pro Support
5. Better User Control
"""
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges. Tux, the penguin mascot of Linux, is visible in the lower right corner. Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org. Top right: The title "End Of 10: FOSS Instead Of Toss". The text on the flyer reads: """ Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again? If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come! Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux. Five Reasons To Upgrade To Linux: 1. No New Hardware or License Costs 2. Enhanced Privacy 3. Good for the Planet 4. Community and Pro Support 5. Better User Control """
alcinnz
alcinnz boosted

New computer with Windows pre-installed? Want to install #Linux 🐧 instead?

You pay for #Windows, even if you don’t use it. That’s unfair and non-transparent.

#Refund4Freedom from @fsfe & @ItaLinuxSociety defends your right to get refunds for unused pre-installed software! 😎

https://refund4freedom.org/

The campaign starts in #Italy 🇮🇹 but will later be extended.

FSFE & ILS support your right to choose your operating system. They also support #EndOf10 to prevent e-waste!

#GetYourWindowsRefund

Tuesday 15 July 🐧 Linux install parties in #Canada 🇨🇦 and #France 🇫🇷 (all times local)!

* #VanLUG Linux Link @ #Surrey (#Vancouver#BritishColumbia), 17h30-19h30

https://www.meetup.com/vanlug-bc/events/308064078/

* Rencontre et atelier d'installation de Linux, #Grenoble, 19h-21h

https://www.agendadulibre.org/events/32051

For details and more events worldwide: https://endof10.org/events/

#EndOf10 #FreeSoftware #OpenSource #FOSS #FLOSS #Linux#GNULinux #Microsoft #Windows #Windows10 #Windows11


Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges.

Tux, the penguin mascot of Linux, is visible in the lower right corner.

Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org.

Top right: The title "End Of 10: FOSS Instead Of Toss".

The text on the flyer reads:

"""
Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again?

If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come!

Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux.

Five Reasons To Upgrade To Linux:
1. No New Hardware or License Costs
2. Enhanced Privacy
3. Good for the Planet
4. Community and Pro Support
5. Better User Control
"""
Flyer for the End Of 10 campaign. The background colors are a mix of blue and purple, with blobs of green on the edges. Tux, the penguin mascot of Linux, is visible in the lower right corner. Top left: End Of 10 logo of four boxes falling over. Under a QR code is the website URL https://endof10.org. Top right: The title "End Of 10: FOSS Instead Of Toss". The text on the flyer reads: """ Support for Windows 10 ends on October 14, 2025. Microsoft wants you to buy a new computer. But what if you make your existing one fast and secure again? If you bought your computer after 2010, there's likely no reason to throw it out. By installing an up-to-date Linux operating system, you can keep using it for years to come! Installing an operating system may sound hard, but you don't have to do it alone. There may be some people in your area who have volunteers to help! Scan the QR code or visit the URL above to find someone to help upgrade your system to Linux. Five Reasons To Upgrade To Linux: 1. No New Hardware or License Costs 2. Enhanced Privacy 3. Good for the Planet 4. Community and Pro Support 5. Better User Control """

Linux is like Ice Cream ❤️

https://www.optoutproject.net/linux-is-like-ice-cream/

Like ice cream, the #Linux operating system 🐧 comes in different flavors.

Imagine you'd never tried ice cream before, wondering -- Do I go for Vanilla, Strawberry or Chocolate?

Yes, the afficionados have their own crazy flavor combinations 🍨 and are proud of them. But you don't have to do that. You can just start with #Vanilla or #Chocolate and that is fine. 🍦

(edited for space)

#EndOf10 #FOSS #FreeSoftware #OpenSource#GNULinux #Windows

Linux is like Ice Cream ❤️

https://www.optoutproject.net/linux-is-like-ice-cream/

Like ice cream, the #Linux operating system 🐧 comes in different flavors.

Imagine you'd never tried ice cream before, wondering -- Do I go for Vanilla, Strawberry or Chocolate?

Yes, the afficionados have their own crazy flavor combinations 🍨 and are proud of them. But you don't have to do that. You can just start with #Vanilla or #Chocolate and that is fine. 🍦

(edited for space)

#EndOf10 #FOSS #FreeSoftware #OpenSource#GNULinux #Windows