Closed pkubaj closed 1 year ago
I can't reproduce the issue because I don't have a powerpc machine, but I'm a bit suspicious about an issue I found. I pushed a fix in the bugfix branch. Let's see if that helps!
Indeed, now it builds, although there's one warning remaining:
src/ppc/ppc.c:117:5: warning: extension used [-Wlanguage-extension-token]
asm ("mfpvr %0"
^
1 warning generated.
Right, I disabled that warning in the Makefile for ppc compilation. Give it a try again - hopefully, it'll compile seamlessly.
Thank you, now it builds without warnings with clang!
Changes merged into master branch, closing.
I'm in the middle of porting cpufetch to FreeBSD/powerpc*. However, building on FreeBSD fails in peculiar ways. As you may know, FreeBSD uses clang by default and I checked whether it fails the same way on Linux. Turns out it is:
I managed to fix struct cpuInfo-related errors with:
But other errors still remain.
EDIT: the above patch lets cpufetch build successfully and it runs with the same results as with GCC. There are still some warnings remaining.