toolchainTag
ActivePublic

Members

  • This project does not have any members.

Watchers

  • This project does not have any watchers.

Details

Description

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

Recent Activity

Sun, Jan 24

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

Does attached patch help?

Sun, Jan 24, 3:49 PM · toolchain, MacOS, libgcrypt, Bug Report

Sat, Jan 23

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

I tried it - that doesn't help. Same error message.

Sat, Jan 23, 5:48 PM · toolchain, MacOS, libgcrypt, Bug Report
jukivili added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Problem is in GET_DATA_POINTER macro. MacOS assembler expects data references in some different format than Linux. Could you try following edit and see if libgcrypt then compiles? In cipher/asm-common-aarch64.h, there is definition of GET_DATA_POINTER macro:

#ifdef _WIN32
#define GET_DATA_POINTER(reg, name) \
	adrp    reg, name ; \
	add     reg, reg, #:lo12:name ;
#else
#define GET_DATA_POINTER(reg, name) \
	adrp    reg, :got:name ; \
	ldr     reg, [reg, #:got_lo12:name] ;
#endif
Sat, Jan 23, 4:49 PM · toolchain, MacOS, libgcrypt, Bug Report
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

I have now tried to build libgcrypt 1.9.0 for arm64 using clang. I get the following error:

Sat, Jan 23, 10:52 AM · toolchain, MacOS, libgcrypt, Bug Report

Tue, Jan 5

werner triaged T5190: g10 Compiler error as Low priority.
Tue, Jan 5, 9:40 AM · AIX, toolchain, gnupg
werner triaged T5157: libgcrypt: ARM64 Builds on macOS fail as Normal priority.
Tue, Jan 5, 9:18 AM · toolchain, MacOS, libgcrypt, Bug Report
werner triaged T5205: GNuPG compile error as Low priority.
Tue, Jan 5, 9:12 AM · gnupg (gpg22), toolchain, Support

Dec 26 2020

werner edited projects for T5190: g10 Compiler error , added: toolchain, AIX; removed Info Needed.
Dec 26 2020, 8:54 PM · AIX, toolchain, gnupg

Dec 4 2020

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

OK, then we'll have to live with --disable-asm until the next major version is released, or switch to gcc.

Dec 4 2020, 9:20 PM · toolchain, MacOS, libgcrypt, Bug Report
werner added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

We should not do this.

Dec 4 2020, 12:17 PM · toolchain, MacOS, libgcrypt, Bug Report

Dec 3 2020

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

AArch64 clang support was added to 'master' on 2018-03-28. One would need to backport commits 8ee38806245ca8452051b1a245f44082323f37f6...9b58e4a03ba3aeff7bae3f40da706977870c9649 to 1.8 branch.

Dec 3 2020, 7:39 PM · toolchain, MacOS, libgcrypt, Bug Report
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

ARM64 has been only tested on platforms which support ELF.

While it doesn't looks good (using AMD64 even if it's ARM64), I think this patch should be applied:

diff --git a/cipher/asm-common-aarch64.h b/cipher/asm-common-aarch64.h
...
Dec 3 2020, 5:48 PM · toolchain, MacOS, libgcrypt, Bug Report

Dec 1 2020

gniibe added a comment to T5024: libtool problem for some platforms for 'make check' (program built with -no-install won't work without installation).

For macOS, with SIP, some program like libgcrypt/tests/random fails, because the hack for DYLD_LIBRARY_PATH by libtool doesn't work for child process:
https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html

Dec 1 2020, 3:09 AM · toolchain

Nov 30 2020

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

Another issue that comes in to mind is that current ARM/ARM64 HW feature detection most likely wont work on MacOS. Thus HW accelerated AES&SHA&GHASH implementation wont be used.

Nov 30 2020, 8:54 AM · toolchain, MacOS, libgcrypt, Bug Report
werner added a parent task for T5157: libgcrypt: ARM64 Builds on macOS fail: T5159: make check fails for libgcrypt on Apple Silicon / ARM Mac.
Nov 30 2020, 8:47 AM · toolchain, MacOS, libgcrypt, Bug Report
jukivili added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS is never defined on ARM64 as it depends on "$mpi_cpu_arch" == "x86". Instead I think new check for GCC assembly ELF directives would be needed in configure.ac, similar to HAVE_GCC_ASM_CFI_DIRECTIVES check. Following check should work, but I have not yet tested it:

Nov 30 2020, 6:49 AM · toolchain, MacOS, libgcrypt, Bug Report
gniibe added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

ARM64 has been only tested on platforms which support ELF.

Nov 30 2020, 2:48 AM · toolchain, MacOS, libgcrypt, Bug Report

Nov 29 2020

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

Yes, I did. Identical result.

Nov 29 2020, 5:12 PM · toolchain, MacOS, libgcrypt, Bug Report
werner added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Why the hell do they that? The standard compiler on a system is called cc which may translated to whatever the system installs for it. gcc is a specific implementation with certain properties. Di you try CC=clang to override this?

Nov 29 2020, 4:41 PM · toolchain, MacOS, libgcrypt, Bug Report
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

And the arm64 cross-compiler:

Nov 29 2020, 3:06 PM · toolchain, MacOS, libgcrypt, Bug Report
patrick added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

Sorry, I forgot to mention that Apple ships a gcc-wrapper for clang. It just accepts gcc command lines parameters and translates them to clang parameters.
Here is the output of gcc --version:

Nov 29 2020, 2:54 PM · toolchain, MacOS, libgcrypt, Bug Report
werner added a comment to T5157: libgcrypt: ARM64 Builds on macOS fail.

You say that you build using clang but the log shows that you invoke gcc.

Nov 29 2020, 1:22 PM · toolchain, MacOS, libgcrypt, Bug Report
werner added projects to T5157: libgcrypt: ARM64 Builds on macOS fail: libgcrypt, MacOS, toolchain.
Nov 29 2020, 1:21 PM · toolchain, MacOS, libgcrypt, Bug Report

Oct 3 2020

werner added a commit to T5088: gpgme-1-13-1 test failure and errors and build errors: rM25e2d717f446: tests: Fix gcc incompatibility.
Oct 3 2020, 7:59 PM · gpgme, toolchain, Bug Report
werner closed T5088: gpgme-1-13-1 test failure and errors and build errors as Resolved.
Oct 3 2020, 7:55 PM · gpgme, toolchain, Bug Report

Aug 17 2020

werner triaged T5024: libtool problem for some platforms for 'make check' (program built with -no-install won't work without installation) as Normal priority.
Aug 17 2020, 9:41 AM · toolchain
werner closed T5025: error: Cannot find a type to use in place of socklen_t as Resolved.

No, c99 was never required. Meanwhile we use a few c99 features but those are supported without any compiler option.

Aug 17 2020, 9:27 AM · Solaris, toolchain, libassuan

Aug 14 2020

JW added a comment to T5025: error: Cannot find a type to use in place of socklen_t.

-std=c99 is probably the reason that the tests fail.

Aug 14 2020, 9:42 PM · Solaris, toolchain, libassuan
werner added projects to T5025: error: Cannot find a type to use in place of socklen_t: toolchain, Solaris.

Please try with out supplied CFLAGS or change them from

Aug 14 2020, 9:40 AM · Solaris, toolchain, libassuan

Jul 16 2020

werner added a project to T3957: GPGME: mkdefsinc segfaults on windows: unreproducible.
Jul 16 2020, 3:29 PM · unreproducible, toolchain, Documentation, Windows, gpgme
werner closed T3957: GPGME: mkdefsinc segfaults on windows as Invalid.

No info received

Jul 16 2020, 3:27 PM · unreproducible, toolchain, Documentation, Windows, gpgme

Jun 28 2020

werner closed T4980: Libgpg-Error compilation fails if grep_options are enabled as Wontfix.
Jun 28 2020, 4:17 PM · toolchain, MacOS, Bug Report

Mar 20 2020

werner closed T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide as Resolved.
Mar 20 2020, 5:59 PM · gnupg (gpg22), toolchain, Bug Report

Mar 18 2020

werner moved T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide from Backlog to For next release on the gnupg (gpg22) board.
Mar 18 2020, 3:49 PM · gnupg (gpg22), toolchain, Bug Report

Feb 17 2020

werner triaged T4848: Usage of git in configure.ac for pinentry/gpa finds incorrect repositories as Normal priority.

Yeah, this can be done.

Feb 17 2020, 9:19 AM · pinentry, gpa, toolchain, Bug Report

Feb 10 2020

werner changed the status of T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide from Open to Testing.

Building with -fno-common now works for me on 2.2 and master. Thanks for the patch.

Feb 10 2020, 4:52 PM · gnupg (gpg22), toolchain, Bug Report
werner added a commit to T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide: rG6aff8a132815: build: Always use EXTERN_UNLESS_MAIN_MODULE pattern..
Feb 10 2020, 4:51 PM · gnupg (gpg22), toolchain, Bug Report
werner added a commit to T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide: rG21d9bd8b87a9: build: Always use EXTERN_UNLESS_MAIN_MODULE pattern..
Feb 10 2020, 4:42 PM · gnupg (gpg22), toolchain, Bug Report
werner added a comment to T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide.

I took your patch but modified it to define EXTERN_UNLESS_MAIN_MODULE only at one place.

Feb 10 2020, 4:39 PM · gnupg (gpg22), toolchain, Bug Report

Feb 6 2020

werner closed T4827: libgpg-error 1.36 and gawk: fatal: cannot use gawk builtin `namespace' as variable name as Resolved.

It has been fixed in the repo for nearly a year, see T4459. A new release is urgently required and will follow in the next days. I close this as a duplicate.

Feb 6 2020, 6:21 PM · Duplicate, gpgrt, toolchain, Bug Report

Feb 3 2020

werner triaged T4831: gnupg-2.2.19 fails to build on latest Fedora Rawhide as High priority.

In a private mail someone else reported a similar problems and explained that gcc-10 will change the default from -fcommon to -fno-common. I think this is again a bad move in compiler development. Replacing the de-facto standard C compiler behaviour with something _allowed_ by ISO-C. No industrial grade toolchain would ever do such a silly default change - too many customers would rightfully be angry with them.

Feb 3 2020, 10:21 AM · gnupg (gpg22), toolchain, Bug Report

Jan 29 2020

werner edited projects for T4827: libgpg-error 1.36 and gawk: fatal: cannot use gawk builtin `namespace' as variable name, added: toolchain, gpgrt; removed gnupg.
Jan 29 2020, 10:29 AM · Duplicate, gpgrt, toolchain, Bug Report

Apr 8 2019

gniibe closed T4415: Does not build using gcc 9 as Invalid.

For what I use, please refer: https://tracker.debian.org/pkg/gcc-9

Apr 8 2019, 11:57 PM · Info Needed, toolchain, Bug Report

Apr 7 2019

kloczek added a comment to T4415: Does not build using gcc 9.

Which one version gcc 9 you've been using?
May I see gcc -v ?

Apr 7 2019, 8:46 AM · Info Needed, toolchain, Bug Report
werner added a comment to T4415: Does not build using gcc 9.

@gniibe already wrote: “With gcc-9 in Debian experimental, everything goes well.”

Apr 7 2019, 8:19 AM · Info Needed, toolchain, Bug Report

Apr 6 2019

kloczek added a comment to T4415: Does not build using gcc 9.

BTW: fedora corp provides already free access to build envs with gcc 9 which can be easily integrated with CIs.

Apr 6 2019, 8:49 AM · Info Needed, toolchain, Bug Report
kloczek added a comment to T4415: Does not build using gcc 9.

What you mean " it is not reproducible for u"?
Did you try to use gcc 9 and you had no problems compiling gnupg or you don't have access to build env with gcc 9?
Try to google to "gcc 9 pragma" and you will find several discussions and patches done by people fixing similar issues.

Apr 6 2019, 8:48 AM · Info Needed, toolchain, Bug Report
gniibe added a project to T4415: Does not build using gcc 9: Info Needed.
Apr 6 2019, 3:58 AM · Info Needed, toolchain, Bug Report
gniibe added a comment to T4415: Does not build using gcc 9.

@kloczek , it is not reproducible for us, so, we consider it may be a problem other than GnuPG itself, possibly, some specific build configuration parameter(s) for GCC, or something by unreleased code.
Please file a report with how to reproduce your problem.

Apr 6 2019, 3:57 AM · Info Needed, toolchain, Bug Report

Apr 5 2019

kloczek added a comment to T4415: Does not build using gcc 9.

Why do you think that it is gcc bug?

Apr 5 2019, 9:29 AM · Info Needed, toolchain, Bug Report