From: "Reni Pachernegg" <rene.pachernegg@apus.co.at>
To: Dan Dickey <ddickey@charter.net>
Cc: Marcus Sundberg <erammsu@kieraypc01.p.y.ki.era.ericsson.se>,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: Building Glibc
Date: Wed, 12 Jan 2000 09:10:49 +0100 [thread overview]
Message-ID: <387C3709.732D9A48@apus.co.at> (raw)
In-Reply-To: 387BECD0.4FFDB494@charter.net
*Note to Dave Wolfe: Changed my mail (Netscape) settings, but I'm not*
*sure if its now the format that you need. If not, please appologize*
*and give me some hints to upgrade my mail systems.*
Dan Dickey wrote:
>
> Marcus Sundberg wrote:
> >
> > "Rene Pachernegg" <rene.pachernegg@apus.co.at> writes:
> >
> > > Hello,
> > >
> > > When building the GNU libc on a cross-compiler (i686 --> PowerPc 603e)
> > > I get the following linker error (current directory: elf):
> > > ../libc_pic.a(init-first.os): In function '_dl_start':
> > > init-first.os(.text+0xb8): multiple definition of '_dl_start'
> > > dl-allobjs.os(.text0x0): first defined here Warning: size of symbol
> > > '_dl_start' changed from 1576 to 16 in init-first.os collect2: ld
> > > returned 1 exit status make[1]: *** [librtld.os] Error 1 make: ***
> > > [elf/subdir_lib] Error2
> > >
> > > What can I do? Are there special linker/compiler options?
> >
> > What version of glibc are you using?
> > How did you configure glibc?
> > What make command line (s) did you use?
>
> I'd also chime in with,
> What version of the compiler are you using?
Glibc 2.1.1 (from one of the linuxppc mirror sites, source/base/..)
Compiler: egcs-2.91.57 (thats what configure says)
configure --prefix=./tools/glibc --exec-prefix=./tools/glibc
--with-headers=**Dir of the cross-compiled Kernel and its headers**
--enable-add-ons --build=i686-*-linux --host=powerpc-*-linux-gnu
CC='powerpc-eabi-gcc -b powerpc-eabi'
CFLAGS='-mcpu=603e -meabi'
Addons are just crypt und linuxthreads.
Still more has happend since yesterday. I removed everything, unpacked
the glibc again and started building. This time it went a bit further
and reportet:
/project/v4/software/ext-tools/egcs-1.1b-newlib/bin/powerpc-eabi-gcc -b
powerpc-eabi -shared -Wl,-O1 -o libdb1.so
-Wl,-dynamic-linker=./compile/lib/ld.so.1 -B../csu/
-Wl,--version-script=../libdb1.map -Wl,-soname=libdb1.so.2
-Wl,-soname=libdb.so.2 -L.. -L../math -L../elf -L../nss -L../nis
-L../db2 -L../rt -L../resolv -L../linuxthreads
-Wl,-rpath-link=..:../math:../elf:../nss:../nis:../db2:../rt:../resolv:../linuxthreads
-Wl,--whole-archive libdb1_pic.a ../elf/interp.os ../libc.so
-Wl,--no-whole-archive
collect2: ld terminated with signal 11 [Segmentation fault]
powerpc-eabi-gcc: file path prefix `../csu/' never used
make[1]: *** [libdb1.so] Error 1
make[1]: Leaving directory `/opt/v4lx/work/linux_pkg/glibc/glibc2/db'
make: *** [db/others] Error 2
I suppose I messed something up at the first try( I'am new to powerpc
cross compiling and not what you'd call an experienced linux user). I
hope you have got enough information for helping me a little bit. Thanks
in advance.
Regards
Rene
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-01-12 8:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-11 8:52 Building Glibc Rene Pachernegg
2000-01-11 19:01 ` Marcus Sundberg
2000-01-12 2:54 ` Dan Dickey
2000-01-12 8:10 ` Reni Pachernegg [this message]
2000-01-12 12:01 ` Marcus Sundberg
-- strict thread matches above, loose matches on Subject: below --
2000-01-12 11:37 kd
2000-01-12 12:29 ` Reni Pachernegg
2000-01-12 13:21 kd
2000-01-12 15:03 ` René Pachernegg
2000-01-12 22:55 ` Graham Stoney
2000-01-13 16:52 ` Reni Pachernegg
2000-01-13 17:23 ` Ben Sapp
2000-01-13 17:39 kd
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=387C3709.732D9A48@apus.co.at \
--to=rene.pachernegg@apus.co.at \
--cc=ddickey@charter.net \
--cc=erammsu@kieraypc01.p.y.ki.era.ericsson.se \
--cc=linuxppc-embedded@lists.linuxppc.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 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 NNTP newsgroup(s).