Builds with GCC-5 failed due to misplaced `_Noreturn (__attribute__((noreturn)))` statement. Patch copied from upstream source repository: http://git.savannah.gnu.org/cgit/rcs.git/commit/?h=p&id=260704a9164dd34cf7128d6b1e88075ffa3be054 Upstream bug URL: https://savannah.gnu.org/bugs/?49568 commit 260704a9164dd34cf7128d6b1e88075ffa3be054 Author: Thien-Thi Nguyen Date: Thu Jun 18 21:25:53 2015 +0200 [C slog] Move ‘exiting’ to beginning of func decl. Apparently, ‘gcc --std=c11’ does not abide the ‘exiting’ attribute appearing at the end of the func decl. Reported by Romain Francoise. See also . * src/b-complain.h (generic_fatal, fatal_syntax, fatal_sys) * src/b-fb.h (Ierror, Oerror) * src/base.h (unexpected_EOF, thank_you_and_goodnight): Move ‘exiting’ attribute to beginning of func decl. diff --git a/src/b-complain.h b/src/b-complain.h index 0ffd157..ea0ffc5 100644 --- a/src/b-complain.h +++ b/src/b-complain.h @@ -32,12 +32,14 @@ extern void generic_warn (char const *who, char const *fmt, ...) printf_string (2, 3); extern void generic_error (char const *who, char const *fmt, ...) printf_string (2, 3); +exiting extern void generic_fatal (char const *who, char const *fmt, ...) - printf_string (2, 3) exiting; + printf_string (2, 3); +exiting extern void fatal_syntax (size_t lno, char const *fmt, ...) - printf_string (2, 3) exiting; -extern void fatal_sys (char const *who) - exiting; + printf_string (2, 3); +exiting +extern void fatal_sys (char const *who); /* Idioms. Here, prefix P stands for "program" (general operation); M for "manifestation"; R for "repository". */ diff --git a/src/b-fb.h b/src/b-fb.h index c9850e7..bf5eaf8 100644 --- a/src/b-fb.h +++ b/src/b-fb.h @@ -21,9 +21,11 @@ */ extern int change_mode (int fd, mode_t mode); -extern void Ierror (void) exiting; +exiting +extern void Ierror (void); extern void testIerror (FILE *f); -extern void Oerror (void) exiting; +exiting +extern void Oerror (void); extern void testOerror (FILE *o); extern FILE *fopen_safer (char const *filename, char const *type); extern void Ozclose (FILE **p); diff --git a/src/base.h b/src/base.h index 163ee09..5e7a9f8 100644 --- a/src/base.h +++ b/src/base.h @@ -755,8 +755,8 @@ int dorewrite (bool lockflag, int changed); int donerewrite (int changed, time_t newRCStime); void ORCSclose (void); void ORCSerror (void); -void unexpected_EOF (void) - exiting; +exiting +void unexpected_EOF (void); void initdiffcmd (struct diffcmd *dc); int getdiffcmd (struct fro *finfile, bool delimiter, FILE *foutfile, struct diffcmd *dc); @@ -831,8 +831,8 @@ char const *date2str (char const date[datesize], char datebuf[datesize + zonelenmax]); /* rcsutil */ -void thank_you_and_goodnight (int const how) - exiting; +exiting +void thank_you_and_goodnight (int const how); /* These are for ‘thank_you_and_goodnight’. */ #define TYAG_ORCSERROR (1 << 3) #define TYAG_DIRTMPUNLINK (1 << 2) chine-default-image): (virtual-build-machine-account-name) (virtual-build-machine-accounts) (build-vm-shepherd-services) (initialize-build-vm-substitutes) (build-vm-activation) (virtual-build-machine-offloading-ssh-key) (virtual-build-machine-activation) (virtual-build-machine-secret-root) (check-vm-availability) (build-vm-guix-extension): New procedures. (initialize-hurd-vm-substitutes): Remove. (hurd-vm-activation): Rewrite in terms of ‘build-vm-activation’. * gnu/system/vm.scm (linux-image-startup-command): New procedure. (operating-system-for-image): Export. * gnu/tests/virtualization.scm (run-command-over-ssh): New procedure, extracted from… (run-childhurd-test): … here. [test]: Adjust accordingly. (%build-vm-os): New variable. (run-build-vm-test): New procedure. (%test-build-vm): New variable. * doc/guix.texi (Virtualization Services)[Virtual Build Machines]: New section. (Build Environment Setup): Add cross-reference. Change-Id: I0a47652a583062314020325aedb654f11cb2499c Ludovic Courtès 2024-01-22gnu: Remove linux-libre 4.14....* gnu/packages/linux.scm (linux-libre-4.14-version, linux-libre-4.14-gnu-revision, deblob-scripts-4.14, linux-libre-4.14-pristine-source, linux-libre-4.14-source, linux-libre-headers-4.14, linux-libre-4.14, linux-libre-arm-generic-4.14, linux-libre-arm-omap2plus-4.14): Remove variables. * gnu/packages/aux-files/linux-libre/4.14-arm.conf, gnu/packages/aux-files/linux-libre/4.14-i686.conf, gnu/packages/aux-files/linux-libre/4.14-x86_64.conf: Delete files. * Makefile.am (AUX_FILES): Remove aforementioned .conf files. * gnu/tests/base.scm (%test-linux-libre-4.14): Remove variable. Change-Id: I40393b5f46b989848d569c929f1d9c986736553e Wilko Meyer