Hi, I am a newbie to GCC compilation and installation process. I am trying to build GCC 3.3.2 Cross Compiler, Host System is Sun Sparc running SunOS 5.8 and Target System is i386 based machine. I have successfully compiled and installed binutils2.15. I have set the path for ar/as and other utilities to point to this binutils. I have also been successful in configuring the gcc for given cross compilation build process. In the build process I am receiving following /opt/gnu386/i386-coff-objdir/build-gcc/gcc/xgcc -B/opt/gnu386/i386-coff-objdir/build-gcc/gcc/ -B/home/phani/gcc/i386-coff/bin/ -B/home/phani/gcc/i386-coff/lib/ -isystem /home/phani/gcc/i386-coff/include -dumpspecs > tmp-specs ld.so.1: /opt/gnu386/i386-coff-objdir/build-gcc/gcc/xgcc: fatal: libiconv.so.2: open failed: No such file or directory Killed My LD_LIBRARY_PATH is set to /usr/local/lib.. where this libiconv.so.2 exist. My Question is Q1. : Do I need to pre-build newlib/glibc for cross compiler build process. I checked in various documentation and it seems that its not required. I have tried using make and gmake.. but the result has been same. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------------------------------- truss command on the My host machine provided following output, if it might help.. phani @iidcm051#224 /opt/gnu386/i386-coff-objdir/build-gcc % truss /opt/gnu386/i386-coff-objdir/build-gcc/gcc/xgcc -B/opt/gnu386/i386-coff-objdir/build-gcc/gcc/ -B/home/phani/gcc/i386-coff/bin/ -B/home/phani/gcc/i386-coff/lib/ -isystem /home/phani/gcc/i386-coff/include -dumpspecs > tmp-specs execve("/opt/gnu386/i386-coff-objdir/build-gcc/gcc/xgcc", 0xFFBEF064, 0xFFBEF084) argc = 7 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat("/usr/local/lib/libiconv.so.2", 0xFFBEE78C) = 0 open("/usr/local/lib/libiconv.so.2", O_RDONLY) = 3 fstat(3, 0xFFBEE78C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000 mmap(0x00000000, 983040, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF280000 mmap(0xFF368000, 26760, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 884736) = 0xFF368000 munmap(0xFF35A000, 57344) = 0 memcntl(0xFF280000, 41208, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/local/lib/libc.so.1", 0xFFBEE78C) Err#2 ENOENT stat("/usr/lib/libc.so.1", 0xFFBEE78C) = 0 open("/usr/lib/libc.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEE78C) = 0 mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000 mmap(0x00000000, 802816, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF180000 mmap(0xFF23C000, 24748, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 704512) = 0xFF23C000 munmap(0xFF22C000, 65536) = 0 memcntl(0xFF180000, 113448, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 stat("/usr/local/lib/libdl.so.1", 0xFFBEE78C) Err#2 ENOENT stat("/usr/lib/libdl.so.1", 0xFFBEE78C) = 0 open("/usr/lib/libdl.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEE78C) = 0 mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000 close(3) = 0 stat("/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1", 0xFFBEE61C) = 0 open("/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEE61C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF380000 mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF270000 close(3) = 0 munmap(0xFF380000, 8192) = 0 brk(0x00039B70) = 0 brk(0x00039B70) = 0 brk(0x0003BB70) = 0 sigaction(SIGINT, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGINT, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGHUP, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGHUP, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGTERM, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGTERM, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGPIPE, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGPIPE, 0xFFBEEEC0, 0xFFBEEF40) = 0 sigaction(SIGCLD, 0xFFBEEEC0, 0xFFBEEF40) = 0 brk(0x0003BB70) = 0 brk(0x0003DB70) = 0 brk(0x0003DB70) = 0 brk(0x0003FB70) = 0 ioctl(1, TCGETA, 0xFFBEE164) Err#25 ENOTTY fstat64(1, 0xFFBEE1D8) = 0 brk(0x0003FB70) = 0 brk(0x00041B70) = 0 llseek(0, 0, SEEK_CUR) = 200547 write(1, " * a s m :\n\n\n * a s m".., 2899) = 2899 _exit(0) ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------------------------- Can anybody tell me what I'm doing wrong? Thanks and regards, Anish Nema > Anish Nema Lucent Technologies * Salarpuria Towers II, 32 Luskar Hosur Road Kormangala Industrial Layout Bangalore - 560095 India > * Email: anish_nema@xxxxxxxxxxx > * Voice : +91 80 5500061 x 2254 > > >