tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Yacc Shaving, or, Latest macOS CLT Laccs Something



At 7 Mar 2024 21:33:48 -0500, "Amitai Schleier" <schmonz%schmonz.com@localhost> wrote:
Subject: Re: Yacc Shaving, or, Latest macOS CLT Laccs Something
>
> On 7 Mar 2024, at 21:20, Amitai Schleier wrote:
>
> > On my up-to-date Sonoma systems, I
> > accepted the recent update to the
> > Command Line Tools. Now I'm seeing
> > textproc/groff fail like so:
> >
> >       YACC     src/preproc/eqn/eqn.cpp
> >     xcode-select: Failed to locate
> > 'yacc', requesting installation of
> > command line developer tools.
>
> Okay, it's not just yacc. All the /usr/bin
> CLT stubs seem to have the same inode. Is
> anything else missing? This'll tell us:
>
>     #!/bin/sh
>
>     inode=$(ls -li /usr/bin/yacc | awk '{print $1}')
>     stubs=$(ls -li /usr/bin | grep ${inode} | sed -e 's|.* ||')
>
>     for i in ${stubs}; do
>     	/usr/bin/xcrun --find $i >/dev/null 2>&1 || echo $i
>     done
>
> Output:
>
>     llvm-g++
>     llvm-gcc
>     m4
>     yacc

I think something is messed up on your machine, but I don't know what,
how, or why.

On my desktop machine only the first two are found missing by your
script:

	$ sh tmp/tbins.sh
	llvm-g++
	llvm-gcc

However they both work so the problem seems more with xcrun than with
the xcode tool wrapper that is in /usr/bin:

	$ /usr/bin/llvm-gcc
	clang: error: no input files
	$ /usr/bin/llvm-g++
	clang: error: no input files


> So we'll have to defend against m4 that's not really there, too.

But not on my machine....

$ xcrun --show-sdk-version
14.4
$ xcrun -find m4
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/m4
$ m4 --version
GNU M4 1.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by Rene' Seindal.

$ ls /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
air-ar*                        llvm-otool*
air-arch*                      llvm-profdata*
air-as*                        llvm-size*
air-config*                    lorder*
air-dsymutil*                  m4*
air-libtool*                   metal*
air-link*                      metal-ar@
air-lipo*                      metal-arch@
air-lld*                       metal-as@
air-nm*                        metal-config@
air-nt*                        metal-dsymutil@
air-objdump*                   metal-libtool@
air-opt*                       metal-link@
air-pack*                      metal-lipo@
air-ranlib@                    metal-lld@
air-readobj*                   metal-nm@
air-size*                      metal-nt@
air-strip*                     metal-objdump@
air-tt*                        metal-opt@
air-vtool*                     metal-pack@
amdgpu-nt@                     metal-ranlib@
appintentsmetadataprocessor*   metal-readobj@
appintentsnltrainingprocessor* metal-size@
applegpu-nt@                   metal-source*
appshortcutstringsprocessor*   metal-strip@
ar*                            metal-tt@
as*                            metal-vtool@
asa*                           metallib@
bison*                         mig*
bitcode_strip*                 modules-verifier*
bm4*                           nm@
byacc*                         nm-classic*
c++@                           nmedit*
c++filt@                       objdump@
c89*                           otool@
c99*                           otool-classic*
cache-build-session*           pagestuff*
cc@                            ranlib@
clang*                         rpcgen*
clang++@                       segedit*
clang-cache@                   size@
clang-stat-cache*              size-classic*
clangd*                        snippet-extract*
cmpdylib*                      sourcekit-lsp*
codesign_allocate*             strings*
codesign_allocate-p@           strip*
coremlc@                       swift@
coremlcompiler*                swift-api-digester@
cpp*                           swift-api-extract@
ctags*                         swift-build@
ctf_insert*                    swift-build-tool*
docc*                          swift-cache-tool@
dsymutil*                      swift-demangle*
dwarfdump@                     swift-driver*
flex*                          swift-experimental-sdk@
flex++*                        swift-frontend*
gcov@                          swift-help*
gm4*                           swift-package*
gperf*                         swift-package-collection@
iig*                           swift-package-registry@
indent*                        swift-plugin-server*
install_name_tool*             swift-run@
intelgpu-nt@                   swift-stdlib-tool*
ld*                            swift-symbolgraph-extract@
ld-classic*                    swift-test@
lex*                           swiftc@
libtool*                       tapi*
lipo*                          tapi-analyze*
llvm-cov*                      unifdef*
llvm-cxxfilt*                  unifdefall*
llvm-dwarfdump*                unwinddump*
llvm-nm*                       vtool*
llvm-objdump*                  yacc*


--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpL7_XZ5Xfj4.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index