Homebrew Need help compiling their 3DS stuff repo's on GitHub

  • Thread starter Deleted User
  • Start date
  • Views 2,255
  • Replies 25
D

Deleted User

Guest
OP
Hey. I want to compile Luma3DS CFW with recently added Commits into .firm (for example, Luma3DS v8.0-174089e4 -- which fixes broken Language Emulation). I have Git Bash and devKitPro. When I type 'make' in Luma3DS folder using cmd, I get this error. Can somebody tell me what files am I missing?
EfzwqOo.png


Back in then, I was able to compile Wii U sysNAND/redNAND CFW into fw.img from IOSUHax repository by following this tutorial.
 
D

Deleted User

Guest
OP
Got it. But another error:
Code:
C:\Users\Sven\Luma3DS>make
make[1]: Entering directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/fsldr.o source/fsldr.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/fsreg.o source/fsreg.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/ifile.o source/ifile.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/loader.o source/loader.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS -O3   -c
 -o build/memory.o source/memory.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/patcher.o source/patcher.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/pxipm.o source/pxipm.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/srvsys.o source/srvsys.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS -O3   -c
 -o build/strings.o source/strings.c
arm-none-eabi-gcc -specs=3dsx.specs -mcpu=mpcore -mfloat-abi=hard -Wl,--section-
start,.text=0x14000000  -o build/loader.elf build/romfsredir.bin.o build/fsldr.o
 build/fsreg.o build/ifile.o build/loader.o build/memory.o build/patcher.o build
/pxipm.o build/srvsys.o build/strings.o -L/c/devkitPro/libctru/lib -lctru
make[1]: makerom: Command not found
make[1]: *** [../../build/loader.cxi] Error 127
make[1]: Leaving directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
make: *** [build/loader.cxi] Error 2

C:\Users\Sven\Luma3DS>

I assume it's missing makerom, I have a 32-bit version of it but it doesn't seem to work all the time, where can I download that too?
 

iAqua

Member
Joined
Dec 7, 2015
Messages
2,848
Trophies
1
Location
XP
2,476
Country
United Kingdom
Got it. But another error:
Code:
C:\Users\Sven\Luma3DS>make
make[1]: Entering directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/fsldr.o source/fsldr.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/fsreg.o source/fsreg.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/ifile.o source/ifile.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/loader.o source/loader.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS -O3   -c
 -o build/memory.o source/memory.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/patcher.o source/patcher.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/pxipm.o source/pxipm.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS   -c -o
build/srvsys.o source/srvsys.c
arm-none-eabi-gcc -Wall -Wextra -mcpu=mpcore -mfloat-abi=hard -fno-builtin -std=
c11 -O2 -flto -ffast-math -I/c/devkitPro/libctru/include -DARM11 -D_3DS -O3   -c
 -o build/strings.o source/strings.c
arm-none-eabi-gcc -specs=3dsx.specs -mcpu=mpcore -mfloat-abi=hard -Wl,--section-
start,.text=0x14000000  -o build/loader.elf build/romfsredir.bin.o build/fsldr.o
 build/fsreg.o build/ifile.o build/loader.o build/memory.o build/patcher.o build
/pxipm.o build/srvsys.o build/strings.o -L/c/devkitPro/libctru/lib -lctru
make[1]: makerom: Command not found
make[1]: *** [../../build/loader.cxi] Error 127
make[1]: Leaving directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
make: *** [build/loader.cxi] Error 2

C:\Users\Sven\Luma3DS>

I assume it's missing makerom, I have a 32-bit version of it but it doesn't seem to work all the time, where can I download that too?
https://3dbrew.org/wiki/Makerom
 
D

Deleted User

Guest
OP
I have no idea.
Nvm, I tried on my sister's laptop running Windows 8.1 x64...and further error showed up:
Code:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Sven>cd Luma3DS

