help-bash
[Top][All Lists]
Advanced

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

Errors statically compiling bash on a Mac M1 (aarch64e).


From: address@hidden
Subject: Errors statically compiling bash on a Mac M1 (aarch64e).
Date: Tue, 28 Feb 2023 10:50:22 +0100 (CET)

Hi,

I'm trying to statically compile bash-5.15 on my Mac M1 and I get an error that 

checking size of size_t... configure: error: in 
`/Volumes/ws/ws/blogs/bash-5.2.15':configure: error: cannot compute sizeof 
(size_t)See `config.log' for more details
 
As a sanity check I confirmed the following compiles and runs without error 
using gcc and apples variant of clang: 

#include <stdint.h>
int main() {    printf("%lu", sizeof(size_t));}

So I settled for no static compile for the time being, here are the shared 
"dynamic libraries" (or w/e apples term for shared object files is) that got 
linked in the final binary:

        /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 
9.0.0)
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current 
version 5.4.0)      /opt/homebrew/opt/gettext/lib/libintl.8.dylib 
(compatibility version 12.0.0, current version 12.0.0)    
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 
<http://CoreFoundation.framework/Versions/A/CoreFoundation> (compatibility 
version 150.0.0, current version 1953.255.0)
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 
7.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1319.0.0)
        /usr/lib/libcharset.1.dylib (compatibility version 2.0.0, current 
version 2.0.0)

The odd bits to me are the CoreFoundation thing (I can't find any info online 
on it, and i have no idea what it does tbh).

And the `libSystem.B.dylib`- this thing I've never seen before - and, it does 
not exist under that path, there's not even a symlink in its place. Any ideas 
what this couple possibly be? 

I appreciate any help here! My goal is to have a statically compiled bash on my 
mac :)

thanks! 

-- 
Regards,
Olivia Kelly



reply via email to

[Prev in Thread] Current Thread [Next in Thread]