Page 1 of 1
mmutil not found while trying to make maxmod gba example
Posted: Fri Nov 15, 2024 1:48 am
by temuenjoyer78
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!
Re: mmutil not found while trying to make maxmod gba example
Posted: Fri Nov 15, 2024 7:00 pm
by WinterMute
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?
Re: mmutil not found while trying to make maxmod gba example
Posted: Sat Nov 16, 2024 4:24 am
by temuenjoyer78
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.
Re: mmutil not found while trying to make maxmod gba example
Posted: Sat Nov 16, 2024 2:57 pm
by WinterMute
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.
Re: mmutil not found while trying to make maxmod gba example
Posted: Sat Nov 16, 2024 5:03 pm
by temuenjoyer78
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)
Re: mmutil not found while trying to make maxmod gba example
Posted: Sat Nov 16, 2024 9:29 pm
by WinterMute
You would have to be awkward and be the first aarch64-linux-musl user, wouldn't you?
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.
Re: mmutil not found while trying to make maxmod gba example
Posted: Sat Nov 16, 2024 10:25 pm
by temuenjoyer78
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?
Oh no I guess you uncovered my secret
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.
Re: mmutil not found while trying to make maxmod gba example
Posted: Sun Nov 17, 2024 12:47 am
by WinterMute
Give it another shot, packaging script wasn't quite right & failed to update repo before, sorry.
Re: mmutil not found while trying to make maxmod gba example
Posted: Sun Nov 17, 2024 5:54 pm
by temuenjoyer78
It works now! Thanks so much dude!
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!