C:\Users\Sven\Luma3DS>make
make[1]: Entering directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/Users/Sven/Luma3DS/sysmodules/loader'
make[1]: Entering directory `/c/Users/Sven/Luma3DS/sysmodules/rosalina'
arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -g -mcpu=mpcore -mfloat-abi=hard
-mtp=soft -fno-builtin -std=c11 -O2 -flto -ffast-math -mword-relocations -fomit-
frame-pointer -ffunction-sections -fdata-sections -I/c/devkitPro/libctru/include
 -Iinclude -DARM11 -D_3DS   -c -o build/3dsx.o source/3dsx.c
source/3dsx.c: In function 'Ldr_CodesetFrom3dsx':
source/3dsx.c:247:26: error: 'RUNFLAG_APTCHAINLOAD' undeclared (first use in thi
s function)
         pst->runFlags |= RUNFLAG_APTCHAINLOAD;
                          ^~~~~~~~~~~~~~~~~~~~
source/3dsx.c:247:26: note: each undeclared identifier is reported only once for
 each function it appears in
make[1]: *** [build/3dsx.o] Error 1
make[1]: Leaving directory `/c/Users/Sven/Luma3DS/sysmodules/rosalina'
make: *** [build/rosalina.cxi] Error 2

C:\Users\Sven\Luma3DS>
 
D

Deleted User

Guest
OP
https://github.com/AuroraWright/Luma3DS/#compiling
Just follow the above^^
btw, I don't think you actually need to clone the repo. But I'm just presuming.
Thanks. I've installed firmtool with Python. I am stuck on ctrulib part, don't know which devKitPro's folder I should put in.

If you have to come here for each issue you run into during building, then compiling your own firm probably isn't the best idea (Neither is running an hourly build... But it's your console). Just download the hourly you want from the hourly build site:
https://astronautlevel2.github.io/Luma3DS/
Yeah, I prefer the official Luma3DS, though. I do use hourly build.
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
I'm having trouble with makerom, the latest release is outdated :/ And i'm having trouble compiling it (Windows, x64, MinGW, and MSBuild don't work)
 
D

Deleted User

Guest
OP
wherever_you_installed_devkitpro\devkitPro\libctru\lib.
replace libctru.a with the one you compiled.
I'm having issue compiling ctrulib too.

I'm having trouble with makerom, the latest release is outdated :/ And i'm having trouble compiling it (Windows, x64, MinGW, and MSBuild don't work)
Ah, that's the problem. Probably we will give up...
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
2,999
Trophies
1
XP
2,760
Country
32 bit systems are outdated and not supported by makerom at all (which is why even if you can find/compile a 32 bit version, it won't work right. I would suggest you try setting up a 64 bit linux system using qemu's full system emulation mode. It will be slow and you may have to use the -no-kvm command line switch to force using software emulation but it should work. Just be sure to use a flat filesystem image (i.e. dd format) rather than qcow format so you can use something like ext2fs explorer to extract the compiled files from it.
 
  • Like
Reactions: Deleted User

GerbilSoft

Well-Known Member
Member
Joined
Mar 8, 2012
Messages
2,395
Trophies
2
Age
34
XP
4,249
Country
United States
32 bit systems are outdated and not supported by makerom at all (which is why even if you can find/compile a 32 bit version, it won't work right.
There's really no reason for this to be the case. If makerom is actually broken on 32-bit, that should be considered a bug and fixed.

I currently have a 64-bit toolchain set up, but I'll try a 32-bit build of makerom later today to see if it works or not.
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
There's really no reason for this to be the case. If makerom is actually broken on 32-bit, that should be considered a bug and fixed.

I currently have a 64-bit toolchain set up, but I'll try a 32-bit build of makerom later today to see if it works or not.

GerbilSoft, mind giving me a binary from the last commit ?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +1
    The Real Jdbye @ The Real Jdbye: @LeoTCK actually good quality products are dying out because they can't compete with dropshipped... +1