Skip to contentSkip to conversation

problem building gnu tool

Linux-ia64 Russell Mok 3 participants 3 messages May 19, 2000

lore
Share & tools
lore
#0 lore raw

I download the source on a redhat 5.2 machine and try to build a cross compiler for ia64. The build fails because unistd.h and other system headers are missing. I tried to make configure to think I don't have any system headers using --with-headers=empty-dir and --without-headers but neither worked.

Basically I'm asking a way to generate a cross-compiler for ia64 linux on a 32-bit linux host. Thanks.

Russell

#1 lore raw

You can't build a complete cross toolchain unless you have ia64 headers and libraries. Just copy the ia64-linux /usr/lib and /usr/include directories to someplace on your x86 host. Then point to those copies using the configure --with-headers and --with-libs options. The cross toolchain will then build and work fine.

If all you want to do is build the kernel, then you don't need headers and libraries. I haven't done this myself, so I can't give details. But you probably already have enough of the toolchain to enable building kernels.

Jim

#2 lore raw
In reply to Russell Mok
Quoted 5 lines · Russell Mok

I download the source on a redhat 5.2 machine and try to build a cross compiler for ia64. The build fails because unistd.h and other system headers are missing. I tried to make configure to think I don't have any system headers using --with-headers=empty-dir and --without-headers but neither worked.

Why don't you just extract the header files from the glibc and kernel RPMS? Actually, to be useful, you'll need the libraries too. But those are also available in the RPM. (When you install these RPMS, you'll want to use the --root option to cause the RPM to be installed at a different location than normal. You might also need the --ignorearch option.)

Kevin

Signature · 2 lines
Kevin Buettner
[email protected], [email protected]