linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Building Glibc
@ 2000-01-11  8:52 Rene Pachernegg
  2000-01-11 19:01 ` Marcus Sundberg
  0 siblings, 1 reply; 13+ messages in thread
From: Rene Pachernegg @ 2000-01-11  8:52 UTC (permalink / raw)
  To: linuxppc-embedded


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?

Regards
    Rene

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Building Glibc
@ 2000-01-12 11:37 kd
  2000-01-12 12:29 ` Reni Pachernegg
  0 siblings, 1 reply; 13+ messages in thread
From: kd @ 2000-01-12 11:37 UTC (permalink / raw)
  To: linuxppc-embedded



And of course what binutils. That was a stumbling block for me, i.e. if it
is glibc 2.1.2. Buildin glibc 2.1.2 on ppc requieres binutils later than
version (or equal) 2.9.4.
I used 2.9.5 with success.

K.D.


                                                                                                                                                    
                    Dan Dickey <ddickey@charter.net>                                                                                                
                    Sent by:                                To:                                                                                     
                    owner-linuxppc-embedded@lists.li        cc:                                                                                     
                    nuxppc.org                              Subject:     Re: Building Glibc                                                         
                                                                                                                                                    
                                                                                                                                                    
                    01/12/2000 02:54 AM                                                                                                             
                                                                                                                                                    
                                                                                                                                                    





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?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Building Glibc
@ 2000-01-12 13:21 kd
  2000-01-12 15:03 ` René Pachernegg
  0 siblings, 1 reply; 13+ messages in thread
From: kd @ 2000-01-12 13:21 UTC (permalink / raw)
  To: René Pachernegg; +Cc: linuxppc-embedded



I have an debian system so I upgraded my gcc to 2.95.2 and binutils to
2.9.5 just by inserting the appropriate packages on the system and
resolving conflicts/dependencies.
That was necessary (I think) to build the cross compiler (version 2.95.2
also) and the cross binutils (also version 2.9.5). Now I had the
tools to build the glibc-2.1.2 for the ppc.

So I ended up installing the latest gcc and binutils in order to compile
the latest cross-gcc and glibc.

Check the documentation for glibc (if you havent allready) it mentions the
minimum version requirements for all the tools.

K.D.



                                                                                                                                                    
                    "René Pachernegg"                                                                                                               
                    <rene.pachernegg@apus.co.at>            To:     kd@flaga.is                                                                     
                    Sent by:                                cc:     linuxppc-embedded@lists.linuxppc.org                                            
                    owner-linuxppc-embedded@lists.li        Subject:     Re: Building Glibc                                                         
                    nuxppc.org                                                                                                                      
                                                                                                                                                    
                                                                                                                                                    
                    01/12/2000 12:29 PM                                                                                                             
                                                                                                                                                    
                                                                                                                                                    





typing 'as -v' writes:
GNU assembler version 2.9.1, using BFD version 2.9.1.0.25
If this is what you mean, how can I get the version 2.9.5?
Do I have to install a new compiler?

Regards
     Rene

kd@flaga.is wrote:
>
> And of course what binutils. That was a stumbling block for me, i.e. if
it
> is glibc 2.1.2. Buildin glibc 2.1.2 on ppc requieres binutils later than
> version (or equal) 2.9.4.
> I used 2.9.5 with success.
>
> K.D.
>
>
>                     Dan Dickey <ddickey@charter.net>
>                     Sent by:                                To:
>                     owner-linuxppc-embedded@lists.li        cc:
>                     nuxppc.org                              Subject:
Re: Building Glibc
>
>
>                     01/12/2000 02:54 AM
>
>
>
> 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?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Building Glibc
@ 2000-01-13 17:39 kd
  0 siblings, 0 replies; 13+ messages in thread
From: kd @ 2000-01-13 17:39 UTC (permalink / raw)
  To: René Pachernegg; +Cc: greyham, linuxppc-embedded



I think (if I remember correctly) that I fixed this error by adding my
cross-bin path to the $PATH variable, e.g. export
PATH=/usr/ppccross/bin:$PATH

K.D.


Building gcc stopped with:
as: unknown option -ppc

Any propositions?
Regards
     Rene


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-01-13 17:39 UTC | newest]

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

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