devkitPPC cannot find powerpc-eabi-gcc
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
devkitPPC cannot find powerpc-eabi-gcc
I am trying to build my Wii project and the makefile cannot find powerpc-eabi-gcc even though it is in the same directory as everything else and the makefile can find every other powerpc-eabi version. It has never done this before and it only started happening after I pulled from my git repo.
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: devkitPPC cannot find powerpc-eabi-gcc
It doesn't seem likely that pulling from your git repo could have changed anything unless you're keeping toolchain binaries in there. I can only speculate that something has changed permissions on that binary which shouldn't really be possible on linux or macOS unless you're running as root.
Out of curiosity can you tell us your OS and show the output of ls -al /opt/devkitpro/devkitPPC/bin.
You could try reinstalling devkitPPC via pacman - on windows use the msys2 shell via Start->devkitPro->msys2 then run pacman -S devkitPPC there. If linux with a native pacman use sudo pacman -S devkitPPC, on macOS or linux where devkitPro pacman was installed use sudo dkp-pacman -S devkitPPC.
Out of curiosity can you tell us your OS and show the output of ls -al /opt/devkitpro/devkitPPC/bin.
You could try reinstalling devkitPPC via pacman - on windows use the msys2 shell via Start->devkitPro->msys2 then run pacman -S devkitPPC there. If linux with a native pacman use sudo pacman -S devkitPPC, on macOS or linux where devkitPro pacman was installed use sudo dkp-pacman -S devkitPPC.
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
Re: devkitPPC cannot find powerpc-eabi-gcc
I am using MacOS and the output of the command is:
I have been running make as root which could be the cause of my issue.
Code: Select all
-rwxr-xr-x@ 1 root wheel 644360 Jan 31 19:09 mn10200-addr2line
-rwxr-xr-x@ 1 root wheel 675104 Jan 31 19:09 mn10200-ar
-rwxr-xr-x@ 1 root wheel 874144 Jan 31 19:09 mn10200-as
-rwxr-xr-x@ 1 root wheel 644272 Jan 31 19:09 mn10200-c++filt
-rwxr-xr-x@ 1 root wheel 31968 Jan 31 19:09 mn10200-elfedit
-rwxr-xr-x@ 1 root wheel 707896 Jan 31 19:09 mn10200-gprof
-rwxr-xr-x@ 1 root wheel 889816 Jan 31 19:09 mn10200-ld
-rwxr-xr-x@ 1 root wheel 889816 Jan 31 19:09 mn10200-ld.bfd
-rwxr-xr-x@ 1 root wheel 652608 Jan 31 19:09 mn10200-nm
-rwxr-xr-x@ 1 root wheel 827552 Jan 31 19:09 mn10200-objcopy
-rwxr-xr-x@ 1 root wheel 964640 Jan 31 19:09 mn10200-objdump
-rwxr-xr-x@ 1 root wheel 675144 Jan 31 19:09 mn10200-ranlib
-rwxr-xr-x@ 1 root wheel 457264 Jan 31 19:09 mn10200-readelf
-rwxr-xr-x@ 1 root wheel 648712 Jan 31 19:09 mn10200-size
-rwxr-xr-x@ 1 root wheel 644416 Jan 31 19:09 mn10200-strings
-rwxr-xr-x@ 1 root wheel 827552 Jan 31 19:09 mn10200-strip
-rwxr-xr-x@ 1 root wheel 1892768 Jan 31 19:09 powerpc-eabi-addr2line
-rwxr-xr-x@ 1 root wheel 1923496 Jan 31 19:09 powerpc-eabi-ar
-rwxr-xr-x@ 1 root wheel 2606360 Jan 31 19:09 powerpc-eabi-as
-rwxr-xr-x@ 1 root wheel 1555736 Jan 31 19:09 powerpc-eabi-c++
-rwxr-xr-x@ 1 root wheel 1888584 Jan 31 19:09 powerpc-eabi-c++filt
-rwxr-xr-x@ 1 root wheel 102 Apr 22 2023 powerpc-eabi-cmake
-rwxr-xr-x@ 1 root wheel 1555728 Jan 31 19:09 powerpc-eabi-cpp
-rwxr-xr-x@ 1 root wheel 36192 Jan 31 19:09 powerpc-eabi-elfedit
-rwxr-xr-x@ 1 root wheel 8511 Jan 31 19:09 powerpc-eabi-embedspu
-rwxr-xr-x@ 1 root wheel 1555736 Jan 31 19:09 powerpc-eabi-g++
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-13.2.0
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ar
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-bak
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-nm
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ranlib
-rwxr-xr-x@ 1 root wheel 1036480 Jan 31 19:09 powerpc-eabi-gcov
-rwxr-xr-x@ 1 root wheel 875464 Jan 31 19:09 powerpc-eabi-gcov-dump
-rwxr-xr-x@ 1 root wheel 901408 Jan 31 19:09 powerpc-eabi-gcov-tool
-rwxr-xr-x@ 1 root wheel 9722408 Jan 31 21:24 powerpc-eabi-gdb
-rwxr-xr-x@ 1 root wheel 4627 Jan 31 21:24 powerpc-eabi-gdb-add-index
-rwxr-xr-x@ 1 root wheel 1952184 Jan 31 19:09 powerpc-eabi-gprof
-rwxr-xr-x@ 1 root wheel 3639376 Jan 31 19:09 powerpc-eabi-ld
-rwxr-xr-x@ 1 root wheel 3639376 Jan 31 19:09 powerpc-eabi-ld.bfd
-rwxr-xr-x@ 1 root wheel 27100872 Jan 31 19:09 powerpc-eabi-lto-dump
-rwxr-xr-x@ 1 root wheel 1905256 Jan 31 19:09 powerpc-eabi-nm
-rwxr-xr-x@ 1 root wheel 2022480 Jan 31 19:09 powerpc-eabi-objcopy
-rwxr-xr-x@ 1 root wheel 2831736 Jan 31 19:09 powerpc-eabi-objdump
-rwxr-xr-x@ 1 root wheel 1923520 Jan 31 19:09 powerpc-eabi-ranlib
-rwxr-xr-x@ 1 root wheel 1098544 Jan 31 19:09 powerpc-eabi-readelf
-rwxr-xr-x@ 1 root wheel 1892832 Jan 31 19:09 powerpc-eabi-size
-rwxr-xr-x@ 1 root wheel 1896984 Jan 31 19:09 powerpc-eabi-strings
-rwxr-xr-x@ 1 root wheel 2026576 Jan 31 19:09 powerpc-eabi-strip
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: devkitPPC cannot find powerpc-eabi-gcc
What's the output of xattr -l /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc*?
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
Re: devkitPPC cannot find powerpc-eabi-gcc
The output is: /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: devkitPPC cannot find powerpc-eabi-gcc
There are 6 files in that folder which should be shown along with the extended attributes. Can you post the complete output as you did for the previous one with ls -al?limegradient wrote: Tue Feb 27, 2024 2:42 pm The output is: /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
Re: devkitPPC cannot find powerpc-eabi-gcc
That is the complete output.
myuser@MacBook-Pro gdwii % xattr -l /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc*
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:
myuser@MacBook-Pro gdwii % xattr -l /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc*
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:
-
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: devkitPPC cannot find powerpc-eabi-gcc
I don't really understand why you get this output - the @ on the end of all the files in the directory listing you posted indicates that the files have extended attributes. That xattr command should list the extended attributes on those 7 fileslimegradient wrote: Tue Feb 27, 2024 6:04 pm That is the complete output.
myuser@MacBook-Pro gdwii % xattr -l /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc*
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:
Code: Select all
-rwxr-xr-x@ 1 root wheel 1555736 Jan 31 19:09 powerpc-eabi-g++
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-13.2.0
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ar
-rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-bak
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-nm
-rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ranlib
The only thing I can really suggest is that you delete the devkitPPC folder, preferably via sudo rm -fr /opt/devkitPro/devkitPPC then reinstall with sudo dkp-pacman -S devkitPPC. You'll get complaints about missing files on the reinstall but that should hopefully get devkitPPC back to the state it should be. If you've overwritten other files within the /opt/devkitpro folder then tbh I'd recommend just nuking the whole thing & reinstalling from scratch.
If you've been running make as root in the examples folders then that's not sensible but shouldn't have damaged anything. The examples are intended to be copied elsewhere, not compiled in place - they can and will get overwritten by future updates.
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
Re: devkitPPC cannot find powerpc-eabi-gcc
I unfortunately did have to just nuke it all and reinstall from scratch but now after installing pacman with the pkg installer there is no folder in /opt. I have tried from the terminal with sudo and just with the regular installer but nothing. Im not sure what i did but something I did has broken everything.
-
- Posts: 11
- Joined: Mon Feb 26, 2024 5:01 am
Re: devkitPPC cannot find powerpc-eabi-gcc
I did also find that dkp-pacman was still in my /usr/local/bin folder and after removing it to maybe fix the installer it still does not work. I dont know if there is some hidden files or if I just messed up my environment so bad.WinterMute wrote: Tue Feb 27, 2024 6:26 pmI don't really understand why you get this output - the @ on the end of all the files in the directory listing you posted indicates that the files have extended attributes. That xattr command should list the extended attributes on those 7 fileslimegradient wrote: Tue Feb 27, 2024 6:04 pm That is the complete output.
myuser@MacBook-Pro gdwii % xattr -l /opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc*
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-bak: com.apple.provenance:What I suspect has happened here is that you've attempted to overwrite powerpc-eabi-gcc with a different version from somewhere else having made a copy, thus the -bak file. Perhaps someone gave you a zip & you extracted it over your toolchain installation. There are reasons why we tell users not to modify their toolchain installation, this is one of them. I don't know why there are extended attributes on those files - there aren't on my local machine and they definitely aren't there when we package devkitPPC.Code: Select all
-rwxr-xr-x@ 1 root wheel 1555736 Jan 31 19:09 powerpc-eabi-g++ -rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc -rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-13.2.0 -rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ar -rwxr-xr-x@ 1 root wheel 1551632 Jan 31 19:09 powerpc-eabi-gcc-bak -rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-nm -rwxr-xr-x@ 1 root wheel 28344 Jan 31 19:09 powerpc-eabi-gcc-ranlib
The only thing I can really suggest is that you delete the devkitPPC folder, preferably via sudo rm -fr /opt/devkitPro/devkitPPC then reinstall with sudo dkp-pacman -S devkitPPC. You'll get complaints about missing files on the reinstall but that should hopefully get devkitPPC back to the state it should be. If you've overwritten other files within the /opt/devkitpro folder then tbh I'd recommend just nuking the whole thing & reinstalling from scratch.
If you've been running make as root in the examples folders then that's not sensible but shouldn't have damaged anything. The examples are intended to be copied elsewhere, not compiled in place - they can and will get overwritten by future updates.
Who is online
Users browsing this forum: No registered users and 1 guest