Hah! I actually maintained Arch Linux packages for LinuxCNC in the AUR! I 
switched to Gentoo years ago and never looked back!

So QtPyVCP can find everything through pip if need be?

As for Clang vs. GCC, AMD uses an internal fork of Clang as their own compiler 
(AOCC) and I actually have an ebuild for that as well. Problem is, AMD builds 
AOCC against an ancient version of Glibc and they link to libomp (LLVM's OpenMP 
library) and libc++ all stupid.. Building Clang from source actually works out 
better for me as nothing is under-linked compared to their compiler. I managed 
to build 99% of my Gentoo system with AOCC but I had to get crafty with 
CFLAGS/CXXFLAGS/LDFLAGS with so many packages that I eventually realized it was 
too much effort with not really much to gain. LLVM/Clang 14.0.6 probably has a 
lot of the performance fixes for Ryzen from AOCC included, and if not, it'll 
probably land in 17.0.0. My Gentoo systems are so hardened though (kernel and 
userland) that any performance benefit from AOCC specifically would probably be 
outweighed by my security enhancements..

The LLVM stack also follows a more modern code base, and a much easier to use 
and better build system thanks to CMake. If it compiles and runs with Clang, 
Clang it is! AMD, OpenBSD, FreeBSD and Android all use Clang btw, and the 
OpenBSD devs especially know what they're doing.

List of packages I've discovered that I've personally discovered with Clang:

Anything with gcc.conf next to it has problems:

https://github.com/NTULINUX/gentoo_backup/blob/master/etc/portage/package.env

Then for libsoundtouch, I just added `-fopenmp=libomp` to CXXFLAGS to solve a 
problem compiling Audacity with Clang.

Only problem right now is that my LinuxCNC Ryzen test rig doesn't detect the 
parallel port card. I'm going to try a few things with the PCI stack and IOMMU 
to try and get it sorted out. I don't expect this to be a big issue unless 
BIOS/UEFI is just too dumb to recognize it.

I appreciate your interest in this project!

Alec


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to