GNU bug report logs -
#62226
bash-minimal fails to build on x86_64-w64-mingw32
Previous Next
Full log
View this message in rfc822 format
Hi,
Adding:
```
"ac_cv_header_sys_socket_h=no"
```
To configure flags in the case the target is mingw solves the first issue, but more issues appear.
I have no enough knowledge about autotools to dig into this much further but it looks like we are finding wrong stuff in the configure step:
```
In file included from shell.c:28:
config.h:340:18: error: ‘long long long’ is too long for GCC
340 | #define intmax_t long long
| ^~~~
config.h:340:23: error: ‘long long long’ is too long for GCC
340 | #define intmax_t long long
| ^~~~
config.h:343:19: error: duplicate ‘unsigned’
343 | #define uintmax_t unsigned long long
| ^~~~~~~~
config.h:343:28: error: ‘long long long’ is too long for GCC
343 | #define uintmax_t unsigned long long
| ^~~~
config.h:343:33: error: ‘long long long’ is too long for GCC
343 | #define uintmax_t unsigned long long
| ^~~~
In file included from bashjmp.h:24,
from shell.h:25,
from shell.c:53:
./include/posixjmp.h:29:21: error: unknown type name ‘sigjmp_buf’
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:26:8: note: in expansion of macro ‘procenv_t’
26 | extern procenv_t top_level;
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name ‘sigjmp_buf’
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:27:8: note: in expansion of macro ‘procenv_t’
27 | extern procenv_t subshell_top_level;
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name ‘sigjmp_buf’
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:28:8: note: in expansion of macro ‘procenv_t’
28 | extern procenv_t return_catch; /* used by `return' builtin */
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name ‘sigjmp_buf’
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:29:8: note: in expansion of macro ‘procenv_t’
29 | extern procenv_t wait_intr_buf;
| ^~~~~~~~~
In file included from shell.h:28,
from shell.c:53:
/gnu/store/7b119byi86gb3ab5x87ld9fz5xg5bwyd-mingw-w64-x86_64-10.0.0/include/ctype.h:144:13: error: expected identifier or ‘(’ before ‘int’
144 | int __cdecl isblank(int _C);
| ^~~~~~~
syntax.h:103:27: error: expected ‘)’ before ‘==’ token
103 | # define isblank(x) ((x) == ' ' || (x) == '\t')
| ^~
In file included from shell.h:29,
from shell.c:53:
general.h:33:12: fatal error: sys/resource.h: No such file or directory
33 | # include <sys/resource.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
```
ElenQ Technology
Ethical Innovation
This bug report was last modified 2 years and 75 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.