Skip to contentSkip to conversation

Cant compile compiler

Linux-ia64 Venkatesh Ramamurthy 3 participants 4 messages Feb 21, 2000

lore
Share & tools
lore
#0 lore raw

Hi,
when i compile the ia64 cross compiler , i seem to get error syaing that cant include header stdlib.h and unistd.h in file gcc/ libgcc2.c . I remember a special mention about these files in IDF . Can anyone point out what i am missing?

TIA
Venkatesh
American Megatrends Inc.

#1 lore raw
Quoted 4 lines · Venkatesh Ramamurthy

when i compile the ia64 cross compiler , i seem to get error syaing that cant include header stdlib.h and unistd.h in file gcc/ libgcc2.c . I remember a special mention about these files in IDF . Can anyone point out what i am missing?

You need to have IA-64 include files and IA-64 libraries to bootstrap the compiler. Install /usr/include and /usr/lib from the Trillian CD somewhere on your system, install IA-64 kernel sources and make sure your IA-64 /usr/include/{asm,linux} point to the IA-64 kernel headers. After you've done this, configure gcc with

    ../src/configure --with-headers=/your/usr/include \
	--with-libs=/your/usr/lib --target=ia64-cygnus-linux \
	--program-prefix=ia64-cygnus-linux-

This should give you the cross compiler with all commands prefixed with `ia64-cygnus-linux-'.

Uros

#2 lore raw
In reply to Venkatesh Ramamurthy

Any one to help me ......
All i wanted was to compile the cross-compiler ......
Did anyone attend IDF , where a special mention was given about those 2 files stdlib.h and unistd.h .....
Can anyone mail me the binary for the entire cross compiler ..... it would be very nice if it could be done ......
As a driver developer , i feel it would be nice if didnt have to know the intricacies of compiler development ..... Is this is all about Open Source concept where one is given source code ... but doesnt compile ... sigh ( well it maybe my fault ...) ....

Help will be appreciated ....
TIA
Venkatesh

On Monday, February 21, 2000 3:27 PM, Uros Prestor [SMTP:[email protected]] wrote:

| Venkatesh Ramamurthy <[email protected]> said: 
| > | You need to have IA-64 include files and IA-64 libraries to bootstrap
| > | the compiler.  Install /usr/include and /usr/lib from the Trillian CD
| > 
| > 
| > Did you mean /usr/src/linux/include and /usr/src/linux/lib , since there
is
| > no headers and libraries inside /usr/include and /usr/lib in Trillian
CD.
| 
| Oops -- I forgot that the Trillian CD shipped without /usr/include
| and /usr/lib.  You need these to build a compiler the way I built it.
| 
| Jim Wilson (the Cygnus gcc guy) said something about posting
| instructions on how to build the native IA-64 toolchain.
| He knows more about how much can be released and how to
| build the toolchain with a cross-compiler.  I don't know what
| needs to be done if you don't have /usr/lib and /usr/include.
| 
| Uros
#3 lore raw
In reply to Venkatesh Ramamurthy

The IA-64 stuff (kernel,glibc,toolchain) is all still very bleeding edge. If you are expecting things to work perfectly, then you will be very disappointed.

Also, while the ultimate goal is a complete open source project, we are still working on getting there. Most of the work so far as been done under NDA, and the NDAs just started lifting last week. It will take some time to transition from the closed development model that we have been using to the open development model that linux and GNU developers are familiar with. Meanwhile, things are going to be a little rough until this all gets straightened out.

Jim