This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FW: Problems building newlib under Cygwin


This is probably a real noob question, but this is the first time I?m trying
to build a cross gcc. ?I am having no end of frustration in trying to get a
compile without error.
?
Host: i686-pc-cygwin
Target: powerpc-eabi
?
Clean install of Cygwin made this past weekend.? All the latest.
?
I downloaded earlier tool sources on advice of a friend:
binutils-2.13
gcc-3.2.1
newlib-1.10.0
gdb-5.3
?
I am using a modified script I found (and plagiarized shamelessly) that
first compiles binutils (this works) and then compiles gcc-core (this works,
too), then newlib is compiled and appears to finish and puke on installing
in the following manner:
?
?
touch stmp-targetdep
/bin/sh /usr/src/newlib-1.10.0/newlib/libm/../../mkinstalldirs
/home/bruceb/Work/Cross-Powerpc-eabi/info
?/usr/bin/install -c -m 644 ./libm.info
/home/bruceb/Work/Cross-Powerpc-eabi/info/libm.info
?install-info --info-dir=/home/bruceb/Work/Cross-Powerpc-eabi/info
/home/bruceb/Work/Cross-Powerpc-eabi/info/libm.info
make[3]: Leaving directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib/libm'
make[2]: Leaving directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib/libm'
Making install-info in doc
make[2]: Entering directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib/doc'
make[2]: Nothing to be done for `install-info'.
make[2]: Leaving directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib/doc'
Making install-info in .
make[2]: Entering directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib'
make[2]: Nothing to be done for `install-info-am'.
make[2]: Leaving directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib'
make[1]: Leaving directory
`/home/bruceb/Work/build-newlib/powerpc-eabi/newlib'
if [ -f /usr/src/newlib-1.10.0/texinfo/gen-info-dir ] ; then \
? /usr/src/newlib-1.10.0/texinfo/gen-info-dir
/home/bruceb/Work/Cross-Powerpc-eabi/info
/usr/src/newlib-1.10.0/texinfo/dir.info-template > dir.info.new ; \
? mv -f dir.info.new dir.info ; \
else true ; \
fi
s=`cd /usr/src/newlib-1.10.0; pwd`; export s; \
if [ -f dir.info ] ; then \
? /bin/sh $s/install-sh -c -m 644 dir.info
/home/bruceb/Work/Cross-Powerpc-eabi/info/dir.info ; \
else true ; fi
Building libc failed
*********************************************************************
?
The script I use is as follows:
?
**********************************************************************
#!/bin/sh
?
cd /home/bruceb/Work
host=i686-pc-cygwin
target=powerpc-eabi
prefix=/home/bruceb/Work/Cross-Powerpc-eabi
i=$prefix/bin
?
PATH="${PATH}:${prefix}/bin"
ECHO $PATH
?
mkdir build-binutils build-gcc build-gcc-core build-newlib build-gdb
?
# Configure, build and install binutils
cd /home/bruceb/Work/build-binutils
/usr/src/binutils-2.13/configure --target=$target --prefix=$prefix -v \
2>&1 | tee configure.log
make all install 2<&1 | tee make.log
?
# test to see if this step passed
if [ ! -f ${prefix}/bin/${target}-ld ]; then
??? echo Build failed during binutils && exit 1
fi
?
# Configure, build and install gcc-core
cd /home/bruceb/Work/build-gcc-core
/usr/src/gcc-3.2.1/configure --target=$target --prefix=$prefix -v \
--enable-languages=c --with-local-prefix=${prefix}/${target}? \
--without-headers --with-newlib --disable-shared --verbose \
2>&1 | tee configure.log 
make all-gcc install-gcc 2>&1 | tee make.log
?
# test to see if this step passed
if [ ! -f ${prefix}/bin/${target}-gcc ]; then
??? echo Build failed during gcc-core && exit 1
fi
?
# Configure, build and install newlib
cd /home/bruceb/Work/build-newlib
/usr/src/newlib-1.10.0/configure --target=$target --prefix=$prefix -v \
2>&1 | tee configure.log 
make all install info install-info 2>&1 | tee make.log
?
# test to see if this step passed
if [ ! -f ${PREFIX}/${TARGET}/lib/libc.a ]; then
??? echo Building libc failed && exit 1
fi
?
# Configure, build and install gcc
cd /home/bruceb/Work/build-gcc
/usr/src/gcc-3.2.1/configure --target=$target --prefix=$prefix -v \
--enable-languages=c --with-local-prefix=${prefix}/${target}? \
2>&1 | tee configure.log 
make all install 2>&1 | tee make.log
make CFLAGS="-myellowknife -O" all 2>&1 | tee -a make.log
make install 2>&1 | tee -a make.log
?
# test to see if this step passed
if [ ! -f ${prefix}/bin/${target}-gcc ]; then
??? echo Build failed during gcc && exit 1
fi
*************************************************************************
ANY help would be appreciated ? 
?
Thanks in advance.
?
Regards,
?
Bruce Boettjer
Sr Hardware Design Engineer
Momentum Computer
1815 Aston Ave
Suite 107
Carlsbad, CA? 92008
(760)-431-8663
?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]