When I run compile and link helloworld.c on my RH 8.0 machine, this is what I get: $ gcc -v helloworld.c -o helloworld Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) /usr/lib/gcc-lib/i386-redhat-linux/3.2/cc1 -lang-c -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ helloworld.c -quiet -dumpbase helloworld.c -version -o /tmp/ccOaH7je.s GNU CPP version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (cpplib) (i386 Linux/ELF) GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) (i386-redhat-linux) compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0 3.2-7). ignoring nonexistent directory "/usr/i386-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/i386-redhat-linux/3.2/include /usr/include End of search list. as -V -Qy -o /tmp/ccueXHiS.o /tmp/ccOaH7je.s GNU assembler version 2.13.90.0.2 (i386-redhat-linux) using BFD version 2.13.90.0.2 20020802 /usr/lib/gcc-lib/i386-redhat-linux/3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o helloworld /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crti.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/crtbegin.o -L/usr/lib/gcc-lib/i386-redhat-linux/3.2 -L/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../.. /tmp/ccueXHiS.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/gcc-lib/i386-redhat-linux/3.2/crtend.o /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crtn.o Perhaps this will help you isolate your problem. You should also verify that all the relevant RPM packages are properly installed: $ rpm -V `rpm -qa | fgrep gcc` glibc-2.2.93-5 binutils-2.13.90.0.2-2 --- Vladimir ------------------------------------------------------------------------ Vladimir G. Ivanovic http://leonora.org/~vladimir 2770 Cowper St. vladimir@acm.org Palo Alto, CA 94306-2447 +1 650 678 8014 The lyfe so short, the craft so long to learne. -- Chaucer I>>>>> "ik" == ilkka karasalo <ilkka.karasalo@foi.se> writes: > just installed RH8.0 (Psyche) on a PC, > and tried out compiling some code with the > 'gcc' and 'g77' compilers (in /usr/bin/gcc > and /usr/bin/g77). > Compiling works OK, however linking the code with > either 'gcc' or 'g77' fails with the message > collect2: cannot find ld > The linker/loader executable is /usr/bin/ld, > and I have made sure that /usr/bin is in PATH. > Linking explicitly with /usr/bin/ld does produce > an executable binary, which however aborts > immediately at start-up. > Help on this problem is most welcome. > Ilkka Karasalo > FOI, Hydroacoustics KTH, MWL > Enkopingsvagen 126 Teknikringen 8 > SE-172 90 Stockholm SE-100 44 Stockholm > Phone: +46-8-55503627 Phone: +46-8-7908017 > Fax: +46-8-55503869 Fax: +46-8-7906122 > Email: ilkka.karasalo@foi.se Email: ilkkak@fkt.kth.se > _______________________________________________ > Redhat-devel-list mailing list > Redhat-devel-list@redhat.com > https://listman.redhat.com/mailman/listinfo/redhat-devel-list _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list