All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Zeimetz <bernd@bzed.de>
To: sparclinux@vger.kernel.org
Subject: Re: klibc sparc trouble with gcc > 4.0
Date: Fri, 09 Nov 2007 17:59:15 +0000	[thread overview]
Message-ID: <47349FF3.9010402@bzed.de> (raw)
In-Reply-To: <20071105135545.GA11201@stro.at>

Oleg Verych wrote:
> = Mon, Nov 05, 2007 at 02:55:45PM +0100, maximilian attems =
> []
>> titan:~# strace -vfF /usr/lib/klibc/bin/fstype
>> execve("/usr/lib/klibc/bin/fstype", ["/usr/lib/klibc/bin/fstype"],
>> ["SHELL=/bin/bash", "TERM=xterm", "SSH_CLIENT=[myip] 39403"...,
>> "SSH_TTY=/dev/pts/0", "USER=root",
>> "LS_COLORS=no\0:fi\0:di\x01;34:l"...,
>> "PATH=/usr/local/sbin:/usr/local/"..., "MAIL=/var/mail/root",
>> "PWD=/root", "LANG=en_US.UTF-8", "PS1=\\h:\\w\\$ ", "HOME=/root",
>> "SHLVL=2", "LS_OPTIONS=--color=auto", "LOGNAME=root",
>> "SSH_CONNECTION=[myip] 3"..., "_=/usr/bin/strace", "OLDPWD=/"]) = 0
>> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
>> +++ killed by SIGSEGV +++
> 
> gdb doesn't work/help?

(gdb) where
#0  0x8000faac in ?? ()
#1  0x8000facc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Not sure if this is a gdb problem, though - never even tried to debug klibc.
With the mentioned patch klibc compiles, but all utils just segfault,
strace is as short as seen above.

> 
> []
>> +++ b/usr/klibc/libgcc/__clzdi2.c
>> @@ -0,0 +1,23 @@
>> +/*
>> + * __clzdi2 - Returns the leading number of 0 bits in the argument
>> + */
>> +


without this patch it doesn't compile at all:


  KLIBCLD usr/klibc/libc.so
ld: sparc architecture of input file
`/usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a(_clzdi2.o)' is incompatible
with sparc:v9 output
ld: sparc architecture of input file
`/usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a(_clz.o)' is incompatible
with sparc:v9 output
/usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a(_clzdi2.o): In function
`__clzdi2':
(.text+0xc): undefined reference to `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc/sparc-linux-gnu/4.2.3/libgcc.a(_clzdi2.o): In function
`__clzdi2':
(.text+0x14): undefined reference to `_GLOBAL_OFFSET_TABLE_'
make[3]: *** [usr/klibc/libc.so] Error 1
make[2]: *** [all] Error 2
make[1]: *** [klibc] Error 2
make[1]: Leaving directory `/root/klibc-1.5.7'

-- 
Bernd Zeimetz
<bernd@bzed.de>                         <http://bzed.de/>

      parent reply	other threads:[~2007-11-09 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 13:55 klibc sparc trouble with gcc > 4.0 maximilian attems
2007-11-06  2:49 ` Oleg Verych
2007-11-06  8:30 ` [klibc] " H. Peter Anvin
2007-11-09 17:59 ` Bernd Zeimetz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47349FF3.9010402@bzed.de \
    --to=bernd@bzed.de \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.