Re: bash devel configure error , cannot compute sizeof (size_t) , termux , long --opts list
Date:
Tue, 4 Feb 2025 07:20:09 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
On Tue, Feb 04, 2025 at 07:32:31 +0100, microsuxx wrote:
> last lines of ./configure stdout
>
> checking for sig_atomic_t... yes
> checking size of char... 0
> checking size of short... 0
> checking size of int... 0
> checking size of long... 0
> checking size of char *... 0
> checking size of size_t... configure: error: in
> '/data/data/com.termux/files/home/bash':
> configure: error: cannot compute sizeof (size_t)
> See 'config.log' for more details
>
> the full output is @ http://0x0.st/8K_c.err
> the full config.log is @ http://0x0.st/8K_A.log
The relevant error is up higher in the config.log, not at the end.
configure:18490: result: 0
configure:18502: checking size of size_t
configure:18508: gcc -o conftest -std=gnu23 -target aarch64-linux-android34
-static conftest.c >&5
ld.lld: error: unable to find library -lc
gcc: error: linker command failed with exit code 1 (use -v to see invocation)
configure:18508: $? = 1
configure: program exited with status 1
> did i miss install some dev headers or smth
That's a reasonable guess, but here it turns out you're missing the
development libraries or something for your -target.
In your situation, I would start out with an extremely basic "hello world"
program, and try to compile that for your -target. Once you can do that,
then try to ./configure again.
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("hello world\n");
return 0;
}