[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile problem
From: |
Andreas Jaeger |
Subject: |
Re: Compile problem |
Date: |
Tue, 25 Sep 2001 08:38:10 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) |
Craig Anderton <address@hidden> writes:
[...]
> This is where running make fails...
>
> gcc -D_LIBC=1 -I../include -I. -I/tmp/build-glibc.2.2.4/csu -I.. -I../libio
> -I/tmp/build-glibc.2.2.4 -I../sysdeps/sparc/sparc32/elf
> -I../sysdeps/unix/sysv/sysv4/solaris2/sparc/sparc32
> -I../sysdeps/unix/sysv/sysv4/solaris2/sparc
> -I../sysdeps/unix/sysv/sysv4/solaris2 -I../sysdeps/unix/sysv/sysv4
> -I../sysdeps/unix/common -I../sysdeps/unix/sysv -I../sysdeps/unix/sparc
> -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/sparc/sparc32/fpu
> -I../sysdeps/sparc/sparc32 -I../sysdeps/wordsize-32
> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
> -I../sysdeps/sparc/sparc32/soft-fp -I../sysdeps/sparc/fpu -I../sysdeps/sparc
> -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -E -dM
> -xc - | cat - >> /tmp/build-glibc.2.2.4/bits/stdio_lim.hT
> sed -e 's@ /tmp/build-glibc\.2\.2\.4/@ $(common-objpfx)@g' -e
> 'address@hidden/tmp/build-glibc\.2\.2\.4/@$(common-objpfx)@g'
> /tmp/build-glibc.2.2.4/bits/stdio_lim.dT >
> /tmp/build-glibc.2.2.4/bits/stdio_lim.dt
> cat /tmp/build-glibc.2.2.4/bits/stdio_lim.dt >>
> /tmp/build-glibc.2.2.4/bits/stdio_lim.d
> fopen_max=`sed -n 's/^#define OPEN_MAX //1p'
> /tmp/build-glibc.2.2.4/bits/stdio_lim.hT`; \
> filename_max=`sed -n 's/^#define PATH_MAX //1p'
> /tmp/build-glibc.2.2.4/bits/stdio_lim.hT`; \
> iov_max=`sed -n 's/^#define UIO_MAXIOV //p'
> /tmp/build-glibc.2.2.4/bits/stdio_lim.hT`; \
> fopen_max=${fopen_max:-16}; \
> filename_max=${filename_max:-1024}; \
> if [ -z $iov_max ]; then \
> define_iov_max="# undef IOV_MAX"; \
> else \
> define_iov_max="# define IOV_MAX $iov_max"; \
> fi; \
> sed -e "s/@FOPEN_MAX@/$fopen_max/" \
> -e "s/@FILENAME_MAX@/$filename_max/" \
> -e "s/@L_tmpnam@/20/" \
> -e "s/@TMP_MAX@/238328/" \
> -e "s/@L_ctermid@/9/" \
> -e "s/@L_cuserid@/9/" \
> -e "s/@define_IOV_MAX@/$define_iov_max/" \
> ../stdio-common/stdio_lim.h.in >
> /tmp/build-glibc.2.2.4/bits/stdio_lim.h.new
> /bin/sh: test: argument expected
> make[2]: *** [/tmp/build-glibc.2.2.4/bits/stdio_lim.st] Error 1
> make[2]: Leaving directory `/tmp/glibc-2.2.4/csu'
> make[1]: *** [csu/subdir_lib] Error 2
> make[1]: Leaving directory `/tmp/glibc-2.2.4'
> make: *** [all] Error 2
>
> I haven't been able to figure out what argument is expected. Do you have
> any suggestions for proceeding from here?
Look at the above output and check for all occurences of test - also
in scripts - and check that the macros are valid. I'd check the
contents of iov_max first.
Note that porting glibc is not easy and we cannot help in general with
all those problems. Please investigate yourself what's broken next
time - and compare with a working platform to see the differences.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj