public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13085] New: GLIBC compiled with error
@ 2003-11-17 12:37 lshulov at arabellasw dot com
  2003-11-17 14:18 ` [Bug preprocessor/13085] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: lshulov at arabellasw dot com @ 2003-11-17 12:37 UTC (permalink / raw)
  To: gcc-bugs

Use:
Debian 3.0
binutils_2.14.90.0.7
gcc-3.3_3.3.2ds5
glibc-2.3.2.ds1
linux-2.4.21

GLIBC configuration:
CC=powerpc-linux-gcc /home/GNU/glibc-2.3.2/configure \
--build=i686-pc-linux-gnu --host=powerpc-linux \
--prefix=/opt/Arabella/powerpc-linux --enable-add-ons \
--with-headers=/home/GNU/kernel-2.4.21/include

Error:
...........
powerpc-linux-gcc ../sysdeps/powerpc/powerpc32/elf/start.S -c -I../include -I.
-I/home/GNU/obj/glibc/csu -I.. -I../libio -I/home/GNU/obj/glibc
-I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../linuxthreads/sysdeps/unix/sysv/linux/powerpc
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc/powerpc32
-I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc/powerpc32
-I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu
-I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32
-I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem
/opt/Arabella/lib/gcc-lib/powerpc-linux/3.3.2/include -isystem
/home/GNU/kernel-2.4.21/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -DHAVE_INITFINI -DASSEMBLER
-I/home/GNU/obj/glibc/csu/. -Wa,-mppc  -o /home/GNU/obj/glibc/csu/start.o
../sysdeps/powerpc/powerpc32/elf/start.S: Assembler messages:
../sysdeps/powerpc/powerpc32/elf/start.S:26: Error: Unrecognized opcode:
`l(start_addresses):'
../sysdeps/powerpc/powerpc32/elf/start.S:31: Error: Unrecognized opcode:
`asm_size_directive(L(start_addresses))'
../sysdeps/powerpc/powerpc32/elf/start.S:34: Error: Unrecognized opcode:
`entry(_start)'
../sysdeps/powerpc/powerpc32/elf/start.S:45: Error: syntax error; found `(' but
expected `,'
../sysdeps/powerpc/powerpc32/elf/start.S:45: Error: junk at end of line:
`(start_addresses)@ha'
../sysdeps/powerpc/powerpc32/elf/start.S:46: Error: junk at end of line: `@l(8)'
make[2]: *** [/home/GNU/obj/glibc/csu/start.o] Error 1
make[2]: Leaving directory `/home/GNU/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/GNU/glibc-2.3.2'
make: *** [all] Error 2

-- 
           Summary: GLIBC compiled with error
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lshulov at arabellasw dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux


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 ` 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

end of thread, other threads:[~2003-11-20  9:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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

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).