Hi,

building lang/gcc/16 fails on me with:

...
gmake[3]: Entering directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/build-hppa-unknown-openbsd/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[3]: Leaving directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/build-hppa-unknown-openbsd/libcpp'
gmake[3]: Entering directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/libcpp'
test -f config.h || (rm -f stamp-h1 && gmake stamp-h1)
gmake[3]: Leaving directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/libcpp'
gmake[3]: Entering directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc'
build/genmodes -h > tmp-modes.h
build/genmodes -i > tmp-modes-inline.h
Segmentation fault (core dumped)
gmake[3]: *** [Makefile:2414: s-modes-h] Error 139
gmake[3]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
gmake[3]: *** [Makefile:2419: s-modes-inline-h] Error 139
gmake[3]: Leaving directory
'/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc'
gmake[2]: *** [Makefile:4652: all-stage2-gcc] Error 2
gmake[2]: Leaving directory '/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa'
gmake[1]: *** [Makefile:17860: stage2-bubble] Error 2
gmake[1]: Leaving directory '/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa'
gmake: *** [Makefile:17880: bootstrap2] Error 2


The segfaulting programs are:
sebastia@chimera:/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc> ls
*core
gengenrtl.core  genmodes.core

sebastia@chimera:/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa> gdb
gcc/build/genmodes

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa-unknown-openbsd8.0"...
(gdb) r
Starting program:
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/genmodes

Program received signal SIGSEGV, Segmentation fault.
0x00009068 in main () from
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/genmodes
(gdb) bt
#0  0x00009068 in main () from
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/genmodes
(gdb) list
1       /usr/src/libexec/ld.so/resolve.c: No such file or directory.
        in /usr/src/libexec/ld.so/resolve.c

sebastia@chimera:/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa> gdb
./gcc/build/gengenrtl
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa-unknown-openbsd8.0"...
(gdb) r
Starting program:
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/gengenrtl
/* Generated automatically by gengenrtl from rtl.def.  */

#ifndef GCC_GENRTL_H
#define GCC_GENRTL_H

#include "statistics.h"

static inline rtx
gen_rtx_fmt_0_stat (RTX_CODE code, machine_mode mode MEM_STAT_DECL)
{
  rtx rt;
  rt = rtx_alloc (code PASS_MEM_STAT);

  PUT_MODE_RAW (rt, mode);
  X0EXP (rt, 0) = NULL_RTX;

  return rt;
}

#define gen_rtx_fmt_0(c, m)\
        gen_rtx_fmt_0_stat (c, m MEM_STAT_INFO)

static inline rtx

Program received signal SIGSEGV, Segmentation fault.
0x000371ac in main () from
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/gengenrtl
(gdb) bt
#0  0x000371ac in main () from
/home/ports/pobj/hppa/bootgcc-8.4.0/build-hppa/gcc/build/gengenrtl
(gdb) list
1       /usr/src/libexec/ld.so/resolve.c: No such file or directory.
        in /usr/src/libexec/ld.so/resolve.c
(gdb)

not overly helpful, at least to me.

The other genmodes and gengenrtl in ./prev-gcc/build/ directory do work
without segfault.

with and without DEBUG=-g -O0
line in my /etc/mk.conf

My mk.conf:
PORTSDIR=/home/ports
SUDO=doas
DEBUG=-g -O0
XSRCDIR=/home/xenocara
WRKOBJDIR=${PORTSDIR}/pobj/${ARCH}
PKG_CREATE_NO_CHECKS=Warn

.if exists(/home/ports/infrastructure/templates/mk.conf.template)
.include "/home/ports/infrastructure/templates/mk.conf.template"
.endif

any idea what might it be?

Sebastian

