Installation woes
erik.ivanenko
erik.ivanenko at utoronto.ca
Thu Mar 5 23:59:08 UTC 1998
I have been trying to follow the INSTRUCTIONS. I have had some success,
and some problems.
The latest I don't know how to fix....
I am using:
binutils-2.8.1
gcc-2.7.2.1 native compiler
egcs-1.0
newlib-1.8.0
one-egcs.sh
patches:
binutils-2.8.1-rtems-diff-971221
newlib-1.8.0-diff.980120
My root source directory is /home/cross
it contains all of the directories, binutils-2.8.1, egcs-1.0 etc.
I have had the following problems:
1) one-egcs.sh :changed
BINUTILS=gas-971208 to BINUTILS=binutils-2.8.1
2) My main directory is "/home/cross".
mkdir build
cd build
../src/configure --target=i386-rtems --prefix=i386-rtems
--with-gnu-as --with-gnu-ld
gives a directory structure
/home/cross/i386-rtems/bin/
info/
lib/
i386-rtems/include
This doesn't look right to me.. I suspect it is not.
3) Attempted the command: gmake CC=gcc CFLAGS="-O2 -g" all install
The gcc Makefile caused a segmentation violation when building
target doc:
cpp.info, et. al. caused the problems.
I hasitily editted the Makefile ( I know, I should edit Makefile.in
) so that the doc target
was a no-op in order to proceed. Retried the command, and
The make earnestly complained about not finding "ar".
It was looking for at in /home/cross/i386-rtems/i386-rtems/bin.
I did the following:
mkdir /home/cross/i386-rtems/i386-rtems/bin
cd /home/cross/i386-rtems/i386-rtems/bin
ln -s /home/cross/binutils/ar ar
everything built just fine.
4) Inside the build subdirectory,
cd gcc
rm -r xlimits.h *.a
gmake CC=gcc CFLAGS="-O2 -g" libgcc.a all install
works just fine.
5) in /home/cross
tar -xzf rtems-980219.tgz works
mkdir build-rtems
cd build-rtems
../rtems-980219/configure --target=i386-rtems --disable-posix
--enable-rtemsbsp=i386ex --prefix=/home/cross/i386-rtems
FAILS!
Reports: excerpts from config.log show:
configure:1352: checking for gcc
configure:1429: checking whether the target C compiler (i386-rtems-gcc
) works
configure:1444: i386-rtems-gcc -o conftest conftest.c 1>&5
../rtems-980219/configure: i386-rtems-gcc: command not found
configure: failed program was:
#line 1439 "configure"
#include "confdefs.h"
void *malloc() { return 0; }
main(){return(0);}
collect2: cannot find `ld'
So, I changed the PATH environment variable to include
/home/cross/i386-rtems/bin
rerunning configure...
configure:1429: checking whether the target C compiler (i386-rtems-gcc
) works
configure:1444: i386-rtems-gcc -o conftest conftest.c 1>&5
collect2: cannot find `ld'
collect2: ld returned 33 exit status
configure: failed program was:
#line 1439 "configure"
#include "confdefs.h"
void *malloc() { return 0; }
main(){return(0);}
supplying the following link in /home/cross/i386-rtems/bin:
ld -> /home/cross/i386-rtems/lib/gcc-lib/i386-rtems/egcs-2.90.21/ld
does nothing.
I am stumped.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: Card for Erik Ivanenko
URL: <http://lists.rtems.org/pipermail/users/attachments/19980305/458aa622/attachment.vcf>
More information about the users
mailing list