X-Loop: help-debbugs@HIDDEN
Subject: bug#62226: bash-minimal fails to build on x86_64-w64-mingw32
Resent-From: Ekaitz Zarraga <ekaitz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Thu, 16 Mar 2023 19:51:01 +0000
Resent-Message-ID: <handler.62226.B.16789962438592 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 62226
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: 62226 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-guix@HIDDEN" <bug-guix@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.16789962438592
(code B ref -1); Thu, 16 Mar 2023 19:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 16 Mar 2023 19:50:43 +0000
Received: from localhost ([127.0.0.1]:43130 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1pctcY-0002EW-RH
for submit <at> debbugs.gnu.org; Thu, 16 Mar 2023 15:50:43 -0400
Received: from lists.gnu.org ([209.51.188.17]:57254)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <ekaitz@HIDDEN>) id 1pctcW-0002EO-KU
for submit <at> debbugs.gnu.org; Thu, 16 Mar 2023 15:50:41 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <ekaitz@HIDDEN>) id 1pctcV-00037R-Vx
for bug-guix@HIDDEN; Thu, 16 Mar 2023 15:50:40 -0400
Received: from mail-4018.proton.ch ([185.70.40.18])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <ekaitz@HIDDEN>) id 1pctcT-0000ZJ-7z
for bug-guix@HIDDEN; Thu, 16 Mar 2023 15:50:39 -0400
Date: Thu, 16 Mar 2023 19:50:14 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech;
s=protonmail; t=1678996232; x=1679255432;
bh=v1wCUfHIwH08MiC4WYeRbIeaTcZtJ3tj4FkdUyBjk04=;
h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
b=YxJ3Fbnum52zlwvwA3xh30mymBE5s8gbo7XsOwXOhToIlpWBPEbXXVIAWOfqgq9Ml
73guaePs7o/0nfP3cZT3t1wsLfF6LTNEMyQ0DUHSAdFWoD7AbNIkyXLiL+tyYO6Av5
7Pf+z2BRoy8FCg2xs+UG/crTcWfQYzASQ3jCw+op37MLxU/xzMoc2rMdtGR5XsPB1r
VZ0mvnWOpZur18Ssd/U75wGFaM1PUUlF7CcnSILAmVDFzMXn3yBRz9cX3EUlDiFAZj
RLuqUG45FxEEHpkJHjWRhY8KyG46kGNqazOk0xDby9W3Bh67OzqqVNXmkYYv+OpIyi
wgXBXNMQ5iqKA==
From: Ekaitz Zarraga <ekaitz@HIDDEN>
Message-ID: <w5ToAECm6QVz81owny9pmPnjKuy2Mf0jVTA17w4HNLw653YowDp9SFpV_cecIsdqzKik9N40o1LqviSIQhSkhSizFHn0exzgxO0Z8ZCZkPA=@elenq.tech>
Feedback-ID: 3263582:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.40.18; envelope-from=ekaitz@HIDDEN;
helo=mail-4018.proton.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
Any package that uses `bash-minimal` to build in mingw (all of them?) fails=
when trying to build `bash-minimal` with the following error:
```
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
rm -f mksyntax.exe
gcc -DPROGRAM=3D'"bash.exe"' -DCONF_HOSTTYPE=3D'"x86_64"' -DCONF_OSTYPE=3D'=
"mingw32"' -DCONF_MACHTYPE=3D'"x86_64-w64-mingw32"' -DCONF_VENDOR=3D'"w64"'=
-DLOCALEDIR=3D'"/gnu/store/lb1afqc8mx7jjynpf8qbn6mc13h9p4ji-bash-minimal-5=
.1.8/share/locale"' -DPACKAGE=3D'"bash"' -DSHELL -DHAVE_CONFIG_H -I. -I.=
-I./include -I./lib -g -DCROSS_COMPILING -g -DCROSS_COMPILING -o mksynt=
ax.exe ./mksyntax.c
In file included from ./mksyntax.c:23:
./config.h:361:19: error: two or more data types in declaration specifiers
361 | #define socklen_t unsigned int
| ^~~~~~~~
./config.h:361:28: error: two or more data types in declaration specifiers
361 | #define socklen_t unsigned int
| ^~~
make: *** [Makefile:720: mksyntax.exe] Error 1
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: () exit-status: 2 ter=
m-signal: #f stop-signal: #f>
phase `build' failed after 0.0 seconds
command "make" failed with status 2
note: keeping build directory `/tmp/guix-build-bash-minimal-5.1.8.drv-2'
builder for `/gnu/store/r3kiyak1js85m8achjf9jcbqq7asmjy3-bash-minimal-5.1.8=
.drv' failed with exit code 1
build of /gnu/store/r3kiyak1js85m8achjf9jcbqq7asmjy3-bash-minimal-5.1.8.drv=
failed
View build log at '/var/log/guix/drvs/r3/kiyak1js85m8achjf9jcbqq7asmjy3-bas=
h-minimal-5.1.8.drv.gz'.
```
I'll investigate but I don't think I'll reach far on this one.
I already tried removing the offending lines from the `config.h` but other =
errors appear (how surprising :) )
Thanks all,
Ekaitz
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ekaitz Zarraga <ekaitz@HIDDEN> Subject: bug#62226: Acknowledgement (bash-minimal fails to build on x86_64-w64-mingw32) Message-ID: <handler.62226.B.16789962438592.ack <at> debbugs.gnu.org> References: <w5ToAECm6QVz81owny9pmPnjKuy2Mf0jVTA17w4HNLw653YowDp9SFpV_cecIsdqzKik9N40o1LqviSIQhSkhSizFHn0exzgxO0Z8ZCZkPA=@elenq.tech> X-Gnu-PR-Message: ack 62226 X-Gnu-PR-Package: guix Reply-To: 62226 <at> debbugs.gnu.org Date: Thu, 16 Mar 2023 19:51:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 62226 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 62226: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62226 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#62226: bash-minimal fails to build on x86_64-w64-mingw32
References: <w5ToAECm6QVz81owny9pmPnjKuy2Mf0jVTA17w4HNLw653YowDp9SFpV_cecIsdqzKik9N40o1LqviSIQhSkhSizFHn0exzgxO0Z8ZCZkPA=@elenq.tech>
In-Reply-To: <w5ToAECm6QVz81owny9pmPnjKuy2Mf0jVTA17w4HNLw653YowDp9SFpV_cecIsdqzKik9N40o1LqviSIQhSkhSizFHn0exzgxO0Z8ZCZkPA=@elenq.tech>
Resent-From: Ekaitz Zarraga <ekaitz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 01 Apr 2023 11:15:02 +0000
Resent-Message-ID: <handler.62226.B62226.168034767113384 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 62226
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: "62226 <at> debbugs.gnu.org" <62226 <at> debbugs.gnu.org>
Received: via spool by 62226-submit <at> debbugs.gnu.org id=B62226.168034767113384
(code B ref 62226); Sat, 01 Apr 2023 11:15:02 +0000
Received: (at 62226) by debbugs.gnu.org; 1 Apr 2023 11:14:31 +0000
Received: from localhost ([127.0.0.1]:35609 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1piZBn-0003To-5l
for submit <at> debbugs.gnu.org; Sat, 01 Apr 2023 07:14:31 -0400
Received: from mail-4022.proton.ch ([185.70.40.22]:41709)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <ekaitz@HIDDEN>) id 1piZBj-0003TW-DC
for 62226 <at> debbugs.gnu.org; Sat, 01 Apr 2023 07:14:30 -0400
Date: Sat, 01 Apr 2023 11:14:11 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech;
s=protonmail; t=1680347660; x=1680606860;
bh=Qnd0q9A4KmrstO8r9ku2O41mVMqry3l+mDljycTzz90=;
h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
b=nVo2e4m7T5yZj6krDvpKxT90dqYN7YBR9q4Afe1P7z7N/Vgkd+ohk8rb/RX6yx2yJ
YjJvFWiTSh34PhowILhz6NLhRFi5lfAtS6jrlqig3ORHuGQ3ksDpTgz7RxBoYpO97H
LUcWGh6Oy6pauG5Rxn09OaMXOVNSGBipLUktgGC2yzFK6YN9mQHCaqWNz5UcdkGp3T
A4zG7s+4Yc72Vrrnm5CtR3AldP1ieQkUwRPC0i5QpzSFcaiVlNz+NcznMhFhCkTxXY
Sjz39ICBAav64Y1rKlgvJUsnj2HldkAt3brySpBUGU0O1adWGjQAwe/FH6WWHamdpu
vIQ9k4PWVJsMQ==
From: Ekaitz Zarraga <ekaitz@HIDDEN>
Message-ID: <w6O3eWqBMn7g1oZS1-4SFahGohlakG_MOkBE-B6MmDutk1DmjEww6mTAeZRRjDSBpnRJbAVv3a1HT1X52cfgB-f0O04WpMyAiVVvloerRMo=@elenq.tech>
Feedback-ID: 3263582:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hi,
Adding:
```
"ac_cv_header_sys_socket_h=3Dno"
```
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 bu=
t it looks like we are finding wrong stuff in the configure step:
```
In file included from shell.c:28:
config.h:340:18: error: =E2=80=98long long long=E2=80=99 is too long for GC=
C
340 | #define intmax_t long long
| ^~~~
config.h:340:23: error: =E2=80=98long long long=E2=80=99 is too long for GC=
C
340 | #define intmax_t long long
| ^~~~
config.h:343:19: error: duplicate =E2=80=98unsigned=E2=80=99
343 | #define uintmax_t unsigned long long
| ^~~~~~~~
config.h:343:28: error: =E2=80=98long long long=E2=80=99 is too long for GC=
C
343 | #define uintmax_t unsigned long long
| ^~~~
config.h:343:33: error: =E2=80=98long long long=E2=80=99 is too long for GC=
C
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 =E2=80=98sigjmp_buf=
=E2=80=99
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:26:8: note: in expansion of macro =E2=80=98procenv_t=E2=80=99
26 | extern procenv_t top_level;
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name =E2=80=98sigjmp_buf=
=E2=80=99
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:27:8: note: in expansion of macro =E2=80=98procenv_t=E2=80=99
27 | extern procenv_t subshell_top_level;
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name =E2=80=98sigjmp_buf=
=E2=80=99
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:28:8: note: in expansion of macro =E2=80=98procenv_t=E2=80=99
28 | extern procenv_t return_catch; /* used by `return' builtin */
| ^~~~~~~~~
./include/posixjmp.h:29:21: error: unknown type name =E2=80=98sigjmp_buf=
=E2=80=99
29 | # define procenv_t sigjmp_buf
| ^~~~~~~~~~
bashjmp.h:29:8: note: in expansion of macro =E2=80=98procenv_t=E2=80=99
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 =E2=80=98(=E2=80=99 before =
=E2=80=98int=E2=80=99
144 | int __cdecl isblank(int _C);
| ^~~~~~~
syntax.h:103:27: error: expected =E2=80=98)=E2=80=99 before =E2=80=98=3D=3D=
=E2=80=99 token
103 | # define isblank(x) ((x) =3D=3D ' ' || (x) =3D=3D '\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
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.