[Bug build/25792] New: GCC 6.4 can't build glibc

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] New: GCC 6.4 can't build glibc

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

            Bug ID: 25792
           Summary: GCC 6.4 can't build glibc
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: carlos at redhat dot com
  Target Milestone: ---
            Target: i386

/usr/gcc-6.4.1-x32/bin/gcc -m32
../sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c -c -std=gnu11
-fgnu89-inline  -O2 -g -march=i686 -Wall -Wwrite-strings -Wundef -Werror
-fmerge-all-constants -frounding-math -fno-stack-protector -Wstrict-prototypes
-Wold-style-definition -fmath-errno  -fno-omit-frame-pointer  -Wa,-mtune=i686  
-ftls-model=initial-exec      -I../include
-I/export/build/gnu/tools-build/glibc-32bit/build-i686-linux/nptl
-I/export/build/gnu/tools-build/glibc-32bit/build-i686-linux
-I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl
-I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86/include
-I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/i386/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/i386
-I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch
-I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch
-I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu
-I../sysdeps/i386  -I../sysdeps/x86  -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include
-I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I..
-I../libio -I.   -D_LIBC_REENTRANT -include
/export/build/gnu/tools-build/glibc-32bit/build-i686-linux/libc-modules.h
-DMODULE_NAME=libpthread -include ../include/libc-symbols.h      
-DTOP_NAMESPACE=glibc -o
/export/build/gnu/tools-build/glibc-32bit/build-i686-linux/nptl/pthread_mutex_timedlock.o
-MD -MP -MF
/export/build/gnu/tools-build/glibc-32bit/build-i686-linux/nptl/pthread_mutex_timedlock.o.dt
-MT
/export/build/gnu/tools-build/glibc-32bit/build-i686-linux/nptl/pthread_mutex_timedlock.o
In file included from
../sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c:22:0:
../nptl/pthread_mutex_timedlock.c: In function
‘__pthread_mutex_clocklock_common’:
../nptl/pthread_mutex_timedlock.c:599:1: error: bp cannot be used in asm here
 }
 ^

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GCC 6.4 can't build glibc   |GCC 6.4 can't build glibc
                   |                            |with
                   |                            |-fno-omit-frame-pointer

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #1 from Andreas Schwab <[hidden email]> ---
Does it work with gcc 7?

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
GCC 7 and 8 have the same problem.  GCC 9 is OK.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Which was the configure command? And which is the value of
CAN_USE_REGISTER_ASM_EBP on config.h?

I think it might be related to the -Os issues (BZ#25240 and BZ#22581)

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Adhemerval Zanella from comment #3)
> Which was the configure command? And which is the value of
> CAN_USE_REGISTER_ASM_EBP on config.h?
>

config.h:#define CAN_USE_REGISTER_ASM_EBP 0

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #5 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
It is the expected config.h value for -fno-omit-frame-pointer, but I don't know
exactly why it is failing with GCC 6.4.  

At least with gcc 7.5.0 (from ubuntu 18.04) the build does not fail with

configure CC="gcc -m32 -march=i686 -fno-omit-frame-pointer" CXX="g++  -m32
-march=i686 -fno-omit-frame-pointer" --prefix=/usr --build=x86_64-linux-gnu
--host=i686-linux-gnu

I will try to build gcc 6.4 and check.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Adhemerval Zanella from comment #5)

> It is the expected config.h value for -fno-omit-frame-pointer, but I don't
> know exactly why it is failing with GCC 6.4.  
>
> At least with gcc 7.5.0 (from ubuntu 18.04) the build does not fail with
>
> configure CC="gcc -m32 -march=i686 -fno-omit-frame-pointer" CXX="g++  -m32
> -march=i686 -fno-omit-frame-pointer" --prefix=/usr --build=x86_64-linux-gnu
> --host=i686-linux-gnu
>
> I will try to build gcc 6.4 and check.

I know what is going on.  It is caused by my patch to remove GCC 5 support.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

--- Comment #7 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to H.J. Lu from comment #6)

> (In reply to Adhemerval Zanella from comment #5)
> > It is the expected config.h value for -fno-omit-frame-pointer, but I don't
> > know exactly why it is failing with GCC 6.4.  
> >
> > At least with gcc 7.5.0 (from ubuntu 18.04) the build does not fail with
> >
> > configure CC="gcc -m32 -march=i686 -fno-omit-frame-pointer" CXX="g++  -m32
> > -march=i686 -fno-omit-frame-pointer" --prefix=/usr --build=x86_64-linux-gnu
> > --host=i686-linux-gnu
> >
> > I will try to build gcc 6.4 and check.
>
> I know what is going on.  It is caused by my patch to remove GCC 5 support.

I was about to comment that patch on libc-alpha, we can't remove that code
because we need to the CAN_USE_REGISTER_ASM_EBP.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/25792] GCC 6.4 can't build glibc with -fno-omit-frame-pointer

Sourceware - glibc-bugs mailing list
In reply to this post by Sourceware - glibc-bugs mailing list
https://sourceware.org/bugzilla/show_bug.cgi?id=25792

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> ---
False alarm.

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