collect2: ld returned 1 exit status

Joel Sherrill joel at rtems.org
Tue Mar 22 15:35:02 UTC 2016


On Mon, Mar 21, 2016 at 11:21 PM, Wang, John (IVV-1800) <
john.wang-1 at nasa.gov> wrote:

> Hi,
>
> 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
>

I don't think __DTOR_END__ has ever been declared in a start.S on any
version of RTEMS for
any architecture. It is not in the start.S on the 4.10 branch of the
community version. I have no
idea who added that to your version.

Do you have enough local history to see what happened?


> 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?
>
> thanks
>
> John
>
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160322/6be84c55/attachment-0002.html>


More information about the users mailing list