collect2: ld returned 1 exit status

Wang, John (IVV-1800) at
Tue Mar 22 04:21:19 UTC 2016


I fixed the NM variable issue with compiling Hello for SPARC RTEMS.  Now I believe I have a linker issue.

/opt/rtems-4.10/sparc-rtems/leon3/lib/start.o:/opt/rtems-4.10/src/rtems-4.10/c/src/lib/libbsp/sparc/leon3/../../sparc/shared/start.S:58: first defined here
/opt/rtems-4.10/lib/gcc/sparc-rtems/4.4.6/crtend.o:(.dtors+0x0): multiple definition of `__DTOR_END__'
hello.exe:(.text+0x1c83c): first defined here
collect2: ld returned 1 exit status
make[5]: *** [hello.exe] Error 1
make[5]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/testsuites/samples/hello'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/testsuites/samples'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3/testsuites'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c/leon3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/rtems-4.10build/sparc-rtems4.10/c'
make: *** [all-recursive] Error 1

Any ideas?  Can someone help with this?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list