Bug 239851 - BSD_CRTBEGIN does not work on sparc64
Summary: BSD_CRTBEGIN does not work on sparc64
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: sparc64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Blocks: 228919
  Show dependency treegraph
Reported: 2019-08-14 13:08 UTC by Ed Maste
Modified: 2020-01-10 17:06 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2019-08-14 13:08:51 UTC
Disabled in Makefile.inc1 with a comment "PowerPC and Sparc64 need extra crt*.o files"
Comment 1 Warner Losh freebsd_committer 2019-08-14 16:05:25 UTC
PowerPC has now been fixed :)
Comment 2 commit-hook freebsd_committer 2019-11-07 19:38:05 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov  7 19:37:27 UTC 2019
New revision: 354468
URL: https://svnweb.freebsd.org/changeset/base/354468

  arch.7: claim 12.x as the last architecture with sparc64 support

  GCC 4.2.1 is being removed before FreeBSD 13, as are some other
  components required by FreeBSD/sparc64.  Contemporary GCC does not build
  and there is currently no indication that anyone is going to address
  these issues.

  PR:		228919, 233405, 236839, 239851

Comment 3 Ed Maste freebsd_committer 2019-11-08 18:02:16 UTC
Attempting to build for sparc64 with external toolchain in a GPL-removed FreeBSD tree fails in "stage 4.2: building libraries" with:

/usr/local/bin/sparc64-unknown-freebsd12.0-ld: cannot find crtendS.o: No such file or directory
collect2: error: ld returned 1 exit status
Comment 4 Conrad Meyer freebsd_committer 2019-11-09 09:47:07 UTC
For reference, PPC was fixed in r342974.
Comment 5 Ed Maste freebsd_committer 2020-01-10 17:06:34 UTC
See also https://reviews.freebsd.org/D23122