mmutil not found while trying to make maxmod gba example

Post Reply
temuenjoyer78
Posts: 5
Joined: Thu Nov 14, 2024 5:10 pm

mmutil not found while trying to make maxmod gba example

Post by temuenjoyer78 » Fri Nov 15, 2024 1:48 am

I got this error while trying to make the maxmod audio exmaple

Code: Select all

make[1]: Entering directory '/opt/devkitpro/examples/gba/audio/maxmod/basic_sound'
bash: line 1: /opt/devkitpro/tools/bin/mmutil: cannot execute: required file not found
make[2]: *** [/opt/devkitpro/examples/gba/audio/maxmod/basic_sound/Makefile:151: soundbank.bin] Error 127
make[1]: *** [Makefile:120: build] Error 2
make[1]: Leaving directory '/opt/devkitpro/examples/gba/audio/maxmod/basic_sound'
make: *** [Makefile:3: all] Error 1

I made sure to export devkitpro and devkitARM path's.
And i looked into the devkitpro folder and mmutil is there but I still get the error.
Ive been trying to figure this out for like 2 hours, any help would be appreciated!


WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: mmutil not found while trying to make maxmod gba example

Post by WinterMute » Fri Nov 15, 2024 7:00 pm

Firstly, please don't build and edit the examples directly in place, copy them somewhere else first - i.e. ~/projects/gba-examples

What's your host OS and how did you install the toolchains?

Help keep devkitPro toolchains free, Donate today

Personal Blog

temuenjoyer78
Posts: 5
Joined: Thu Nov 14, 2024 5:10 pm

Re: mmutil not found while trying to make maxmod gba example

Post by temuenjoyer78 » Sat Nov 16, 2024 4:24 am

WinterMute wrote: Fri Nov 15, 2024 7:00 pm

What's your host OS and how did you install the toolchains?

Im using Alpine linux and I downloaded pacman using apk.
I followed the instructions on the devkitpro wiki until the install keyring part. When I copied the command into the terminal it would say

Code: Select all

call to execv failed (No such file or directory)

.
After that my memory is a bit foggy but from what I remember I decided to run pacman-key --populate and I guess that worked so I continued onto adding the repositories.
Then I synced the and installed the gba-dev group.
And I run into the mmutil problem.

And like you said I tried to build maxmod in an other folder but it still didn't work.
I also tried to build other examples like ansi_console, playboyscout and pcxview. And all of them give out a similar make error about not being able to execute something in a bin folder.


WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: mmutil not found while trying to make maxmod gba example

Post by WinterMute » Sat Nov 16, 2024 2:57 pm

Thanks for the reminder to update the instructions to cover musl based distros like Alpine. Did you have to do anything special to get pacman installed? If I remember right you have to enable the community repository?

What's happening here is that the binaries you've installed are built against glibc and not musl

Edit /etc/pacman.conf and use this instead of the [dkp-linux] block

Code: Select all

[dkp-linux-musl]
Server =  https://pkg.devkitpro.org/packages/linux-musl/$arch/

You'll need to install the binaries again so run sudo pacman -Scc to clear the cache, then sudo pacman -Sy gba-dev and select all the packaages in the dkp-linux-musl repository. That's currently 12-18 but check the numbers pacman shows you in case I've added more packages.

Help keep devkitPro toolchains free, Donate today

Personal Blog

temuenjoyer78
Posts: 5
Joined: Thu Nov 14, 2024 5:10 pm

Re: mmutil not found while trying to make maxmod gba example

Post by temuenjoyer78 » Sat Nov 16, 2024 5:03 pm

When i try to run pacman -Sy it returns

~ $ sudo pacman -Sy
:: Synchronizing package databases...
dkp-libs is up to date
dkp-linux-musl.db failed to download
error: failed retrieving file 'dkp-linux-musl.db' from pkg.devkitpro.org : The requested URL returned error: 404
error: failed to synchronize all databases (unexpected error)


WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: mmutil not found while trying to make maxmod gba example

Post by WinterMute » Sat Nov 16, 2024 9:29 pm

You would have to be awkward and be the first aarch64-linux-musl user, wouldn't you? :P

It will take a little bit of time to build and package aarch64 binaries for musl but mmutil should be available there now. It would be helpful if you could try again and report if the pacman command works now, that you can install mmutil and that the binary works for you. mmutil --help should give you some help text.

I'm going to work through the rest of the packages in the meantime so there may be more available by the time you get to testing.

Help keep devkitPro toolchains free, Donate today

Personal Blog

temuenjoyer78
Posts: 5
Joined: Thu Nov 14, 2024 5:10 pm

Re: mmutil not found while trying to make maxmod gba example

Post by temuenjoyer78 » Sat Nov 16, 2024 10:25 pm

WinterMute wrote: Sat Nov 16, 2024 9:29 pm

You would have to be awkward and be the first aarch64-linux-musl user, wouldn't you? :P

Oh no I guess you uncovered my secret :o :o

WinterMute wrote: Sat Nov 16, 2024 9:29 pm

It will take a little bit of time to build and package aarch64 binaries for musl but mmutil should be available there now. It would be helpful if you could try again and report if the pacman command works now, that you can install mmutil and that the binary works for you. mmutil --help should give you some help text.

Sadly, it still returns the same error as before.


WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: mmutil not found while trying to make maxmod gba example

Post by WinterMute » Sun Nov 17, 2024 12:47 am

Give it another shot, packaging script wasn't quite right & failed to update repo before, sorry.

Help keep devkitPro toolchains free, Donate today

Personal Blog

temuenjoyer78
Posts: 5
Joined: Thu Nov 14, 2024 5:10 pm

Re: mmutil not found while trying to make maxmod gba example

Post by temuenjoyer78 » Sun Nov 17, 2024 5:54 pm

It works now! Thanks so much dude! :D
Most of the examples work and a .gba file is returned.
I really appreciate the time and work you've done to help me.

I wish you well!


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests