help-bash
[Top][All Lists]
Advanced

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

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


From: Chet Ramey
Subject: Re: Errors statically compiling bash on a Mac M1 (aarch64e).
Date: Tue, 28 Feb 2023 09:29:28 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 2/28/23 4:50 AM, hi@tofn.xyz via wrote:
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

What does config.log say? Check for "checking size of size_t" and see what
it's trying to do and the exact compiler error.

It may be that the combination of header files needed just doesn't
work on the M1 variant of clang.

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));}

size_t is defined in <stddef.h>.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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