[Help]: Cant compile MakeRom

Discussion in '3DS - Flashcards & Custom Firmwares' started by ScarletDreamz, Feb 8, 2017.

  1. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    Hello;

    Im trying to compile luma, but for that i need to compile first MakeRom, however each try i try to compile MakeRom it gives me an error:

    [​IMG]

    I got MinGW installed with the basic setup, as well as MSYS setup, also got DevKitProARM with armips working.

    Any ideas?

    Help Tagging:
    @Aurora Wright
     
  2. addi33

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    use steveice10's precompiled binary
     
  3. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    That did the job, however i got a quick question, does LUMA source needs internet and git to be able to compile? where im atm dont have internet and cant use git thats why im asking, after trying to compile, it gives this output:

    /bin/sh: git: command not found
    make: git: Command not found
    make[1]: Entering directory `/c/Users/Admin/Desktop/Sources/Luma/injector'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/c/Users/Admin/Desktop/Sources/Luma/injector'
    make[1]: Entering directory `/c/Users/Admin/Desktop/Sources/Luma/loader'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/c/Users/Admin/Desktop/Sources/Luma/loader'
    make[1]: Entering directory `/c/Users/Admin/Desktop/Sources/Luma/exceptions/arm9'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/c/Users/Admin/Desktop/Sources/Luma/exceptions/arm9'
    make[1]: Entering directory `/c/Users/Admin/Desktop/Sources/Luma/exceptions/arm11'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/c/Users/Admin/Desktop/Sources/Luma/exceptions/arm11'
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -DCONFIG_TITLE="\"Luma3DS configuration\"" -c -o build/config.o source/config.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/crypto.o source/crypto.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/draw.o source/draw.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/emunand.o source/emunand.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/exceptions.o source/exceptions.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/fatfs/diskio.o source/fatfs/diskio.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/fatfs/ff.o source/fatfs/ff.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/fatfs/option/ccsbcs.o source/fatfs/option/ccsbcs.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/fatfs/sdmmc/sdmmc.o source/fatfs/sdmmc/sdmmc.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/firm.o source/firm.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/fs.o source/fs.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/i2c.o source/i2c.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -c -o build/main.o source/main.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -O3 -c -o build/memory.o source/memory.c
    arm-none-eabi-gcc -Wall -Wextra -MMD -MP -marm -mcpu=arm946e-s -fno-builtin -fshort-wchar -std=c11 -Wno-main -O2 -flto -ffast-math -DREVISION=\"\" -DCOMMIT_HASH="0x" -c -o build/patches.o source/patches.c
    source/patches.c: In function 'implementSvcGetCFWInfo':
    <command-line>:0:13: error: invalid suffix "x" on integer constant
    source/patches.c:343:28: note: in expansion of macro 'COMMIT_HASH'
    info->commitHash = COMMIT_HASH;
    ^~~~~~~~~~~
    make: *** [build/patches.o] Error 1
     
  4. addi33

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    Compiling
    First you need to clone the repository recursively with: git clone --recursive https://github.com/AuroraWright/Luma3DS.git
    To compile, you'll need armips and a build of a recent commit of makerom added to your PATH.
    For now, you'll also need to update your libctru install, building from the latest commit.
    For your convenience, here are Windows and Linux builds of armips (thanks to who compiled them!).
    Finally just run make and everything should work!
    You can find the compiled files in the out folder.
     
  5. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    Yeah i followed that guide, however normally when i dont got internet, i download the project [Including the dependencies linked] so that no files are missing, ill check if im missing a dependency, and will try at home when i arrive, not there atm, and very limited here.
     
  6. addi33

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    well luma is kinda weird to me.

    make[1]: Entering directory `/c/Users/Adrian/Desktop/Luma3DS/injector'
    make[1]: armips: Command not found
    make[1]: *** [build/romfsredir.bin] Error 127
    make[1]: Leaving directory `/c/Users/Adrian/Desktop/Luma3DS/injector'
    make: *** [build/injector.bin] Error 2
     
  7. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    You are missing armips.
     
  8. addi33

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    I am not. Imma compile armips myself now. that build seems broken.

    — Posts automatically merged - Please don't double post! —

    seems to compile now. as I said.
     
  9. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    i mean you are missing armips form the path directory, the path variable need to point where your armips is.
     
  10. addi33

    addi33 GBAtemp Advanced Maniac

    Member
    1,656
    711
    Sep 12, 2016
    Gambia, The
    worked like a charm.
     

    Attached Files:

  11. ScarletDreamz
    OP

    ScarletDreamz [Debug Mode]

    Member
    2,567
    1,112
    Feb 16, 2015
    United States
    California
    Fixed, was missing libkhax dependency!
     
    addi33 likes this.