[Bug 272140] devel/xtensa-esp32-elf: Compile error: Build failed in step 'Installing cross-gdb'

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Jun 2023 05:31:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272140

            Bug ID: 272140
           Summary: devel/xtensa-esp32-elf: Compile error: Build failed in
                    step 'Installing cross-gdb'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: ohartmann@walstatt.org
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

Host CURRENT (FreeBSD 14.0-CURRENT #5 main-n263741-383d51d59236: Wed Jun 21
20:48:34 CEST 2023 amd64), recent ports tree. Crosscompiler is lang/gcc10,
fresh install (also make built).

[...]
[INFO ]  =================================================================
[INFO ]  Installing final gcc compiler
[INFO ]  Installing final gcc compiler: done in 354.00s (at 14:40)
[INFO ]  =================================================================
[INFO ]  Installing cross-gdb
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:231:47:
error: invalid use of incomplete typedef 'scm_t_port'
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:231:61:
error: invalid use of incomplete typedef 'scm_t_port'
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:237:5:
error: invalid use of incomplete typedef 'scm_t_port'
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:237:20:
error: invalid use of incomplete typedef 'scm_t_port'
[...]
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:681:19:
error: 'SCM_PORT_NEITHER' undeclared (first use in this function); did you mean
'SCM_PORT_TYPE'?
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:691:23:
error: invalid use of incomplete typedef 'scm_t_port
[...]
[ERROR]   
/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5/.build/src/gdb-7.10/gdb/guile/scm-ports.c:1090:41:
error: invalid use of incomplete typedef 'scm_t_port'
[ERROR]    gmake[4]: *** [Makefile:2469: scm-ports.o] Error 1
[ERROR]    gmake[3]: *** [Makefile:8755: all-gdb] Error 2
[ERROR]    gmake[2]: *** [Makefile:845: all] Error 2
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'docs/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 15:56.00)
gmake[1]: *** [ct-ng:152: build] Error 2
gmake[1]: Leaving directory
'/usr/ports/devel/xtensa-esp32-elf/work/crosstool-NG-1.22.0-97-gc752ad5'
*** Error code 2

-- 
You are receiving this mail because:
You are the assignee for the bug.