This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

problem in compiling GCC cross compiler



Hello,


I am trying to compile gcc-3.3.2 for ARM processor. I am using binutils2.11.2. I am listing the steps which I am following in order to get it compiled.

1) I unzipped all tar files.

2) I build the binutils as follows-

cd binutils-2.11.2
./configure --target=arm-elf --prefix=$HOME/ARM7
make make install


3) cd ../gcc-3.3.2/
./configure --target=arm-elf --prefix=$HOME/ARM7 --with-newlib


export PATH=$HOME/ARM7/bin:$PATH

till here everything is perfect but now when I try to make it

make I get the following error

make[1]: Entering directory `/users/students/tesi10/gcc-3.3.2/arm-elf/libiberty'

if [ x"" != x ]; then \
/users/students/tesi10/gcc-3.3.2/gcc/xgcc -B/users/students/tesi10/gcc-3.3.2/gcc/ -B/users/students/tesi10/ARM7/arm-elf/bin/ -B/users/students/tesi10/ARM7/arm-elf/lib/ -isystem /users/students/tesi10/ARM7/arm-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I./../../include -W -Wall -Wtraditional -pedantic regex.c -o pic/regex.o; \
else true; fi
/users/students/tesi10/gcc-3.3.2/gcc/xgcc -B/users/students/tesi10/gcc-3.3.2/gcc/ -B/users/students/tesi10/ARM7/arm-elf/bin/ -B/users/students/tesi10/ARM7/arm-elf/lib/ -isystem /users/students/tesi10/ARM7/arm-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I./../../include -W -Wall -Wtraditional -pedantic regex.c -o regex.o\


regex.c:53:25: sys/types.h: No such file or directory
regex.c:151:24: string.h: No such file or directory


I verified that sys/types.h and string.h files are present in /user/include directory. I am not sure why gcc is not looking in that directory. can you please help me in fixing this.


Thanks and regards,
Banti


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