[ using 544192 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2026 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 8.0-current (GENERIC.MP) #46: Fri Oct 23 00:30:21 MDT 2026
    [email protected]:/usr/src/sys/arch/hppa/compile/GENERIC.MP
HP 9000/785/J6700 (Duet W2) PA-RISC 2.0a
real mem = 3221225472 (3072MB)
rsvd mem = 524288 (512KB)
avail mem = 3134140416 (2988MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root [flex fff80000]
pdc0 at mainbus0
power0 at mainbus0 offset 400804
lcd0 at mainbus0 offset 5d0008: model 0
cpu0 at mainbus0 offset ffa0000: PCXW2 L1-B 875MHz, FPU PCXW2 rev 1
cpu0: 768K(64b/l) Icache, 1536K(64b/l) wr-back Dcache, 240 coherent TLB
cpu1 at mainbus0 offset ffa2000: PCXW2 L1-B 875MHz, FPU PCXW2 rev 1
cpu1: 768K(64b/l) Icache, 1536K(64b/l) wr-back Dcache, 240 coherent TLB
mem0 at mainbus0 offset ed10200: size 3840MB
astro0 at mainbus0 offset ed00000: Astro rev 2.1
elroy0 at astro0 offset ed3c000: Elroy TR4.0 APIC ver 20, 7 pins
pci0 at elroy0
elroy1 at astro0 offset ed38000: Elroy TR4.0 APIC ver 20, 7 pins
pci1 at elroy1
elroy2 at astro0 offset ed34000: Elroy TR4.0 APIC ver 20, 7 pins
pci2 at elroy2
em0 at pci2 dev 1 function 0 "Intel 82546EB" rev 0x01: line 0 irq 2,
address 00:11:0a:58:80:24
em1 at pci2 dev 1 function 1 "Intel 82546EB" rev 0x01: line 1 irq 3,
address 00:11:0a:58:80:25
elroy3 at astro0 offset ed30000: Elroy TR4.0 APIC ver 20, 7 pins
pci3 at elroy3
dc0 at pci3 dev 12 function 0 "DEC 21142/3" rev 0x41: line 2 irq 5, address
00:30:6e:48:4f:28
lxtphy0 at dc0 phy 1: LXT970, rev. 3
"Analog Devices AD1889 Audio" rev 0x00 at pci3 dev 13 function 0 not
configured
pciide0 at pci3 dev 14 function 0 "NS PC87415 IDE" rev 0x03: DMA, channel 0
configured to native-PCI, channel 1 configured to native-PCI
pciide0: using line 0 irq 6 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, DW-28E, C.0B> removable
cd0(pciide0:0:0): using BIOS timings, DMA mode 2
ssio0 at pci3 dev 14 function 1 "NS 87560 Legacy I/O" rev 0x01: line 0 irq 6
com0 at ssio0 offset 3f8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at ssio0 offset 2f8 irq 3: ns16550a, 16 byte fifo
lpt0 at ssio0 offset 378 irq 7
ohci0 at pci3 dev 14 function 2 "NS USB" rev 0x02: line 0 irq 6, version
1.0, legacy support
siop0 at pci3 dev 15 function 0 "Symbios Logic 53c896" rev 0x07: line 1 irq
7, using 8K of on-board RAM
scsibus2 at siop0: 16 targets, initiator 7
siop1 at pci3 dev 15 function 1 "Symbios Logic 53c896" rev 0x07: line 1 irq
7, using 8K of on-board RAM
scsibus3 at siop1: 16 targets, initiator 7
sd0 at scsibus3 targ 5 lun 0: <HP 73.4G, ATLAS10K3_73_SCA, HP05>
naa.500e09e00637acd0
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
sd1 at scsibus3 targ 6 lun 0: <HP 73.4G, ATLAS10K3_73_SCA, HP05>
naa.500e09e006318eb6
sd1: 70007MB, 512 bytes/sector, 143374738 sectors
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "NS OHCI root hub" rev 1.00/1.00
addr 1
vscsi0 at root
siop1: target 5 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
siop1: target 6 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
bootpath: 10/0/15/1.5 class=1 flags=0 hpa=0xf4004000 spa=0x0 io=0x19000
root on sd0a (113fe18c75da8375.a) swap on sd0b dump on sd0b


-- 
https://buzzdeee.reitenba.ch

Reply via email to