public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE: Need help to install a cross compiler for powerpc
@ 2001-01-17 18:46 Ian Zhang
  2001-04-01  0:00 ` Ian Zhang
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zhang @ 2001-01-17 18:46 UTC (permalink / raw)
  To: crossgcc; +Cc: Hua Ji

--- Hua Ji <hji@netscreen.com> wrote:
> see inside. 
>  ----------------
> target=powerpc-eabi
> prefix=/dn/cross/install
> 
> cd build-binutils
> ../binutils-2.9.1/configure --target=$target
> --prefix=$prefix -v
> make all install
> cd ../build-gcc
> ../gcc-2.95.2/configure --target=$target
> --prefix=$prefix
> make all
> 
> I got the following error
> stdlib.h  No such file or directory.
> unistd.h  No such file or directory.
> 
> 
> Hua: You may want to specify the headers with
>
"--with-headers=/$somewhere/newlib-1.8.2/newlib/libc/include"
> 
> 4.  After I read the mailing list.
> I copied /usr/include to $prefix/$target/sub-include
> I have one question:
> Is /usr/include the right source for those header
> file?
>  
> 
> Hua: No.

Thanks Hua.  But after I put --with-headers as you
told  me,  I got following error when I make all under
build-gcc.  What other things I need to do ? Thanks.



cd ../libiberty ; make "SHELL=/bin/sh"
"INSTALL=/bin/sh /dn/cross/gcc-2.95.2/ins
tall-sh -c" "INSTALL_DATA=/bin/sh
/dn/cross/gcc-2.95.2/install-sh -c -m 644" "IN
STALL_PROGRAM=/bin/sh /dn/cross/gcc-2.95.2/install-sh
-c " "prefix=/dn/cross/ins
tall" "exec_prefix=/dn/cross/install"
"tooldir=/dn/cross/install/powerpc-eabi" "
gxx_include_dir=/dn/cross/install/include/g++-3"
"libsubdir=/dn/cross/install/li
b/gcc-lib/powerpc-eabi/2.95.2" "gcc_version=2.95.2"
"gcc_version_trigger=/dn/cro
ss/gcc-2.95.2/gcc/version.c" "AR=powerpc-eabi-ar"
"AR_FLAGS=rc" "CC=/dn/cross/bu
ild-gcc/gcc/xgcc -B/dn/cross/build-gcc/gcc/
-B/dn/cross/install/powerpc-eabi/bin
/" "CXX=/dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/inst
all/powerpc-eabi/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g
-O2" "NM=powerpc-eabi-nm" "R
ANLIB=powerpc-eabi-ranlib" "LIBCFLAGS=-g -O2"
"LIBCXXFLAGS=-g -O2 -fno-implicit-
templates" "LOADLIBES=" "LDFLAGS="
"MAKEINFO=/dn/cross/build-gcc/texinfo/makeinf
o/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES="
"RUNTESTFLAGS="
make[2]: Entering directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libstdc++'
make: *** [all-target-libstdc++] Error 2
[builder@prtpd320 build-gcc]$


=====
Ian Zhang
hhzhang@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Need help to install a cross compiler for powerpc
  2001-01-17 18:46 Need help to install a cross compiler for powerpc Ian Zhang
@ 2001-04-01  0:00 ` Ian Zhang
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Zhang @ 2001-04-01  0:00 UTC (permalink / raw)
  To: crossgcc; +Cc: Hua Ji

--- Hua Ji <hji@netscreen.com> wrote:
> see inside. 
>  ----------------
> target=powerpc-eabi
> prefix=/dn/cross/install
> 
> cd build-binutils
> ../binutils-2.9.1/configure --target=$target
> --prefix=$prefix -v
> make all install
> cd ../build-gcc
> ../gcc-2.95.2/configure --target=$target
> --prefix=$prefix
> make all
> 
> I got the following error
> stdlib.h  No such file or directory.
> unistd.h  No such file or directory.
> 
> 
> Hua: You may want to specify the headers with
>
"--with-headers=/$somewhere/newlib-1.8.2/newlib/libc/include"
> 
> 4.  After I read the mailing list.
> I copied /usr/include to $prefix/$target/sub-include
> I have one question:
> Is /usr/include the right source for those header
> file?
>  
> 
> Hua: No.

