* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
@ 2003-11-17 14:18 ` pinskia at gcc dot gnu dot org
2003-11-17 15:45 ` lshulov at arabellasw dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-17 14:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 14:18 -------
Can you provide the file start.S?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Component|c++ |preprocessor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
2003-11-17 14:18 ` [Bug preprocessor/13085] " pinskia at gcc dot gnu dot org
@ 2003-11-17 15:45 ` lshulov at arabellasw dot com
2003-11-17 15:51 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-17 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lshulov at arabellasw dot com 2003-11-17 15:45 -------
Subject: Re: GLIBC compiled with error
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 14:18 -------
> Can you provide the file start.S
yes, file start.S attached
/* Startup code for programs linked with GNU libc.
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#include <sysdep.h>
#include "bp-sym.h"
/* These are the various addresses we require. */
.section ".rodata"
.align 2
L(start_addresses):
.long _SDA_BASE_
.long JUMPTARGET(BP_SYM (main))
.long JUMPTARGET(__libc_csu_init)
.long JUMPTARGET(__libc_csu_fini)
ASM_SIZE_DIRECTIVE(L(start_addresses))
.section ".text"
ENTRY(_start)
/* Save the stack pointer, in case we're statically linked under Linux. */
mr r9,r1
/* Set up an initial stack frame, and clear the LR. */
clrrwi r1,r1,4
li r0,0
stwu r1,-16(r1)
mtlr r0
stw r0,0(r1)
/* Set r13 to point at the 'small data area', and put the address of
start_addresses in r8... */
lis r8,L(start_addresses)@ha
lwzu r13,L(start_addresses)@l(r8)
/* and continue in libc-start, in glibc. */
b JUMPTARGET(BP_SYM (__libc_start_main))
END(_start)
/* Define a symbol for the first piece of initialized data. */
.section ".data"
.globl __data_start
__data_start:
weak_alias (__data_start, data_start)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
2003-11-17 14:18 ` [Bug preprocessor/13085] " pinskia at gcc dot gnu dot org
2003-11-17 15:45 ` lshulov at arabellasw dot com
@ 2003-11-17 15:51 ` pinskia at gcc dot gnu dot org
2003-11-18 8:36 ` lshulov at arabellasw dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-17 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 15:51 -------
Can you add -save-temps (and -dP) to the command line of the failing command and rerun it and
provide the file start.s?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (2 preceding siblings ...)
2003-11-17 15:51 ` pinskia at gcc dot gnu dot org
@ 2003-11-18 8:36 ` lshulov at arabellasw dot com
2003-11-18 9:06 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-18 8:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lshulov at arabellasw dot com 2003-11-18 08:36 -------
Subject: Re: GLIBC compiled with error
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 15:51 -------
> Can you add -save-temps (and -dP) to the command line of the failing command and rerun it and
> provide the file start.s?
>
I done with same results. File start.s attached.
# 1 "sysdeps/powerpc/powerpc32/elf/start.S"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "include/libc-symbols.h" 1
# 56 "include/libc-symbols.h"
# 1 "/home/GNU/obj/glibc/config.h" 1
# 57 "include/libc-symbols.h" 2
# 8 "<command line>" 2
# 1 "sysdeps/powerpc/powerpc32/elf/start.S"
# 20 "sysdeps/powerpc/powerpc32/elf/start.S"
# 1 "sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h" 1
# 22 "sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h"
# 1 "sysdeps/unix/powerpc/sysdep.h" 1
# 20 "sysdeps/unix/powerpc/sysdep.h"
# 1 "sysdeps/unix/sysdep.h" 1
# 19 "sysdeps/unix/sysdep.h"
# 1 "sysdeps/generic/sysdep.h" 1
# 20 "sysdeps/unix/sysdep.h" 2
# 1 "sysdeps/unix/sysv/linux/sys/syscall.h" 1
# 25 "sysdeps/unix/sysv/linux/sys/syscall.h"
# 1 "/home/GNU/kernel-2.4.21/include/asm/unistd.h" 1 3 4
# 26 "sysdeps/unix/sysv/linux/sys/syscall.h" 2
# 22 "sysdeps/unix/sysdep.h" 2
# 21 "sysdeps/unix/powerpc/sysdep.h" 2
# 1 "sysdeps/powerpc/powerpc32/bits/wordsize.h" 1
# 22 "sysdeps/unix/powerpc/sysdep.h" 2
# 1 "sysdeps/powerpc/powerpc32/sysdep.h" 1
# 22 "sysdeps/powerpc/powerpc32/sysdep.h"
# 1 "sysdeps/powerpc/sysdep.h" 1
# 23 "sysdeps/powerpc/powerpc32/sysdep.h" 2
# 26 "sysdeps/unix/powerpc/sysdep.h" 2
# 23 "sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h" 2
# 21 "sysdeps/powerpc/powerpc32/elf/start.S" 2
# 1 "sysdeps/generic/bp-sym.h" 1
# 22 "sysdeps/powerpc/powerpc32/elf/start.S" 2
.section ".rodata"
.align 2
L(start_addresses):
.long _SDA_BASE_
.long main
.long __libc_csu_init
.long __libc_csu_fini
ASM_SIZE_DIRECTIVE(L(start_addresses))
.section ".text"
ENTRY(_start)
mr 9,1
clrrwi 1,1,4
li 0,0
stwu 1,-16(1)
mtlr 0
stw 0,0(1)
lis 8,L(start_addresses)@ha
lwzu 13,L(start_addresses)@l(8)
b __libc_start_main
.section ".data"
.globl __data_start
__data_start:
.weak data_start ; data_start = __data_start
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (3 preceding siblings ...)
2003-11-18 8:36 ` lshulov at arabellasw dot com
@ 2003-11-18 9:06 ` pinskia at gcc dot gnu dot org
2003-11-18 9:22 ` lshulov at arabellasw dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 9:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 09:06 -------
I had meant -dD not -dP, can you add that with -save-temps and give the output, it looks
more and more like a glibc bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (4 preceding siblings ...)
2003-11-18 9:06 ` pinskia at gcc dot gnu dot org
@ 2003-11-18 9:22 ` lshulov at arabellasw dot com
2003-11-18 9:24 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-18 9:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lshulov at arabellasw dot com 2003-11-18 09:22 -------
Subject: Re: GLIBC compiled with error
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 09:06 -------
> I had meant -dD not -dP, can you add that with -save-temps and give the output, it looks
> more and more like a glibc bug.
>
I did what you suggested but without any results, sorry
Leonid
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (5 preceding siblings ...)
2003-11-18 9:22 ` lshulov at arabellasw dot com
@ 2003-11-18 9:24 ` pinskia at gcc dot gnu dot org
2003-11-18 9:43 ` lshulov at arabellasw dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 9:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 09:24 -------
We need the resulting file when you use -dD as that option keeps the defines.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (6 preceding siblings ...)
2003-11-18 9:24 ` pinskia at gcc dot gnu dot org
@ 2003-11-18 9:43 ` lshulov at arabellasw dot com
2003-11-19 18:57 ` pinskia at gcc dot gnu dot org
2003-11-20 9:19 ` lshulov at arabellasw dot com
9 siblings, 0 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-18 9:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lshulov at arabellasw dot com 2003-11-18 09:43 -------
Subject: Re: GLIBC compiled with error
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 09:24 -------
> We need the resulting file when you use -dD as that option keeps the defines.
>
After command with -dD I did not get any resulting file (no start.s and
start.o)
Leonid
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (7 preceding siblings ...)
2003-11-18 9:43 ` lshulov at arabellasw dot com
@ 2003-11-19 18:57 ` pinskia at gcc dot gnu dot org
2003-11-20 9:19 ` lshulov at arabellasw dot com
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-19 18:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-19 18:57 -------
Try a different glibc, as other people are able to compile glibc and this is not a GCC bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug preprocessor/13085] GLIBC compiled with error
2003-11-17 12:37 [Bug c++/13085] New: GLIBC compiled with error lshulov at arabellasw dot com
` (8 preceding siblings ...)
2003-11-19 18:57 ` pinskia at gcc dot gnu dot org
@ 2003-11-20 9:19 ` lshulov at arabellasw dot com
9 siblings, 0 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-20 9:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lshulov at arabellasw dot com 2003-11-20 09:19 -------
Subject: Re: GLIBC compiled with error
I tested with glibc-2.3.1 with the same result.
So as you suppose this is a GCC bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13085
^ permalink raw reply [flat|nested] 11+ messages in thread