This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/21029] New: glibc-2.23 (and later) fails to compile with -fno-omit-frame-pointer on i386


https://sourceware.org/bugzilla/show_bug.cgi?id=21029

            Bug ID: 21029
           Summary: glibc-2.23 (and later) fails to compile with
                    -fno-omit-frame-pointer on i386
           Product: glibc
           Version: 2.23
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: 0xe2.0x9a.0x9b at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 9741
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9741&action=edit
Gentoo build log: sys-libs:glibc-2.23-r3:20170106-093416.log

I am compiling all packages on my machines with -fno-omit-frame-pointer because
it enables debuggers and performance measurement tools (gdb, perf record,
valgrind memcheck, valgrind callgrind).

However, glibc-2.23 fails to compile on my system:

../sysdeps/unix/sysv/linux/posix_fallocate.c: In function 'posix_fallocate':
../sysdeps/unix/sysv/linux/posix_fallocate.c:39:1: error: bp cannot be used in
asm here

../sysdeps/unix/sysv/linux/posix_fallocate64.c: In function
'__posix_fallocate64_l64':
../sysdeps/unix/sysv/linux/posix_fallocate64.c:42:1: error: bp cannot be used
in asm here

This bug is most likely caused by sysdeps/unix/sysv/linux/i386/sysdep.h:570:

# define LOADREGS_6(arg1, arg2, arg3, arg4, arg5, arg6) \
        register unsigned int _a6 asm ("ebp") = (unsigned int) (arg6); \
        LOADREGS_5 (arg1, arg2, arg3, arg4, arg5)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]