(Please keep me in CC.)
>Synopsis: libexecinfo-0.3p2v0 fails to build on loongson
>Category: <PR category (one line)>
>Environment:
System : OpenBSD 6.9
Details : OpenBSD 6.9 (GENERIC) #78: Thu Apr 22 20:28:58 MDT 2021
[email protected]:/usr/src/sys/arch/loongson/compile/GENERIC
Architecture: OpenBSD.loongson
Machine : loongson
>Description:
libexecinfo-0.3p2v0 fails to build on loongson.
>How-To-Repeat:
Reproducible when building using dpb. Could apply to other archs as
well. Build log attached.
>Fix:
No idea.
dmesg:
OpenBSD 6.9 (GENERIC) #78: Thu Apr 22 20:28:58 MDT 2021
[email protected]:/usr/src/sys/arch/loongson/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1052065792 (1003MB)
random: boothowto does not indicate good seed
mainbus0 at root: Lemote Yeeloong
cpu0 at mainbus0: STC Loongson2F CPU 797 MHz, STC Loongson2F FPU
cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way
bonito0 at mainbus0: memory and PCI-X controller, rev 1
pci0 at bonito0 bus 0
rl0 at pci0 dev 7 function 0 "Realtek 8139" rev 0x10: irq 5, address
00:23:8b:33:d4:7f
rlphy0 at rl0 phy 0: RTL internal PHYsmfb0 at pci0 dev 8 function 0 "Silicon Motion LynxEM+" rev 0xb0: 1024x600, 16bpp
wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation) ohci0 at pci0 dev 9 function 0 "NEC USB" rev 0x44: irq 7, version 1.0 ehci0 at pci0 dev 9 function 1 "NEC USB" rev 0x05: irq 7 usb0 at ehci0: USB revision 2.0uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 addr 1 glxpcib0 at pci0 dev 14 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c
isa0 at glxpcib0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 mcclock0 at isa0 port 0x70/2: mc146818 or compatible ykbec0 at isa0 port 0x381/3 gpio1 at glxpcib0: 32 pins iic at glxpcib0 not configured glxclk0 at glxpcib0: clock, profpciide0 at pci0 dev 14 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHZ2160BH G2> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled)auglx0 at pci0 dev 14 function 3 "AMD CS5536 Audio" rev 0x01: isa irq 9, CS5536 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0) audio0 at auglx0ohci1 at pci0 dev 14 function 4 "AMD CS5536 USB" rev 0x02: isa irq 11, version 1.0, legacy support
ehci1 at pci0 dev 14 function 5 "AMD CS5536 USB" rev 0x02: isa irq 11 usb1 at ehci1: USB revision 2.0uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
usb2 at ohci0: USB revision 1.0uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0uhub3 at usb3 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 addr 1
apm0 at mainbus0umass0 at uhub1 port 1 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/58.87 addr 2
umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0sd0 at scsibus0 targ 1 lun 0: <Generic-, Multi-Card, 1.00> removable serial.0bda0158114173400000 urtw0 at uhub1 port 4 configuration 1 interface 0 "Realtek RTL8187B_WLAN_Adapter" rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:4d:ea:21
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
pmon bootpath: bootduid=b0c7a9c3d196767f
root on wd0a (b0c7a9c3d196767f.a) swap on wd0b dump on wd0b
usbdevs:
Controller /dev/usb0:
addr 01: 1033:0000 NEC, EHCI root hub
high speed, self powered, config 1, rev 1.00
driver: uhub0
Controller /dev/usb1:
addr 01: 1022:0000 AMD, EHCI root hub
high speed, self powered, config 1, rev 1.00
driver: uhub1
addr 02: 0bda:0158 Generic, USB2.0-CRW
high speed, power 500 mA, config 1, rev 58.87, iSerial
20071114173400000
driver: umass0
addr 03: 0bda:8189 Realtek, RTL8187B_WLAN_Adapter
high speed, power 500 mA, config 1, rev 2.00, iSerial 00e04c000001
driver: urtw0
Controller /dev/usb2:
addr 01: 1033:0000 NEC, OHCI root hub
full speed, self powered, config 1, rev 1.00
driver: uhub2
Controller /dev/usb3:
addr 01: 1022:0000 AMD, OHCI root hub
full speed, self powered, config 1, rev 1.00
driver: uhub3
>>> Building on localhost under devel/libexecinfo
DIST = [devel/libexecinfo:backtrace-0.3.tar.gz]
FULLPKGNAME = libexecinfo-0.3p2v0
distfiles size=4395
>>> Running patch in devel/libexecinfo at 1620339424.62
===> devel/libexecinfo
===> Verifying specs: c
===> found c.96.0
===> Checking files for libexecinfo-0.3p2v0
`/usr/ports/distfiles/backtrace-0.3.tar.gz' is up to date.
>> (SHA256) backtrace-0.3.tar.gz: OK
===> Extracting for libexecinfo-0.3p2v0
===> Patching for libexecinfo-0.3p2v0
===> Applying OpenBSD patch patch-examples_Makefile
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-examples_Makefile,v 1.2 2019/05/20 15:12:28 schwarze Exp $
|
|we renamed the library to execinfo
|
|Index: examples/Makefile
|--- examples/Makefile.orig
|+++ examples/Makefile
--------------------------
Patching file examples/Makefile using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 10.
done
===> Applying OpenBSD patch patch-libbacktrace_Makefile
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_Makefile,v 1.5 2021/03/08 15:54:49 sthen Exp $
|
|Index: libbacktrace/Makefile
|--- libbacktrace/Makefile.orig
|+++ libbacktrace/Makefile
--------------------------
Patching file libbacktrace/Makefile using Plan A...
Hunk #1 succeeded at 8.
Hunk #2 succeeded at 18.
done
===> Applying OpenBSD patch patch-libbacktrace_backtrace_3
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_backtrace_3,v 1.2 2019/05/20 15:12:28 schwarze
Exp $
|We renamed the library to execinfo.
|Also add the missing function names to the NAME section.
|Index: libbacktrace/backtrace.3
|--- libbacktrace/backtrace.3.orig
|+++ libbacktrace/backtrace.3
--------------------------
Patching file libbacktrace/backtrace.3 using Plan A...
Hunk #1 succeeded at 19.
done
===> Applying OpenBSD patch patch-libbacktrace_backtrace_c
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_backtrace_c,v 1.4 2016/03/11 19:46:13 sthen Exp $
|
|- __builtin_return_address() and __builtin_frame_address()
| may not always have a !0 argument.
|
|--- libbacktrace/backtrace.c.orig Thu Mar 3 10:15:09 2016
|+++ libbacktrace/backtrace.c Thu Mar 3 10:15:38 2016
--------------------------
Patching file libbacktrace/backtrace.c using Plan A...
Hunk #1 succeeded at 65.
Hunk #2 succeeded at 193.
done
===> Compiler link: clang -> /usr/bin/clang
===> Compiler link: clang++ -> /usr/bin/clang++
===> Compiler link: cc -> /usr/bin/cc
===> Compiler link: c++ -> /usr/bin/c++
>>> Running configure in devel/libexecinfo at 1620339428.77
===> devel/libexecinfo
===> Generating configure for libexecinfo-0.3p2v0
===> Configuring for libexecinfo-0.3p2v0
printf "major=2\nminor=0\n" >
/usr/ports/pobj/libexecinfo-0.3/backtrace-BACKTRACE_0_3/libbacktrace/shlib_version
>>> Running build in devel/libexecinfo at 1620339430.26
===> devel/libexecinfo
===> Building for libexecinfo-0.3p2v0
===> libbacktrace
cc -O2 -pipe -D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP
-nostdinc -idirafter /usr/include -c backtrace.c -o backtrace.o
error: return address can be determined only for current frame
error: return address can be determined only for current frame
2 errors generated.
*** Error 1 in libbacktrace (<bsd.lib.mk>:39 'backtrace.o': @cc -O2 -pipe
-D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP -nost...)
*** Error 2 in /usr/ports/pobj/libexecinfo-0.3/backtrace-BACKTRACE_0_3
(<bsd.subdir.mk>:48 'all': @for entry in libbacktrace examples; do s...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2947
'/usr/ports/pobj/libexecinfo-0.3/.build_done': @cd /usr/port...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2602
'build': @lock=libexecinfo-0.3p2v0; export _LOCKS_HELD=" li...)
===> Exiting devel/libexecinfo with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @:
${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
>>> Ended at 1620339433.63
max_stuck=0.00/patch=4.19/configure=1.48/build=3.44
Error: job failed with 512 on localhost at 1620339433
>>> Building on localhost under devel/libexecinfo
DIST = [devel/libexecinfo:backtrace-0.3.tar.gz]
FULLPKGNAME = libexecinfo-0.3p2v0
distfiles size=4395
>>> Running patch in devel/libexecinfo at 1621739421.30
===> devel/libexecinfo
>>> Running configure in devel/libexecinfo at 1621739423.19
===> devel/libexecinfo
>>> Running build in devel/libexecinfo at 1621739425.22
===> devel/libexecinfo
===> Building for libexecinfo-0.3p2v0
===> libbacktrace
cc -O2 -pipe -D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP
-nostdinc -idirafter /usr/include -c backtrace.c -o backtrace.o
error: return address can be determined only for current frame
error: return address can be determined only for current frame
2 errors generated.
*** Error 1 in libbacktrace (<bsd.lib.mk>:39 'backtrace.o': @cc -O2 -pipe
-D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP -nost...)
*** Error 2 in /usr/ports/pobj/libexecinfo-0.3/backtrace-BACKTRACE_0_3
(<bsd.subdir.mk>:48 'all': @for entry in libbacktrace examples; do s...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2947
'/usr/ports/pobj/libexecinfo-0.3/.build_done': @cd /usr/port...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2602
'build': @lock=libexecinfo-0.3p2v0; export _LOCKS_HELD=" li...)
===> Exiting devel/libexecinfo with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @:
${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
>>> Ended at 1621739441.62
max_stuck=8.98/patch=1.92/configure=2.05/build=16.48
Error: job failed with 512 on localhost at 1621739441
>>> Building on localhost under devel/libexecinfo
DIST = [devel/libexecinfo:backtrace-0.3.tar.gz]
FULLPKGNAME = libexecinfo-0.3p2v0
distfiles size=4395
>>> Running patch in devel/libexecinfo at 1621741999.08
===> devel/libexecinfo
===> Verifying specs: c
===> found c.96.0
===> Checking files for libexecinfo-0.3p2v0
`/usr/ports/distfiles/backtrace-0.3.tar.gz' is up to date.
>> (SHA256) backtrace-0.3.tar.gz: OK
===> Extracting for libexecinfo-0.3p2v0
===> Patching for libexecinfo-0.3p2v0
===> Applying OpenBSD patch patch-examples_Makefile
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-examples_Makefile,v 1.2 2019/05/20 15:12:28 schwarze Exp $
|
|we renamed the library to execinfo
|
|Index: examples/Makefile
|--- examples/Makefile.orig
|+++ examples/Makefile
--------------------------
Patching file examples/Makefile using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 10.
done
===> Applying OpenBSD patch patch-libbacktrace_Makefile
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_Makefile,v 1.5 2021/03/08 15:54:49 sthen Exp $
|
|Index: libbacktrace/Makefile
|--- libbacktrace/Makefile.orig
|+++ libbacktrace/Makefile
--------------------------
Patching file libbacktrace/Makefile using Plan A...
Hunk #1 succeeded at 8.
Hunk #2 succeeded at 18.
done
===> Applying OpenBSD patch patch-libbacktrace_backtrace_3
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_backtrace_3,v 1.2 2019/05/20 15:12:28 schwarze
Exp $
|We renamed the library to execinfo.
|Also add the missing function names to the NAME section.
|Index: libbacktrace/backtrace.3
|--- libbacktrace/backtrace.3.orig
|+++ libbacktrace/backtrace.3
--------------------------
Patching file libbacktrace/backtrace.3 using Plan A...
Hunk #1 succeeded at 19.
done
===> Applying OpenBSD patch patch-libbacktrace_backtrace_c
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-libbacktrace_backtrace_c,v 1.4 2016/03/11 19:46:13 sthen Exp $
|
|- __builtin_return_address() and __builtin_frame_address()
| may not always have a !0 argument.
|
|--- libbacktrace/backtrace.c.orig Thu Mar 3 10:15:09 2016
|+++ libbacktrace/backtrace.c Thu Mar 3 10:15:38 2016
--------------------------
Patching file libbacktrace/backtrace.c using Plan A...
Hunk #1 succeeded at 65.
Hunk #2 succeeded at 193.
done
===> Compiler link: clang -> /usr/bin/clang
===> Compiler link: clang++ -> /usr/bin/clang++
===> Compiler link: cc -> /usr/bin/cc
===> Compiler link: c++ -> /usr/bin/c++
>>> Running configure in devel/libexecinfo at 1621742007.57
===> devel/libexecinfo
===> Generating configure for libexecinfo-0.3p2v0
===> Configuring for libexecinfo-0.3p2v0
printf "major=2\nminor=0\n" >
/usr/ports/pobj/libexecinfo-0.3/backtrace-BACKTRACE_0_3/libbacktrace/shlib_version
>>> Running build in devel/libexecinfo at 1621742010.86
===> devel/libexecinfo
===> Building for libexecinfo-0.3p2v0
===> libbacktrace
cc -O2 -pipe -D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP
-nostdinc -idirafter /usr/include -c backtrace.c -o backtrace.o
error: return address can be determined only for current frame
error: return address can be determined only for current frame
2 errors generated.
*** Error 1 in libbacktrace (<bsd.lib.mk>:39 'backtrace.o': @cc -O2 -pipe
-D__BUILTIN_HACK -Wall -ggdb3 -I/usr/local/include -MD -MP -nost...)
*** Error 2 in /usr/ports/pobj/libexecinfo-0.3/backtrace-BACKTRACE_0_3
(<bsd.subdir.mk>:48 'all': @for entry in libbacktrace examples; do s...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2947
'/usr/ports/pobj/libexecinfo-0.3/.build_done': @cd /usr/port...)
*** Error 2 in devel/libexecinfo (/usr/ports/infrastructure/mk/bsd.port.mk:2602
'build': @lock=libexecinfo-0.3p2v0; export _LOCKS_HELD=" li...)
===> Exiting devel/libexecinfo with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @:
${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
>>> Ended at 1621742016.73
max_stuck=0.00/patch=8.56/configure=3.19/build=6.02
Error: job failed with 512 on localhost at 1621742016
OpenPGP_signature
Description: OpenPGP digital signature
