public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
@ 2022-03-13 22:45 sam at gentoo dot org
2022-03-13 22:45 ` [Bug libc/28960] " sam at gentoo dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2022-03-13 22:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
Bug ID: 28960
Summary: Failure to build on HPPA in swapcontext ({standard
input}:15: Error: CFI instruction used without
previous .cfi_startproc)
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: sam at gentoo dot org
CC: danglin at gcc dot gnu.org, drepper.fsp at gmail dot com
Target Milestone: ---
Created attachment 14014
--> https://sourceware.org/bugzilla/attachment.cgi?id=14014&action=edit
build.log
Using release/2.34/master up to 6c9c2307657529e52c5fa7037618835f2a50b916
(https://sourceware.org/git/?p=glibc.git;a=commit;h=6c9c2307657529e52c5fa7037618835f2a50b916),
I get the following build failure on HPPA:
```
hppa2.0-unknown-linux-gnu-gcc -pipe -march=2.0 -O2 -Wl,-O1 -Wl,--as-needed
../sysdeps/unix/sysv/linux/hppa/swapcontext.c -c -std=gnu11 -fgnu89-inline
-pipe -march=2.0 -O2 -Wall -Wwrite-strings -Wundef -fmerge-all-constants
-frounding-math -fno-stack-protector -fno-common -Wstrict-prototypes
-Wold-style-definition -fmath-errno -ftls-model=initial-exec
-U_FORTIFY_SOURCE -DGENTOO_USE_CLONE3 -I../include
-I/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/stdlib
-I/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl
-I../sysdeps/unix/sysv/linux/hppa -I../sysdeps/hppa/nptl
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
-I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/hppa/hppa1.1 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/hppa/fpu
-I../sysdeps/hppa -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio
-I. -nostdinc -isystem /usr/lib/gcc/hppa2.0-unknown-linux-gnu/11.2.1/include
-isystem /usr/lib/gcc/hppa2.0-unknown-linux-gnu/11.2.1/include-fixed -isystem
/usr/include -D_LIBC_REENTRANT -include
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC
-DTOP_NAMESPACE=glibc -o
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/stdlib/swapcontext.o
-MD -MP -MF
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/stdlib/swapcontext.o.dt
-MT
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/stdlib/swapcontext.o
{standard input}: Assembler messages:
{standard input}:15: Error: CFI instruction used without previous
.cfi_startproc
{standard input}:24: Error: CFI instruction used without previous
.cfi_startproc
{standard input}:36: Error: CFI instruction used without previous
.cfi_startproc
make[2]: ***
[/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/sysd-rules:9:
/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl/stdlib/swapcontext.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.34-r10/work/glibc-2.34/stdlib'
make[1]: *** [Makefile:479: stdlib/subdir_lib] Error 2
make[1]: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.34-r10/work/glibc-2.34'
make: *** [Makefile:9: all] Error 2
make: Leaving directory
'/var/tmp/portage/sys-libs/glibc-2.34-r10/work/build-hppa-hppa2.0-unknown-linux-gnu-nptl'
* ERROR: sys-libs/glibc-2.34-r10::gentoo failed (compile phase):
* emake failed
```
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
@ 2022-03-13 22:45 ` sam at gentoo dot org
2022-03-13 23:14 ` dave.anglin at bell dot net
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2022-03-13 22:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Build| |hppa2.0-unknown-linux-gnu
Target| |hppa2.0-unknown-linux-gnu
CC| |toolchain at gentoo dot org
Host| |hppa2.0-unknown-linux-gnu
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
2022-03-13 22:45 ` [Bug libc/28960] " sam at gentoo dot org
@ 2022-03-13 23:14 ` dave.anglin at bell dot net
2022-03-13 23:53 ` schwab@linux-m68k.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dave.anglin at bell dot net @ 2022-03-13 23:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
--- Comment #1 from dave.anglin at bell dot net ---
On 2022-03-13 6:45 p.m., sam at gentoo dot org wrote:
> {standard input}: Assembler messages:
> {standard input}:15: Error: CFI instruction used without previous
> .cfi_startproc
This doesn't occur in my builds.
.file "swapcontext.c"
.version "01.01"
.LEVEL 1.1
.text
.Ltext0:
.cfi_sections .debug_frame
.align 4
.globl __swapcontext
.type __swapcontext, @function
__swapcontext:
.PROC
.CALLINFO FRAME=0,NO_CALLS
.ENTRY
.LVL0:
.LFB0:
.file 1 "../sysdeps/unix/sysv/linux/hppa/swapcontext.c"
.loc 1 28 1 view -0
.cfi_startproc
I guess it's because you don't have -g in build command.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
2022-03-13 22:45 ` [Bug libc/28960] " sam at gentoo dot org
2022-03-13 23:14 ` dave.anglin at bell dot net
@ 2022-03-13 23:53 ` schwab@linux-m68k.org
2022-03-14 11:35 ` sam at gentoo dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2022-03-13 23:53 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
Changing the stack pointer behind the compiler's back is not guaranteed to work
in any meaningful way.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
` (2 preceding siblings ...)
2022-03-13 23:53 ` schwab@linux-m68k.org
@ 2022-03-14 11:35 ` sam at gentoo dot org
2022-03-14 15:41 ` dave.anglin at bell dot net
2022-03-15 15:34 ` danglin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2022-03-14 11:35 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
--- Comment #3 from Sam James <sam at gentoo dot org> ---
Yes, using -g* does work around the issue and results in a successful build.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
` (3 preceding siblings ...)
2022-03-14 11:35 ` sam at gentoo dot org
@ 2022-03-14 15:41 ` dave.anglin at bell dot net
2022-03-15 15:34 ` danglin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: dave.anglin at bell dot net @ 2022-03-14 15:41 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
--- Comment #4 from dave.anglin at bell dot net ---
On 2022-03-13 7:53 p.m., schwab@linux-m68k.org wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=28960
>
> --- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
> Changing the stack pointer behind the compiler's back is not guaranteed to work
> in any meaningful way.
Not too worried about this but will have to convert routine to assembly to fix
cfi handling.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/28960] Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc)
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
` (4 preceding siblings ...)
2022-03-14 15:41 ` dave.anglin at bell dot net
@ 2022-03-15 15:34 ` danglin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu.org @ 2022-03-15 15:34 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28960
John David Anglin <danglin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
Fixed on master:
commit d05e6dc8d1032e1732542a48e0fb895432008b6e (HEAD -> master, origin/master,
origin/HEAD)
Author: John David Anglin <danglin@gcc.gnu.org>
Date: Tue Mar 15 15:12:03 2022 +0000
hppa: Implement swapcontext in assembler (bug 28960)
When swapcontext.c is compiled without -g, the following error occurs:
Error: CFI instruction used without previous .cfi_startproc
Fix by converting swapcontext routine to assembler.
Will back port.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-03-15 15:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-13 22:45 [Bug libc/28960] New: Failure to build on HPPA in swapcontext ({standard input}:15: Error: CFI instruction used without previous .cfi_startproc) sam at gentoo dot org
2022-03-13 22:45 ` [Bug libc/28960] " sam at gentoo dot org
2022-03-13 23:14 ` dave.anglin at bell dot net
2022-03-13 23:53 ` schwab@linux-m68k.org
2022-03-14 11:35 ` sam at gentoo dot org
2022-03-14 15:41 ` dave.anglin at bell dot net
2022-03-15 15:34 ` danglin at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).