Thanks Hua.  But after I put --with-headers as you
told  me,  I got following error when I make all under
build-gcc.  What other things I need to do ? Thanks.



cd ../libiberty ; make "SHELL=/bin/sh"
"INSTALL=/bin/sh /dn/cross/gcc-2.95.2/ins
tall-sh -c" "INSTALL_DATA=/bin/sh
/dn/cross/gcc-2.95.2/install-sh -c -m 644" "IN
STALL_PROGRAM=/bin/sh /dn/cross/gcc-2.95.2/install-sh
-c " "prefix=/dn/cross/ins
tall" "exec_prefix=/dn/cross/install"
"tooldir=/dn/cross/install/powerpc-eabi" "
gxx_include_dir=/dn/cross/install/include/g++-3"
"libsubdir=/dn/cross/install/li
b/gcc-lib/powerpc-eabi/2.95.2" "gcc_version=2.95.2"
"gcc_version_trigger=/dn/cro
ss/gcc-2.95.2/gcc/version.c" "AR=powerpc-eabi-ar"
"AR_FLAGS=rc" "CC=/dn/cross/bu
ild-gcc/gcc/xgcc -B/dn/cross/build-gcc/gcc/
-B/dn/cross/install/powerpc-eabi/bin
/" "CXX=/dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/inst
all/powerpc-eabi/bin/" "CFLAGS=-g -O2" "CXXFLAGS=-g
-O2" "NM=powerpc-eabi-nm" "R
ANLIB=powerpc-eabi-ranlib" "LIBCFLAGS=-g -O2"
"LIBCXXFLAGS=-g -O2 -fno-implicit-
templates" "LOADLIBES=" "LDFLAGS="
"MAKEINFO=/dn/cross/build-gcc/texinfo/makeinf
o/makeinfo " "SHLIB=libstdc++.so.2.10.0" "SHCURSES="
"RUNTESTFLAGS="
make[2]: Entering directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[2]: *** No targets.  Stop.
make[2]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libstdc++'
make: *** [all-target-libstdc++] Error 2
[builder@prtpd320 build-gcc]$


=====
Ian Zhang
hhzhang@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Need help to install a cross compiler for powerpc
  2001-01-17 17:14 Ian Zhang
@ 2001-04-01  0:00 ` Ian Zhang
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Zhang @ 2001-04-01  0:00 UTC (permalink / raw)
  To: crossgcc

Hi,

I am trying to build a cross compiler for powerpc on
Redhat 6.1.  I tried to follow the FAQ and did
something like this:

1. download 
binutils-2.9.1.tar.gz gcc-core-2.95.2.tar.gz
gcc-g++-2.95.2.tar.gz gdb-4.17.tar.gz
newlib-1.8.2.tar.gz

2.
My current directory is: /dn/cross/
cd /dn/cross
mkdir build-binutils build-gcc build-gdb build-newlib
mkdir install

tar xzvf binutils-2.9.1.tar.gz
tar xzvf gcc-core-2.95.2.tar.gz
tar gcc-g++-2.95.2.tar.gz

3. I try to build a cross-compiler for powerpc.
Following FAQ:

target=powerpc-eabi
prefix=/dn/cross/install

cd build-binutils
../binutils-2.9.1/configure --target=$target
--prefix=$prefix -v
make all install
cd ../build-gcc
../gcc-2.95.2/configure --target=$target
--prefix=$prefix
make all

I got the following error
stdlib.h  No such file or directory.
unistd.h  No such file or directory.

4.  After I read the mailing list.
I copied /usr/include to $prefix/$target/sub-include
I have one question:
Is /usr/include the right source for those header
file?

5. After I rerun the configure and make all, I got the
following error:
checking whether the C compiler
(/dn/cross/build-gcc/gcc/xgcc -B/dn/cross/build-
gcc/gcc/ -B/dn/cross/install/powerpc-eabi/bin/ -g -O2
) works... no
configure: error: installation or configuration
problem: C compiler cannot creat
e executables.
make[1]: Entering directory
`/dn/cross/build-gcc/powerpc-eabi/libio'
test x"no" != xyes ||\
  /dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/install/po
