Skip to content

.stage.patch error #51

@HamzaHajeir

Description

@HamzaHajeir

Hi there,

Trying to build GCC13.2 using the Espressif's own fork with introducing those lines into the Makefile:

else ifeq ($(GCC), 12.2)
    ISL           := 0.18
    GCC_BRANCH    := esp-12_2_0
    GCC_PKGREL    := 120200
    GCC_REPO      := https://github.com/espressif/gcc.git
    GCC_DIR       := gcc-gnu
    BINUTILS_BRANCH := binutils-2_32
    BINUTILS_REPO := https://sourceware.org/git/binutils-gdb.git
    BINUTILS_DIR  := binutils-gdb-gnu
else ifeq ($(GCC), 13.2)
    ISL           := 0.18
    GCC_BRANCH    := esp-13_2_0
    GCC_PKGREL    := 130200
    GCC_REPO      := https://github.com/espressif/gcc.git
    GCC_DIR       := gcc-gnu
    BINUTILS_BRANCH := binutils-2_32
    BINUTILS_REPO := https://sourceware.org/git/binutils-gdb.git
    BINUTILS_DIR  := binutils-gdb-gnu

And building using the command:

 make GCC=13.2 REL=2.5.0 SUBREL=3  GHUSER=earlephilhower GHTOKEN=xxx

The error message was 127 pointing to the third line of this script:

	for p in $(PATCHDIR)/bin-*.patch; do \
	    test -r "$$p" || continue ; \
	    (cd $(REPODIR)/$(BINUTILS_DIR); echo "---- $$p:"; patch -s -p1 < $$p) ; \

The log file (.log.stage.patch) content:

---- /home/hamza/Desktop/esp-quick-toolchain/patches/gcc-001-jump-tables-in-text-section-earlephilhower.patch:
---- /home/hamza/Desktop/esp-quick-toolchain/patches/bin-001-hal.patch:
---- /home/hamza/Desktop/esp-quick-toolchain/patches/mkspiffs/0.2.0-makefile.patch:

What might be the problem, and potentially the fix for?
Given that:

  • OS: Ubuntu 22.04.2 LTS

With thanks,
Hamza Hajeir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions