Page MenuHome GnuPG

toolchainTag
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers

  • This project does not have any watchers.
  • View All

Details

Description

Bug or other problem with the toolchain (compiler, etc)

Recent Activity

Jan 5 2024

werner moved T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4 from Backlog to done on the gnupg24 board.
Jan 5 2024, 12:05 PM · gnupg24, toolchain, Feature Request, patch

May 1 2023

gniibe closed T6264: gpgrt-config: Support multilib MinGW-w64 as Resolved.
May 1 2023, 5:06 AM · toolchain, gpgrt

Apr 13 2023

gniibe closed T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4 as Resolved.
Apr 13 2023, 5:07 AM · gnupg24, toolchain, Feature Request, patch

Jan 19 2023

werner removed a project from T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4: gnupg (gpg23).
Jan 19 2023, 4:47 PM · gnupg24, toolchain, Feature Request, patch

Dec 12 2022

gniibe changed the status of T6264: gpgrt-config: Support multilib MinGW-w64 from Open to Testing.

AFAIU, gpgrt-config works well now for the multilib MinGW target.

Dec 12 2022, 9:25 AM · toolchain, gpgrt

Nov 4 2022

werner added projects to T6264: gpgrt-config: Support multilib MinGW-w64: gpgrt, toolchain.
Nov 4 2022, 1:39 PM · toolchain, gpgrt

Oct 14 2022

gniibe changed the status of T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4 from Open to Testing.

Pushed.

Oct 14 2022, 7:10 AM · gnupg24, toolchain, Feature Request, patch

Sep 1 2022

eliz added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

Should be OK for mingw.org's MinGW. I cannot test the MinGW64 bits, but I trust that you did.

Sep 1 2022, 7:16 AM · gnupg24, toolchain, Feature Request, patch
gniibe added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

I encountered this issue of struct stat when compiling for x86_64 of Windows.
I'm considering this patch:

diff --git a/common/sysutils.c b/common/sysutils.c
index c30f9a0ce..bbed309a8 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -1237,10 +1237,20 @@ int
 gnupg_stat (const char *name, struct stat *statbuf)
 {
 # ifdef HAVE_W32_SYSTEM
+#  if __MINGW32_MAJOR_VERSION > 3
+    /* mingw.org's MinGW */
+#   define STRUCT_STAT _stat
+#  elif defined(_USE_32BIT_TIME_T)
+    /* MinGW64 for i686 */
+#   define STRUCT_STAT _stat32
+#  else
+    /* MinGW64 for x86_64 */
+#   define STRUCT_STAT _stat64i32
+#  endif
   if (any8bitchar (name))
     {
       wchar_t *wname;
-      struct _stat32 st32;
+      struct STRUCT_STAT st32;
       int ret;
Sep 1 2022, 6:27 AM · gnupg24, toolchain, Feature Request, patch

Jul 26 2022

werner closed T5899: Fix compilation of dirmngr with mingw.org's MinGW as Resolved.
Jul 26 2022, 8:58 PM · patch, Feature Request, Windows, toolchain

May 16 2022

gniibe removed a project from T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared: Restricted Project.
May 16 2022, 8:23 AM · toolchain, libksba, Bug Report

May 13 2022

werner closed T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared as Resolved.
May 13 2022, 3:48 PM · toolchain, libksba, Bug Report

May 10 2022

gniibe added a comment to T5899: Fix compilation of dirmngr with mingw.org's MinGW.

Pushed the changes for http.c.

May 10 2022, 7:58 AM · patch, Feature Request, Windows, toolchain

May 9 2022

gniibe closed T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result as Wontfix.

GCC 11.3 and GCC 12.1 are out with the fix.

May 9 2022, 3:02 AM · toolchain, libgcrypt, Bug Report

Mar 30 2022

gniibe claimed T5899: Fix compilation of dirmngr with mingw.org's MinGW.

Last part is applied. Let me consider how to solve, for other parts.

Mar 30 2022, 6:07 AM · patch, Feature Request, Windows, toolchain

Mar 22 2022

eliz added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

I guess I don't understand what you mean by "native building". This build was with MinGW, which is as "native" as MinGW64 is.
The reason for the problem is (AFAIU) that MinGW64 went after Microsoft's change in stat due to the 32-bit vs 64-bit time and off_t values issue.s That change breaks backward compatibility in more than one way: programs compiled on some versions of Windows will not run on other versions. mingw.org's MinGW kept the original semantics and symbols, which is why _stat32 exists in the mingw.org's headers, but is not exposed by default.

Mar 22 2022, 1:52 PM · gnupg24, toolchain, Feature Request, patch
werner triaged T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4 as Normal priority.

Turned into a feature request because native building on Windows is not supported.

Mar 22 2022, 11:49 AM · gnupg24, toolchain, Feature Request, patch
werner triaged T5899: Fix compilation of dirmngr with mingw.org's MinGW as Normal priority.
Mar 22 2022, 11:43 AM · patch, Feature Request, Windows, toolchain

Mar 16 2022

gniibe closed T5157: libgcrypt: ARM64 Builds on macOS fail as Resolved.
Mar 16 2022, 3:09 PM · toolchain, MacOS, libgcrypt, Bug Report

Nov 23 2021

werner closed T5205: GNuPG compile error as Resolved.
Nov 23 2021, 9:17 AM · gnupg (gpg22), toolchain, Support

Oct 13 2021

gniibe added a project to T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared: Restricted Project.
Oct 13 2021, 10:03 AM · toolchain, libksba, Bug Report
gniibe closed T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories as Resolved.
Oct 13 2021, 3:54 AM · pinentry, gpa, toolchain, Bug Report

Oct 12 2021

werner added a comment to T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared.

Bison used to be the de-facto standard yacc ;-)

Oct 12 2021, 2:33 PM · toolchain, libksba, Bug Report
gniibe claimed T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared.

I think that a simple way is defining a table (string -> token) by ourselves in yylex, not enabling %token-table.
(Then, we don't need to depend on the feature of string with %token, which is not supported by POSIX yacc.)

Oct 12 2021, 9:50 AM · toolchain, libksba, Bug Report

Oct 11 2021

werner raised the priority of T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared from Normal to High.

Thanks for your findings. I recall that I read this in the announcement and cursed about this new tendency in GNU to break long standing APIs.

Oct 11 2021, 5:49 PM · toolchain, libksba, Bug Report
adrianvovk added a comment to T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared.

Looks like yytoknum was removed from Bison in version 3.8: http://git.savannah.gnu.org/cgit/bison.git/commit/?id=1efe31185ff6b0bc22ff527098971bedf1ace5f4

Oct 11 2021, 8:50 AM · toolchain, libksba, Bug Report

Sep 22 2021

werner triaged T5616: asn1-parse.y:861:20: error: 'yytoknum' undeclared as Normal priority.
Sep 22 2021, 9:55 PM · toolchain, libksba, Bug Report

Sep 1 2021

jukivili added a comment to T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result.

Based on GCC bugzilla, affected released GCC versions are 11.1 and 11.2.

Sep 1 2021, 3:44 PM · toolchain, libgcrypt, Bug Report
jukivili added a comment to T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result.

(ab | ba) >= 0 is used to make optimization analysis for compiler more difficult. I see that with (ab | ba) == 0, it would be much easier for compiler to conclude than loop could exit early as soon as first a[i] != b[i] is seen.

Sep 1 2021, 3:39 PM · toolchain, libgcrypt, Bug Report

Aug 31 2021

changyp6 updated the task description for T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result.
Aug 31 2021, 9:57 AM · toolchain, libgcrypt, Bug Report
werner triaged T5581: buf_eq_const() function in cipher/bufhelp.h may get wrong result as High priority.
Aug 31 2021, 7:58 AM · toolchain, libgcrypt, Bug Report

May 11 2021

werner triaged T5431: Use AC_PROG_CC_C99 as Normal priority.
May 11 2021, 8:23 AM · gnupg24, toolchain, gnupg (gpg23)

Apr 18 2021

werner added a comment to T5394: scute: Build failure with slibtool.

t-link does not do antthing useful, anyway. I don't think it is justified to add dlopen stuff. Running real test is anyway a manual action; for a full test automation we would need to emulate all supported cards.

Apr 18 2021, 7:40 PM · toolchain, Feature Request, scute

Apr 17 2021

gouttegd added a comment to T5394: scute: Build failure with slibtool.

the t-link test should dlopen scute.so in runtime rather than link against it in build-time.

Apr 17 2021, 4:15 PM · toolchain, Feature Request, scute

Apr 16 2021

midipix added a comment to T5394: scute: Build failure with slibtool.

As of slibtool commit 9c5ba5eb, scute now builds out of the box. I'd still recommend taking the above into consideration, though.

Apr 16 2021, 4:53 PM · toolchain, Feature Request, scute
midipix added a comment to T5394: scute: Build failure with slibtool.

For what it's worth, scute is in violation of gnu libtool's documentation. Building with gnu libtool:

Apr 16 2021, 10:21 AM · toolchain, Feature Request, scute

Apr 15 2021

gniibe changed the status of T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories from Open to Testing.

Done for gpa.
Please test.

Apr 15 2021, 7:08 AM · pinentry, gpa, toolchain, Bug Report
gniibe added a comment to T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories.

Done for pinentry.

Apr 15 2021, 6:36 AM · pinentry, gpa, toolchain, Bug Report

Apr 13 2021

midipix added a comment to T5394: scute: Build failure with slibtool.

Regarding slibtool: I would actually like to have an easier to maintain tool than libtool (of which we use our own version) for GnuPG related software. However, its requirement "the compiler should support -std=c99" is currently a no-starter for libgcrypt and some other libs.

Apr 13 2021, 9:13 PM · toolchain, Feature Request, scute
werner triaged T5394: scute: Build failure with slibtool as Normal priority.
Apr 13 2021, 8:13 AM · toolchain, Feature Request, scute

Mar 29 2021

JW added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Sorry to dig up an old thread...

Mar 29 2021, 2:11 AM · toolchain, MacOS, libgcrypt, Bug Report

Feb 22 2021

werner added a comment to T5205: GNuPG compile error.

The configure run tells you what libraries are missing - none in your case. However, something is wrong with your development setup: The configure run detected libksba but cc compiler did not found it anymore. Check that you don't have any special envvars set etc. What is the actual compiler command which failed (make sure not to pass V=0 to make for this).

Feb 22 2021, 10:44 AM · gnupg (gpg22), toolchain, Support

Feb 21 2021

rameshrella added a comment to T5205: GNuPG compile error.

Dear Werner,

Feb 21 2021, 8:17 PM · gnupg (gpg22), toolchain, Support

Feb 15 2021

aheinecke changed the status of T5302: autogen.sh --build-w32 fails with "configure: convert is missing" from Wontfix to Resolved.

Thanks, I try to keep the README always up to date with the debian depenencies as I find this useful myself without running configure multiple times to find all the dependencies.

Feb 15 2021, 8:15 AM · toolchain, gpg4win

Feb 14 2021

doug added a comment to T5302: autogen.sh --build-w32 fails with "configure: convert is missing".

No question a list like this is bound to be incomplete, but the argument "the README can only tell about those which we don't expect to be installed on a developer's box" does not seem to apply to the other items already on the list. For instance build-essentials and automake are almost certainly on every developers machine already.

Feb 14 2021, 6:43 PM · toolchain, gpg4win
werner closed T5302: autogen.sh --build-w32 fails with "configure: convert is missing" as Wontfix.

There is a message telling you what is missing. Thus I can not consider this a bug. There are just too many dependencies which are required for cross-compiling that the README can only tell about those which we don't expect to be installed on a developer's box.

Feb 14 2021, 4:12 PM · toolchain, gpg4win

Feb 12 2021

werner closed T5259: Release Libgcrypt 1.9.1, a subtask of T5157: libgcrypt: ARM64 Builds on macOS fail, as Resolved.
Feb 12 2021, 12:34 PM · toolchain, MacOS, libgcrypt, Bug Report

Feb 1 2021

patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

no, that doesn't change anything.

Feb 1 2021, 8:00 AM · toolchain, MacOS, libgcrypt, Bug Report

Jan 31 2021

jukivili added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Does it build if configure with parameter 'ac_cv_sys_symbol_underscore=yes'? <path-to-libgcrypt-source>/configure ac_cv_sys_symbol_underscore=yes --host=aarch64-apple-darwin ...

Jan 31 2021, 7:32 PM · toolchain, MacOS, libgcrypt, Bug Report

Jan 30 2021

patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Compiling now works, but I get the following linker errors:

Jan 30 2021, 5:15 PM · toolchain, MacOS, libgcrypt, Bug Report