werpc-eabi/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.2/libio   ../../../gcc-2.95.2/
libio/filedoalloc.c -o pic/filedoalloc.o
/dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/install/powe
rpc-eabi/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.2/libio  ../../../gcc-2.95.2/lib
io/filedoalloc.c
In file included from
../../../gcc-2.95.2/libio/libio.h:30,
                 from
../../../gcc-2.95.2/libio/iolibio.h:1,
                 from
../../../gcc-2.95.2/libio/libioP.h:47,
                 from
../../../gcc-2.95.2/libio/filedoalloc.c:45:
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type
or storage class
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libio'
make: *** [all-target-libio] Error 2
[builder@prtpd320 build-gcc] 

Can anyone help me with those?
Thanks,
Ian Zhang

=====
Ian Zhang
hhzhang@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Need help to install a cross compiler for powerpc
  2001-01-17 23:13 Hua Ji
@ 2001-04-01  0:00 ` Hua Ji
  0 siblings, 0 replies; 6+ messages in thread
From: Hua Ji @ 2001-04-01  0:00 UTC (permalink / raw)
  To: 'Ian Zhang', crossgcc; +Cc: Hua Ji

OK. Attached is my script. Should be very easy for you to copy and modify it
for your useage.
I have built it successullt with this and tested it my ppc codes. Wish
helpful. BTW, you own my lunch now, if you
are in silivon valley:--)

Hua
 
--------------------------------------------------------
Thanks Hua.  But after I put --with-headers as you
told  me,  I got following error when I make all under
build-gcc.  What other things I need to do ? Thanks.
-------------------------------------------------------

~/gnu_source:207> more crossMake 
target=powerpc-elf
prefix=/export/home4/hji/compilers/powerpc-elf-1-17
 

mkdir build-binutils build-gcc build-newlib

# Configure, build and install binutils
 cd build-binutils
../binutils-2.9.1/configure --target=$target --prefix=$prefix -v
make all install

# Configure, build and install gcc
cd ../build-gcc
../gcc-2.95.2/configure --target=$target --prefix=$prefix --with-newlib
--with-headers=/export/home
4/hji/gnu_source/newlib-1.8.2/newlib/libc/include --with-gnu-as
--with-gnu-ld --enable-languages="c"
-v
make all install

#Configure, build and install libc

cd ../build-newlib
../newlib-1.8.2/configure --target=$target --prefix=$prefix -v
make all install
 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* RE: Need help to install a cross compiler for powerpc
@ 2001-01-17 23:13 Hua Ji
  2001-04-01  0:00 ` Hua Ji
  0 siblings, 1 reply; 6+ messages in thread
From: Hua Ji @ 2001-01-17 23:13 UTC (permalink / raw)
  To: 'Ian Zhang', crossgcc; +Cc: Hua Ji

OK. Attached is my script. Should be very easy for you to copy and modify it
for your useage.
I have built it successullt with this and tested it my ppc codes. Wish
helpful. BTW, you own my lunch now, if you
are in silivon valley:--)

Hua
 
--------------------------------------------------------
Thanks Hua.  But after I put --with-headers as you
told  me,  I got following error when I make all under
build-gcc.  What other things I need to do ? Thanks.
-------------------------------------------------------

~/gnu_source:207> more crossMake 
target=powerpc-elf
prefix=/export/home4/hji/compilers/powerpc-elf-1-17
 

mkdir build-binutils build-gcc build-newlib

# Configure, build and install binutils
 cd build-binutils
