CTCaer / hekate

hekate - A GUI based Nintendo Switch Bootloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation challenges for new versions

ZeldaPken opened this issue · comments

In the latest version, compiling the program becomes difficult, probably because you modify things like dependencies, etc., are there specific compilation steps and guidelines?

Building build/hekate/start.o
bash: line 1: arm-none-eabi-gcc: command not found
make: *** [Makefile:154: build/hekate/start.o] Error 127```

error like this...

Actually the arm-none-eabi-gcc I have configured correctly so I don't understand what else is missing

I used windowX64 and Msys2

Github isn’t a help forum. There are tutorials on gbatemp dedicated to helping people build their own. I’d ask what happens when you open msys2 and type arm-none-eabi-gcc (because it sounds like a path issue), but I’d rather you didn’t answer. Close this and seek help on temp…

Github 不是一个帮助论坛。有关于 gbatemp 的教程,专门帮助人们构建自己的教程。我会问当您打开 msys2 并键入 arm-none-eabi-gcc 时会发生什么(因为这听起来像是路径问题),但我宁愿您不回答。关闭它并寻求临时帮助...

GitHub isn't, but what is the issue?

Well, allow me to continue with my question, when I enter the command correctly, $ pacman -S gcc-arm-none-eabi error: target not found: gcc-arm-none-eabi shows these two codes separately

error: target not found: gcc-arm-none-eabi


This is the version of the toolchain, which is displayed in the terminal

arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.```

In the latest version, compiling the program becomes difficult, probably because you modify things like dependencies, etc., are there specific compilation steps and guidelines?

Building build/hekate/start.o
bash: line 1: arm-none-eabi-gcc: command not found
make: *** [Makefile:154: build/hekate/start.o] Error 127```

error like this...

Actually the arm-none-eabi-gcc I have configured correctly so I don't understand what else is missing

dependencies has not changed, latest commit compiles just fine, nothing has changed.

Debian GNU/Linux 12 (bookworm)

gcc-12-base/stable,now 12.2.0-14 amd64 [installed]
gcc-12/stable,now 12.2.0-14 amd64 [installed,automatic]
gcc-arm-none-eabi/stable,now 15:12.2.rel1-1 amd64 [installed]
gcc/stable,now 4:12.2.0-3 amd64 [installed]

arm-none-eabi-gcc (15:12.2.rel1-1) 12.2.1 20221205
  • switch-dev from devkitpro repositories, you can add those to msys internal pacman.

(pacman -S switch-dev devkitarm-crtls devkitarm-rules devkitARM-gdb devkitARM)

https://devkitpro.org/wiki/devkitPro_pacman#Customising_Existing_Pacman_Install

/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/14.1.0/../../../../arm-none-eabi/bin/ld: warning: ../build/nyx/nyx.elf has a LOAD segment with RWX permissions
Nyx was built with the following flags:\nCFLAGS:  -march=armv4t -mtune=arm7tdmi -mthumb-interwork -O2 -g -gdwarf-4 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -std=gnu11 -Wall -Wsign-compare -Wno-array-bounds -Wno-stringop-overread -Wno-stringop-overflow -DNYX_LOAD_ADDR=0x81000000 -DNYX_MAGIC=0x43544347 -DNYX_VER_MJ=1 -DNYX_VER_MN=6 -DNYX_VER_HF=2 -DNYX_RESERVED=0 -DBDK_MC_ENABLE_AHB_REDIRECT -DBDK_MINERVA_CFG_FROM_RAM -DBDK_HW_EXTRA_DEINIT -DBDK_SDMMC_EXTRA_PRINT -DGFX_INC="../nyx/nyx_gui/gfx/gfx.h" -DFFCFG_INC="../nyx/nyx_gui/libs/fatfs/ffconf.h"\nLDFLAGS: -march=armv4t -mtune=arm7tdmi -mthumb-interwork -nostartfiles -lgcc -Wl,--nmagic,--gc-sections -Xlinker --defsym=NYX_LOAD_ADDR=0x81000000
arm-none-eabi-objcopy -S -O binary ../build/nyx/nyx.elf ./../output/nyx.bin
--------------------------------------
Nyx size:     443300 Bytes
--------------------------------------
arm-none-eabi-objcopy -S -O binary build/hekate/hekate.elf output/hekate.bin
mv output/hekate.bin output/hekate_unc.bin
arm-none-eabi-objcopy -S -O binary ../build/loader/loader.elf ../output/hekate.bin
--------------------------------------
Uncompr size: 134472 Bytes
Uncompr Max:  140288 Bytes + 3 KiB BSS
Payload size: 110210 Bytes
Payload Max:  126296 Bytes