i386-rtems-gcc - cannot find ld
Joel Sherrill
joel.sherrill at OARcorp.com
Sat Jun 23 23:23:31 UTC 2001
Thomas Bocek wrote:
>
> Hi
>
> I have a problem with compiling a sample file:
>
> the command:
> "minimore:/home/draft/kernel# i386-rtems-gcc -v dumpcopy.c"
>
> returns me:
>
> "Reading specs from /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/cpp -lang-c -v -D__GNUC__=2
> -D__GNUC_MINOR__=95 -Di386 -Drtems -D__rtems__ -D__i386__ -D__rtems__
> -D__rtems__ -D__i386 -D__rtems -Asystem(rtems) -Acpu(i386) -Amachine(i386)
> dumpcopy.c /tmp/ccvoBFMS.i
> GNU CPP version 2.95.2 19991024 (release) (i386 RTEMS with ELF)
> #include "..." search starts here:
> #include <...> search starts here:
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/include
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/../../../../i386-rtems/include
> End of search list.
> The following default directories have been omitted from the search path:
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/../../../../include/g++-3
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/../../../../i386-rtems/sys-include
> End of omitted list.
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/cc1 /tmp/ccvoBFMS.i -quiet
> -dumpbase dumpcopy.c -version -o /tmp/ccWpI82K.s
> GNU C version 2.95.2 19991024 (release) (i386-rtems) compiled by GNU C
> version 2.7.2.3.
> as -V -Qy -o /tmp/ccBG30FP.o /tmp/ccWpI82K.s
> GNU assembler version 2.11.90.0.7 (i386-linux) using BFD version 2.11.90.0.7
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/collect2 -V -Qy
> /opt/rtems/i386-rtems/lib/crt0.o
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/crti.o
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/crtbegin.o
> -L/opt/rtems/lib/gcc-lib/i386-rtems/2.95.2 -L/opt/rtems/i386-rtems/lib
> /tmp/ccBG30FP.o -lgcc -lc -lgcc
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/crtend.o
> /opt/rtems/lib/gcc-lib/i386-rtems/2.95.2/crtn.o
> collect2: cannot find `ld'"
>
> where is the problem? (ld form the command prompt works)
is i386-rtems-as or i386-rtems-ld in your PATH? You have to use the
binutils for the target.
> Thomas
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list