../binutils-2.9.1/configure --target=$target --prefix=$prefix -v
make all install

# Configure, build and install gcc
cd ../build-gcc
../gcc-2.95.2/configure --target=$target --prefix=$prefix --with-newlib
--with-headers=/export/home
4/hji/gnu_source/newlib-1.8.2/newlib/libc/include --with-gnu-as
--with-gnu-ld --enable-languages="c"
-v
make all install

#Configure, build and install libc

cd ../build-newlib
../newlib-1.8.2/configure --target=$target --prefix=$prefix -v
make all install
 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

* Need help to install a cross compiler for powerpc
@ 2001-01-17 17:14 Ian Zhang
  2001-04-01  0:00 ` Ian Zhang
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zhang @ 2001-01-17 17:14 UTC (permalink / raw)
  To: crossgcc

Hi,

I am trying to build a cross compiler for powerpc on
Redhat 6.1.  I tried to follow the FAQ and did
something like this:

1. download 
binutils-2.9.1.tar.gz gcc-core-2.95.2.tar.gz
gcc-g++-2.95.2.tar.gz gdb-4.17.tar.gz
newlib-1.8.2.tar.gz

2.
My current directory is: /dn/cross/
cd /dn/cross
mkdir build-binutils build-gcc build-gdb build-newlib
mkdir install

tar xzvf binutils-2.9.1.tar.gz
tar xzvf gcc-core-2.95.2.tar.gz
tar gcc-g++-2.95.2.tar.gz

3. I try to build a cross-compiler for powerpc.
Following FAQ:

target=powerpc-eabi
prefix=/dn/cross/install

cd build-binutils
../binutils-2.9.1/configure --target=$target
--prefix=$prefix -v
make all install
cd ../build-gcc
../gcc-2.95.2/configure --target=$target
--prefix=$prefix
make all

I got the following error
stdlib.h  No such file or directory.
unistd.h  No such file or directory.

4.  After I read the mailing list.
I copied /usr/include to $prefix/$target/sub-include
I have one question:
Is /usr/include the right source for those header
file?

5. After I rerun the configure and make all, I got the
following error:
checking whether the C compiler
(/dn/cross/build-gcc/gcc/xgcc -B/dn/cross/build-
gcc/gcc/ -B/dn/cross/install/powerpc-eabi/bin/ -g -O2
) works... no
configure: error: installation or configuration
problem: C compiler cannot creat
e executables.
make[1]: Entering directory
`/dn/cross/build-gcc/powerpc-eabi/libio'
test x"no" != xyes ||\
  /dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/install/po
werpc-eabi/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.2/libio   ../../../gcc-2.95.2/
libio/filedoalloc.c -o pic/filedoalloc.o
/dn/cross/build-gcc/gcc/xgcc
-B/dn/cross/build-gcc/gcc/ -B/dn/cross/install/powe
rpc-eabi/bin/ -c -g -O2 -I.
-I../../../gcc-2.95.2/libio  ../../../gcc-2.95.2/lib
io/filedoalloc.c
In file included from
../../../gcc-2.95.2/libio/libio.h:30,
                 from
../../../gcc-2.95.2/libio/iolibio.h:1,
                 from
../../../gcc-2.95.2/libio/libioP.h:47,
                 from
../../../gcc-2.95.2/libio/filedoalloc.c:45:
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type
or storage class
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory
`/dn/cross/build-gcc/powerpc-eabi/libio'
make: *** [all-target-libio] Error 2
[builder@prtpd320 build-gcc] 

Can anyone help me with those?
Thanks,
Ian Zhang

=====
Ian Zhang
hhzhang@yahoo.com


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17 18:46 Need help to install a cross compiler for powerpc Ian Zhang
2001-04-01  0:00 ` Ian Zhang
  -- strict thread matches above, loose matches on Subject: below --
2001-01-17 23:13 Hua Ji
2001-04-01  0:00 ` Hua Ji
2001-01-17 17:14 Ian Zhang
2001-04-01  0:00 ` Ian Zhang

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