* 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-11 8:52 Building Glibc Rene Pachernegg
@ 2000-01-11 19:01 ` Marcus Sundberg
2000-01-12 2:54 ` Dan Dickey
0 siblings, 1 reply; 13+ messages in thread
From: Marcus Sundberg @ 2000-01-11 19:01 UTC (permalink / raw)
To: Rene Pachernegg; +Cc: linuxppc-embedded
"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?
//Marcus
--
Signature under construction, please come back later.
** 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-11 19:01 ` Marcus Sundberg
@ 2000-01-12 2:54 ` Dan Dickey
2000-01-12 8:10 ` Reni Pachernegg
0 siblings, 1 reply; 13+ messages in thread
From: Dan Dickey @ 2000-01-12 2:54 UTC (permalink / raw)
To: Marcus Sundberg; +Cc: Rene Pachernegg, linuxppc-embedded
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 2:54 ` Dan Dickey
@ 2000-01-12 8:10 ` Reni Pachernegg
2000-01-12 12:01 ` Marcus Sundberg
0 siblings, 1 reply; 13+ messages in thread
From: Reni Pachernegg @ 2000-01-12 8:10 UTC (permalink / raw)
To: Dan Dickey; +Cc: Marcus Sundberg, linuxppc-embedded
*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/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Building Glibc
2000-01-12 8:10 ` Reni Pachernegg
@ 2000-01-12 12:01 ` Marcus Sundberg
0 siblings, 0 replies; 13+ messages in thread
From: Marcus Sundberg @ 2000-01-12 12:01 UTC (permalink / raw)
To: René Pachernegg; +Cc: linuxppc-embedded
"René Pachernegg" <rene.pachernegg@apus.co.at> writes:
> Glibc 2.1.1 (from one of the linuxppc mirror sites, source/base/..)
> Compiler: egcs-2.91.57 (thats what configure says)
Sounds old.
> 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.
I'm not really sure a compiler built for use with newlib and eabi (is
eabi what PPC Linux uses or is it another abi?) (which your compiler
path and name suggests), contains the correct startup code for use with
glibc and programs/libraries linked against it. The signal 11 in any
case suggests that there is something very wrong with your build tools.
I suggest you install binutils 2.9.1.0.25 and gcc 2.95.2 as cross tools,
and configure them with ppc-linux as target.
//Marcus
--
Signature under construction, please come back later.
** 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 11:37 kd
@ 2000-01-12 12:29 ` Reni Pachernegg
0 siblings, 0 replies; 13+ messages in thread
From: Reni Pachernegg @ 2000-01-12 12:29 UTC (permalink / raw)
To: kd; +Cc: linuxppc-embedded
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-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-12 13:21 kd
@ 2000-01-12 15:03 ` René Pachernegg
2000-01-12 22:55 ` Graham Stoney
0 siblings, 1 reply; 13+ messages in thread
From: René Pachernegg @ 2000-01-12 15:03 UTC (permalink / raw)
To: kd; +Cc: linuxppc-embedded
I am trying to build the newest gcc as my powerpc-cross-compiler now
(without installing the new gcc as my native compiler;is this really
necessary?), but I have still problems with the configure options:
--with-headers and
--with-libs
All I have untill now is the cross-compiled kernel and it's header
files. Is it right to set --with-headers to this dir?
What to do with -with-libs?
Got the message:
cant find stdlib.h
cant find unistd.h
Regards
Rene
kd@flaga.is wrote:
>
> 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-12 15:03 ` René Pachernegg
@ 2000-01-12 22:55 ` Graham Stoney
2000-01-13 16:52 ` Reni Pachernegg
0 siblings, 1 reply; 13+ messages in thread
From: Graham Stoney @ 2000-01-12 22:55 UTC (permalink / raw)
To: Reni Pachernegg; +Cc: kd, linuxppc-embedded
=?iso-8859-1?Q?Ren=E9?= Pachernegg writes:
> I am trying to build the newest gcc as my powerpc-cross-compiler now
> (without installing the new gcc as my native compiler;is this really
> necessary?), but I have still problems with the configure options:
No, you shouldn't need to install gcc as your native compiler. However, you
need to make two passes at building your powerpc-linux-gcc cross. Before
building libc, configure it with:
configure --with-languages=c --with-newlib
The '--with-newlib' should stop it complaining about libc missing, but the
libiberty build will still fail because of the missing headers. Nevertheless,
you can 'make install' and move on to configure/build glibc. After installing
glibc, go back and reconfigure & rebuild gcc (and g++ if you want it) without
the '--with-newlib' option.
Good luck!
Graham
** 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 22:55 ` Graham Stoney
@ 2000-01-13 16:52 ` Reni Pachernegg
2000-01-13 17:23 ` Ben Sapp
0 siblings, 1 reply; 13+ messages in thread
From: Reni Pachernegg @ 2000-01-13 16:52 UTC (permalink / raw)
To: Graham Stoney; +Cc: kd, linuxppc-embedded
Hello,
Troubles dont stop.
Started to build a new version of the GCC for Cross-Compiling for
PowerPc on i686.
I found an installation-guide for gcc cross-compiler at
www.objsw.com/CrossGCC/FAQ-4.htm and followed the steps in 4.1.
(automate build script (4.5)didnt work). Using:
binutils 2.9.5.0.22
gcc 2.95.2
newlib-1.8.2
Installing the binutils was successfull.
Building gcc stopped with:
as: unknown option -ppc
Used script:
target=powerpc-eabi
prefix=/bar
i=$prefix/bin
../gcc-2.8.1/configure --target=$target --prefix=$prefix -v /
--with-newlib --enable-languages=c --with-gnu-ld --with-gnu-as
make all install/
AS_FOR_TARGET=$i/${target}-as \
LD_FOR_TARGET=$i/${target}-ld \
AR_FOR_TARGET=$i/${target}-ar \
RANLIB_FOR_TARGET=$i/${target}-ranlib
The Assembler used, is the one installed by binutils for powerpc.
I didnt found any hint of any option -ppc in any file (greped it) in any
of the 3 tools. But there is the as option -mppc. Maybe this is the
option that is intended to be used.
Any propositions?
Regards
Rene
Does somebody know what to do??
** 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 16:52 ` Reni Pachernegg
@ 2000-01-13 17:23 ` Ben Sapp
0 siblings, 0 replies; 13+ messages in thread
From: Ben Sapp @ 2000-01-13 17:23 UTC (permalink / raw)
To: René Pachernegg, linuxppc-embedded
René Pachernegg wrote:
>
> Hello,
> Troubles dont stop.
> Started to build a new version of the GCC for Cross-Compiling for
> PowerPc on i686.
> I found an installation-guide for gcc cross-compiler at
> www.objsw.com/CrossGCC/FAQ-4.htm and followed the steps in 4.1.
> (automate build script (4.5)didnt work). Using:
> binutils 2.9.5.0.22
> gcc 2.95.2
> newlib-1.8.2
> Installing the binutils was successfull.
> Building gcc stopped with:
> as: unknown option -ppc
I have seen this before. gcc must be finding the incorrect assembler.
My belief is that it will try to use ${prefix}/${target}/bin/as if it is
available. I do not think your command line option will effect this
problem because this error occurs after you have the new
compiler(xgcc).
Make sure this is the target assembler. You should be able to find what
assembler it is finding by adding the -v option to gcc.
I have done exactly what you are trying to do. Below I wrote some
notes on how to do this. These notes were mostly for myself. So, they
are not real clear, but hopefully they will be helpful.
> Used script:
> target=powerpc-eabi
> prefix=/bar
> i=$prefix/bin
> ../gcc-2.8.1/configure --target=$target --prefix=$prefix -v /
> --with-newlib --enable-languages=c --with-gnu-ld --with-gnu-as
> make all install/
> AS_FOR_TARGET=$i/${target}-as \
> LD_FOR_TARGET=$i/${target}-ld \
> AR_FOR_TARGET=$i/${target}-ar \
> RANLIB_FOR_TARGET=$i/${target}-ranlib
> The Assembler used, is the one installed by binutils for powerpc.
> I didnt found any hint of any option -ppc in any file (greped it) in any
> of the 3 tools. But there is the as option -mppc. Maybe this is the
> option that is intended to be used.
> Any propositions?
> Regards
> Rene
>
> Does somebody know what to do??
Building cross development tools for powerpc-linux i686-linux
-------------------------------------------------------------------
ls -l binutils-2.9.5.0.22.tar.bz2 gcc-core-2.95.2.tar.bz2
gcc-2.95.2.tar.bz2 \
glibc-2.1.2.tar.gz glibc-crypt-2.1.2.tar.gz
glibc-linuxthreads-2.1.2.tar.gz
-rw-r--r-- 1 bsapp user 5150541 Jan 5 09:30
binutils-2.9.5.0.22.tar.bz2
-rw-r--r-- 1 bsapp user 9784016 Dec 4 17:13
gcc-2.95.2.tar.bz2
-rw-r--r-- 1 bsapp user 6768356 Dec 7 13:29
gcc-core-2.95.2.tar.bz2
-rw-r--r-- 1 bsapp user 8504830 Dec 3 11:23
glibc-2.1.2.tar.gz
-rw-r--r-- 1 bsapp user 40730 Dec 7 16:39
glibc-crypt-2.1.2.tar.gz
-rw-r--r-- 1 bsapp user 126522 Dec 7 16:33
glibc-linuxthreads-2.1.2.tar.gz
bzcat binutils-2.9.5.0.22.tar.bz2 | tar -xvf -
bzcat gcc-core-2.95.2.tar.bz2 | tar -xvf -
mv gcc-2.95.2 gcc-core-2.95.2
bzcat gcc-2.95.2.tar.bz2 | tar -xvf -
gtar -xzvf glibc-2.1.2.tar.gz
cd glibc-2.1.2
gtar -xzvf ../glibc-crypt-2.1.2.tar.gz
gtar -xzvf ../glibc-linuxthreads-2.1.2.tar.gz
mkdir build
mkdir build/binutils
mkdir build/gcc-core
mkdir build/gcc
mkdir build/glibc
cd ../build/binutils
../../binutils-2.9.5.0.22/configure --prefix=/ppctools
--target=powerpc-linux
gmake
gmake install
setenv PATH /ppctools/bin:${PATH}
cd ../gcc-core
../../gcc-core-2.95.2/configure --prefix=/ppctools
--target=powerpc-linux --with-newlib
gmake
gmake install
### Build the kernel
cd ../glibc
setenv CC powerpc-linux-gcc
setenv AR powerpc-linux-ar
setenv RANLIB powerpc-linux-ranlib
../../glibc-2.1.2/configure --prefix=/ppctools --host=powerpc-linux
--with-headers=<kernel source>/include
--enable-add-ons=crypt,linuxthreads
gmake
gmake install
cd ../gcc
unsetenv CC
unsetenv AR
unsetenv RANLIB
../../gcc-2.95.2/configure --prefix=/ppctools --target=powerpc-linux
--with-libs=/ppctools/lib --with-headers=/ppctools/include
--enable-languages="c,c++,f77"
gmake
gmake install
-------------------------------------------------------------------------
--
Ben Sapp Los Alamos National Laboratory
email: <mailto:bsapp@lanl.gov> Phone: (505)667-3277
Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/
--
** 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).