public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: navin <navin@students.iiit.net>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] Building IA-64 toolchain
Date: Wed, 07 May 2003 16:15:11 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723705650@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723705654@msgid-missing>

Hi,
	I am doing a project on compilers.I have to build gcc for ia64.I 
did build the binutils .In that case i didn't get any compilation errors.

HOSTMACHINE=i386 pentium
TARGETMACHINE=ia64

 Next i had to build gcc (source gcc-3.2) for ia64. I configured 
it with the following option 
CFLAGS="-O2 -Dinhibit_libc" ../gcc-3.2/configure 
--target=ia64-unknown-linux --prefix=/FPS/Bunny/work/ia64.bak 
--enable-languages=c --disable-shared --disable-multilib 
--enable-threads=single --without-headers
and with a lot of other options like removing the --without-headers part 
and another time adding other options with-headers=asm-ia64 (kernel 
sources) . Every time i get  error saying 

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/FPS/Bunny/work/gcc-build3/gcc/xgcc -B/FPS/Bunny/work/gcc-build3/gcc/ 
-B/FPS/Bun 
ny/work/ia64.bak/ia64-unknown-linux/bin/ 
-B/FPS/Bunny/work/ia64.bak/ia64-unknown 
-linux/lib/ -isystem /FPS/Bunny/work/ia64.bak/ia64-unknown-linux/include 
-O2  -D 
IN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing- 
prototypes -isystem ./include  -fPIC -g  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED   
-I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. 
-I../../gcc-3.2/gcc/config -I. 
./../gcc-3.2/gcc/../include  -DL_muldi3 -c ../../gcc-3.2/gcc/libgcc2.c -o 
libgcc 
/./_muldi3.o
In file included from tconfig.h:21,
                 from ../../gcc-3.2/gcc/libgcc2.c:36:
../../gcc-3.2/gcc/config/ia64/linux.h:58:26: sys/ucontext.h: No such file 
or dir 
ectory
In file included from ../../gcc-3.2/gcc/libgcc2.c:37:
../../gcc-3.2/gcc/tsystem.h:63:19: stdio.h: No such file or directory
../../gcc-3.2/gcc/tsystem.h:66:23: sys/types.h: No such file or directory
In file included from 
/FPS/Bunny/work/ia64.bak/ia64-unknown-linux/sys-include/st 
ring.h:12,
                 from ../../gcc-3.2/gcc/tsystem.h:76,
                 from ../../gcc-3.2/gcc/libgcc2.c:37:
/FPS/Bunny/work/ia64.bak/ia64-unknown-linux/include/linux/config.h:4:28: 
linux/a 
utoconf.h: No such file or directory
In file included from ../../gcc-3.2/gcc/libgcc2.c:37:
../../gcc-3.2/gcc/tsystem.h:80:20: stdlib.h: No such file or directory
In file included from 
/FPS/Bunny/work/ia64.bak/ia64-unknown-linux/lib/include/li 
mits.h:117,
                 from /FPS/Bunny/work/gcc-build3/gcc/include/limits.h:132,
                 from 
/FPS/Bunny/work/gcc-build3/gcc/include/syslimits.h:7,
                 from /FPS/Bunny/work/gcc-build3/gcc/include/limits.h:11,
                 from ../../gcc-3.2/gcc/tsystem.h:84,
                 from ../../gcc-3.2/gcc/libgcc2.c:37:
/FPS/Bunny/work/ia64.bak/ia64-unknown-linux/sys-include/limits.h:117:75: 
no incl 
ude path in which to find limits.h
In file included from ../../gcc-3.2/gcc/libgcc2.c:37:
../../gcc-3.2/gcc/tsystem.h:87:18: time.h: No such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/FPS/Bunny/work/gcc-build3/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/FPS/Bunny/work/gcc-build3/gcc'

I also referred to many cross GCC faq and howto's but no help .The error 
still pops up.

Also from some of the previous posts i found that if i am building on a 
pentium or some other machine there is a trick involved.Andreas Jaegar 
told me that i had to install-headers before compiling the bootstrap 
gcc.He said to contact you guys as i don't have the headers for ia64.I 
have the sources for kernel which contain asm-ia64 and glibc-2.3.I don't 
know how to avoid the error.


Thank You 

Nevin



  parent reply	other threads:[~2003-05-07 16:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07 15:14 [Linux-ia64] Building IA-64 toolchain Jim Wilson
2003-05-07 15:20 ` Jim Wilson
2003-05-07 16:15 ` navin [this message]
2003-05-07 17:41 ` David Mosberger
2003-05-07 17:52 ` navin
2003-05-07 18:05 ` David Mosberger
2003-05-07 18:14 ` Randolph Chung
2003-05-08  8:33 ` navin
2003-05-08 17:24 ` Jim Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590723705650@msgid-missing \
    --to=navin@students.iiit.net \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox