This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Dear Bi Xunquiang, > To: address@hidden > From: BI XUNQIANG <address@hidden> > Subject: configure error in CINECA SGI Origin 2000 > Organization: . > Keywords: 199904091338.HAA13313 In the above message, you wrote: > ./configure failed on SGI Origin 2000. > > % uname -a > IRIX64 origin 6.4 02121744 IP27 > > % more VERSION > 3.4 > > % which CC > /opt/MIPSpro/bin/CC > > % which f77 > /opt/MIPSpro/bin/f77 > > % which c89 > /opt/MIPSpro/MIPSpro/usr/bin/c89 > > % which f90 > /opt/MIPSpro/bin/f90 > > % more configure.log > creating cache ./config.cache > checking for m4... m4 > checking for xlc... no > checking for c89... c89 > checking C compiler... works > checking how to make dependencies... cc -M > checking for CC... CC > checking C++ compiler "CC"... works > checking how to run the C preprocessor... c89 -E > checking for f77... f77 > checking for Fortran .F compiler... > checking if Fortran compiler handles *.F files... yes > checking for C-equivalent to Fortran routine "SUB"... sub_ > checking for Fortran "byte"... yes > checking for Fortran "integer*2"... yes > checking if Fortran "byte" is C "signed char"... yes > checking if Fortran "byte" is C "short"... no > checking if Fortran "byte" is C "int"... no > checking if Fortran "byte" is C "long"... no > checking if Fortran "integer*2" is C "short"... yes > checking if Fortran "integer*2" is C "int"... no > checking if Fortran "integer*2" is C "long"... no > checking if Fortran "integer" is C "int"... yes > checking if Fortran "real" is C "float"... yes > checking if Fortran "doubleprecision" is C "double"... yes > checking for Fortran-equivalent to netCDF "byte"... byte > checking for Fortran-equivalent to netCDF "short"... integer*2 > checking for math library > checking for -lc... no > checking for -lm... no > checking for ar... ar > checking for ranlib... : > checking for stdlib.h... yes > checking for sys/types.h... yes > checking for strerror... no > checking whether cross-compiling... yes The last line above indicates that the C compiler couldn't build a test program. This is very bad. (See below.) > checking for working ftruncate()... configure: error: can not run test > program while cross compiling > > % more config.log > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1020: c89 -c -O -DNDEBUG conftest.c 1>&5 > configure:1153: CC -c -DNDEBUG conftest.C 1>&5 > configure:1220: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out > configure:1373: f77 -c -O conftest.f > configure:1422: f77 -o conftest -O conftest.F > configure:1463: f77 -c -O conftest.f > configure:1498: f77 -c -O conftest.f > configure:1521: f77 -c -O conftest.f > configure:1555: c89 -c -DNDEBUG -O conftest.c > configure:1557: f77 -O -c conftestf.f > configure:1559: f77 -o conftest -O conftestf.o conftest.o > configure:1561: ./conftest > configure:1602: c89 -c -DNDEBUG -O conftest.c > configure:1604: f77 -O -c conftestf.f > configure:1606: f77 -o conftest -O conftestf.o conftest.o > configure:1608: ./conftest configure:1649: c89 -c -DNDEBUG -O conftest.c > configure:1651: f77 -O -c conftestf.f > configure:1653: f77 -o conftest -O conftestf.o conftest.o > configure:1655: ./conftest > configure:1696: c89 -c -DNDEBUG -O conftest.c > configure:1698: f77 -O -c conftestf.f > configure:1700: f77 -o conftest -O conftestf.o conftest.o > configure:1702: ./conftest > configure:1747: c89 -c -DNDEBUG -O conftest.c > configure:1749: f77 -O -c conftestf.f > configure:1751: f77 -o conftest -O conftestf.o conftest.o > configure:1753: ./conftest > configure:1794: c89 -c -DNDEBUG -O conftest.c > configure:1796: f77 -O -c conftestf.f > configure:1798: f77 -o conftest -O conftestf.o conftest.o > configure:1800: ./conftest > configure:1841: c89 -c -DNDEBUG -O conftest.c > configure:1843: f77 -O -c conftestf.f > configure:1845: f77 -o conftest -O conftestf.o conftest.o > configure:1847: ./conftest > configure:1890: c89 -c -DNDEBUG -O conftest.c > configure:1892: f77 -O -c conftestf.f > configure:1894: f77 -o conftest -O conftestf.o conftest.o > configure:1896: ./conftest > configure:1937: c89 -c -DNDEBUG -O conftest.c > configure:1939: f77 -O -c conftestf.f > configure:1941: f77 -o conftest -O conftestf.o conftest.o > configure:1943: ./conftest > configure:1984: c89 -c -DNDEBUG -O conftest.c > configure:1986: f77 -O -c conftestf.f > configure:1988: f77 -o conftest -O conftestf.o conftest.o > configure:1990: ./conftest > configure:2023: f77 -c -O conftest.f > configure:2044: f77 -c -O conftest.f > configure:2084: c89 -o conftest -O -DNDEBUG conftest.c -lc 1>&5 > ld32: FATAL 9: I/O error (/usr/lib32/crt1.o): No such file or directory > configure:2118: c89 -o conftest -O -DNDEBUG conftest.c -lm 1>&5 > ld32: FATAL 9: I/O error (/usr/lib32/crt1.o): No such file or directory > configure:2213: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out > configure:2247: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out > configure:2297: c89 -o conftest -O -DNDEBUG conftest.c 1>&5 > ld32: FATAL 9: I/O error (/usr/lib32/crt1.o): No such file or directory > configure:2331: c89 -o conftest -O -DNDEBUG conftest.c 1>&5 > ld32: FATAL 9: I/O error (/usr/lib32/crt1.o): No such file or directory From the error messages above, it appears that your C compiler environment is broken. Try building the following C program: $ cat program.c int main() { return 0; } using the following command line: c89 program.c -lc It should work. If it doesn't, then talk to your system administrator. > > > Thank you very much for your help ! > > ################################################################ > # Xunqiang Bi # > # Physics of Weather and Climate Group # > # The Abdus Salam International Centre for Theoretical Physics # > # P.O. BOX 586, 34100 Trieste, ITALY # > # Phone: + 39 (40) 2240 345 # > # Fax: + 39 (40) 224 163 # > # email: address@hidden # > ################################################################ > > ------- End of Forwarded Message -------- Steve Emmerson <http://www.unidata.ucar.edu>