Borrowed from Debian https://sources.debian.org/src/gnupg1/1.4.23-1.1/debian/patches/0006-fix-for-gcc10.patch/ Subject: Fix build with gcc-10 Author: Christoph Biedl Date: 2021-01-04 Bug: https://dev.gnupg.org/T5215 Bug-Debian: https://bugs.debian.org/957293 --- a/g10/options.h +++ b/g10/options.h @@ -29,6 +29,8 @@ /* Norcraft can't cope with common symbols */ #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/cipher.h +++ b/include/cipher.h @@ -117,6 +117,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/iobuf.h +++ b/include/iobuf.h @@ -72,6 +72,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/memory.h +++ b/include/memory.h @@ -93,6 +93,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif --- a/include/mpi.h +++ b/include/mpi.h @@ -38,6 +38,8 @@ #ifndef EXTERN_UNLESS_MAIN_MODULE #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE) #define EXTERN_UNLESS_MAIN_MODULE extern +#elif defined (__GNUC__) && __GNUC__ >= 10 +#define EXTERN_UNLESS_MAIN_MODULE __attribute__((__common__)) #else #define EXTERN_UNLESS_MAIN_MODULE #endif '>path: root/gnu/system/images/pinebook-pro.scm
AgeCommit message (Expand)Author
2022-09-07system: images: Define the platform in image-types....Running the following command where my-pine.scm contains an operating-system declaration: guix system image --image-type=pine64-raw my-pine.scm returns: guix system: error: package linux-libre-arm64-generic@5.18.19 does not support x86_64-linux That's because there's no platform defined in the pine64-raw image-type, hence the guix system image tries to build the image for the host architecture. * gnu/system/images/novena.scm (novena-image-type): Use the armv7-linux platform. * gnu/system/images/pine64.scm (pine64-image-type): Use the aarch64-linux platform. * gnu/system/images/pinebook-pro.scm (pinebook-pro-image-type): Use the aarch64-linux platform. * gnu/system/images/rock64.scm (rock64-image-type): Use the aarch64-linux platform. Mathieu Othacehe