On Tue, 7 Mar 2023, Paul Smith wrote: > On Wed, 2023-03-08 at 00:13 +0000, Martin Dorey wrote: > > ... and it's sliced off half the gl_pathv pointer through calling an > > implementation of glob that wasn't compatible with the declaration of > > the structure that Make is using? > > Well, since this is a MacOS system we SHOULD be using our own > implementation of glob, not the system glob. Of course it could well > be that some aspect of that implementation doesn't play well with MacOS > arm64. It is quite old. > > I agree it seems extremely strange that nlist is not expandable, but > let's see if *nlist works instead of nlist[0]. > > FYI I tested on a system I have access to: > > $ sw_vers > ProductName: macOS > ProductVersion: 11.7.2 > BuildVersion: 20G1020 > > $ clang --version > Apple clang version 12.0.5 (clang-1205.0.22.9) > Target: arm64-apple-darwin20.6.0 > Thread model: posix > InstalledDir: /Library/Developer/CommandLineTools/usr/bin > > but it worked fine with the makefile provided (of course I don't know > what the directory structure is where you're running this so I couldn't > reproduce that.
CONFIGDIR = ${PWD}/testdir/config balay@ypro ~ % ls ${PWD}/testdir ls: /Users/balay/testdir: No such file or directory The failure occurs even if I create this file balay@ypro ~ % mkdir testdir balay@ypro ~ % touch testdir/config balay@ypro ~ % ls -l ls ${PWD}/testdir/config ls: ls: No such file or directory -rw-r--r-- 1 balay staff 0 Mar 7 19:16 /Users/balay/testdir/config balay@ypro ~ % ./make-4.4.1/make zsh: segmentation fault ./make-4.4.1/make balay@ypro ~ % Its strange that it works on some systems [yours and another one mentioned earlier :arm64-apple-darwin22.3.0 with "Apple clang version 14.0.0 (clang-1400.0.29.202)"] but not on the systems I have access to. [also listed earlier..] Satish