This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: I can't install newlib-1.9.0
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: MAMORU Kugumiya <kugu at av dot crl dot sony dot co dot jp>
- Cc: newlib at sources dot redhat dot com
- Date: 17 Dec 2001 13:12:55 -0500
- Subject: Re: I can't install newlib-1.9.0
- References: <4.3.2-J.20011217161131.04f5a008@43.13.234.80>
On Mon, 2001-12-17 at 02:27, MAMORU Kugumiya wrote:
> Hi.
>
> I try to install newlib in x86 PC.
> But I can't make it.
>
> I do this way.
> % gzip -dc newlib-1.9.0.tar.gz | tar xvf -
> % mkdir i586-pc-linux
> % cd i586-pc-linux
> % ../newlib-1.9.0/configure --with-newlib
> Configuring for a i586-pc-linux-gnu host.
> Created "Makefile" in /home/kugu/Linux/i586-pc-linux using "mt-frag"
> Configuring texinfo...
> No configuration information in texinfo
> Configuring etc...
> creating cache ../config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> updating cache ../config.cache
> creating ./config.status
> creating Makefile
> % make
> Configuring in i586-pc-linux-gnu/newlib
> creating cache ../config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking host system type... i586-pc-linux-gnu
> <snip>
> gcc -B/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/ -isystem
> /home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/targ-include
> -isystem /home/kugu/Linux/newlib-1.9.0/newlib/libc/include
> -DPACKAGE=\"newlib\" -DVERSION=\"1.9.0\" -I.
> -I/home/kugu/Linux/newlib-1.9.0/newlib/libc/sys/linux -O2 -Wall
> -D_I386MACH_ALLOW_HW_INTERRUPTS -D_LOOSE_KERNEL_NAMES -fPIC
> -D_I386MACH_NEED_SOTYPE_FUNCTION -DMISSING_SYSCALL_NAMES
> -I./../../../targ-include
> -I/home/kugu/Linux/newlib-1.9.0/newlib/libc/sys/linux/../../../libc/include
> -fno-builtin -g -O2 -c
> /home/kugu/Linux/newlib-1.9.0/newlib/libc/sys/linux/select.c
> gcc: file path prefix
> `/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/' never used
> awk '/#define.SIG.*[1-9][0-9]*/ { n[$3] = $2 } \
> /#define.NSIG.*[1-9][0-9]*/ { max = $3 } \
> /#define.SIGUNUSED/ \
> { for (i = 0; i <= max; i++) print "\"" n[i] "\"," }' \
> </usr/src/linux/include/asm/signal.h >siglist.inc || \
> { rm -f siglist.inc; exit 1; }
> /bin/sh: /usr/src/linux/include/asm/signal.h: file not find
> make[4]: *** [siglist.inc] error 1
> make[4]: Leaving directory
> `/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/libc/sys/linux'
> make[3]: *** [all-recursive] error 1
> make[3]: Leaving directory
> `/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/libc/sys'
> make[2]: *** [all-recursive] error 1
> make[2]: Leaving directory
> `/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib/libc'
> make[1]: *** [all-recursive] error 1
> make[1]: Leaving directory
> `/home/kugu/Linux/i586-pc-linux/i586-pc-linux-gnu/newlib'
> make: *** [all-target-newlib] error 2
>
> I think, this error means [signal.h] is not find.
> But I don't know why this error occur.
> Please help me.
> My machine is i586 PC, OS is Redhat Linux 7.2J.
>
Yes, this is because newer versions of Red Hat Linux (starting with 7.1)
put Linux headers in /usr/src/linux-2.4/include, whereas older versions
use /usr/src/linux/include. In CVS and the upcoming newlib-1.10.0,
there is a check for this that should work in both cases. In the
meantime, you can do the following:
In newlib/libc/sys/linux/Makefile.am:
Change the reference to /usr/src/linux/include/asm/signal.h to
/usr/src/linux-2.4/include/asm/signal.h.
Then run automake in that directory, and recompile.
Tom
> Thank you.
> **************** BSNC B&P 技術部門 複合メディア技術部 CTプロジェクト室
>
>
> 久々宮 守
> E-Mail:kugu@av.crl.sony.co.jp **************************************
>
--
Thomas Fitzsimmons
Red Hat Canada Limited e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9