Bug 270516

Summary: buildworld missing build dependency on libcrypt?
Product: Base System Reporter: Tim McIntosh <tkmcintosh>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: bdragon, imp, pat
Priority: ---    
Version: 13.1-RELEASE   
Hardware: Any   
OS: Any   

Description Tim McIntosh 2023-03-29 08:00:27 UTC
Trying to buildworld under macOS (13.2.1/arm64), initially using i386-elf-gcc port from MacPorts (GCC 12), I encountered a missing dependency on lib crypt (which I don't think is compiler-dependent).  This change allowed the build to proceed:

--- Makefile.inc1.orig	2023-03-29 00:23:20
+++ Makefile.inc1	2023-03-29 00:49:27
@@ -2471,6 +2471,8 @@
 # libroken depends on libcrypt
 _other_bootstrap_tools+=lib/libcrypt
 ${_bt}-lib/libroken: ${_bt}-lib/libcrypt
+# so does libopenbsd
+${_bt}-lib/libopenbsd: ${_bt}-lib/libcrypt
 .else
 # All tools in _basic_bootstrap_tools have the same name as the subdirectory
 # so we can use :T to get the name of the symlinks that we need to create.

Note: I ran into additional problems building with GCC, so I am now retrying with in-tree clang, though I've kept the above change in place.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2023-03-29 12:35:56 UTC
I'll try to remember to apply this when I land in 12 hours... but a github pull request for github will ensure I see it...
Comment 2 Brandon Bergren freebsd_committer freebsd_triage 2023-04-04 17:08:05 UTC
Bumped into this as well, using the xcode command line tools on the same macOS version.