Opened 9 years ago
Closed 9 years ago
#10575 closed defect (fixed)
systemd-238 build issue (BLFS Version 8.2-systemd)
| Reported by: | Wayne Blaszczyk | Owned by: | Bruce Dubbs |
|---|---|---|---|
| Priority: | normal | Milestone: | 8.3 |
| Component: | BOOK | Version: | SVN |
| Severity: | medium | Keywords: | |
| Cc: |
Description (last modified by )
Now at version 238.
systemd-237 will not build if libgcrypt is installed.
[225/1504] Compiling C object 'journal-core@sta/meson-generated_.._src_journal_journald-gperf.c.o'.
FAILED: journal-core@sta/meson-generated_.._src_journal_journald-gperf.c.o
cc -Ijournal-core@sta -I. -I.. -I../ -Isrc/libsystemd-network -I../src/libsystemd-network -I../src/libsystemd/sd-network -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-device -I../src/libsystemd/sd-bus -Isrc/core -I../src/core -Isrc/libudev -I../src/libudev -Isrc/udev -I../src/udev -Isrc/login -I../src/login -Isrc/timesync -I../src/timesync -Isrc/resolve -I../src/resolve -Isrc/journal -I../src/journal -Isrc/systemd -I../src/systemd -Isrc/shared -I../src/shared -Isrc/basic -I../src/basic -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O0 -g -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -fPIE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Werror=shadow -include config.h -fPIC -MMD -MQ 'journal-core@sta/meson-generated_.._src_journal_journald-gperf.c.o' -MF 'journal-core@sta/meson-generated_.._src_journal_journald-gperf.c.o.d' -o 'journal-core@sta/meson-generated_.._src_journal_journald-gperf.c.o' -c src/journal/journald-gperf.c
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/shared/conf-parser.h:29,
from ../src/journal/journald-gperf.gperf:7:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-gperf.gperf:8:
/usr/include/gpg-error.h:1544:46: error: expected ‘,’ or ‘;’ before ‘)’ token
void gpgrt_log_bug (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2);
^
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/shared/conf-parser.h:29,
from ../src/journal/journald-gperf.gperf:7:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-gperf.gperf:8:
/usr/include/gpg-error.h:1545:46: error: expected ‘,’ or ‘;’ before ‘)’ token
void gpgrt_log_fatal (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2);
^
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/shared/conf-parser.h:29,
from ../src/journal/journald-gperf.gperf:7:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-gperf.gperf:8:
/usr/include/gpg-error.h:1557:43: error: expected ‘,’ or ‘;’ before ‘)’ token
const char *func) GPGRT_ATTR_NORETURN;
^
[226/1504] Compiling C object 'journal-core@sta/src_journal_journald-syslog.c.o'.
FAILED: journal-core@sta/src_journal_journald-syslog.c.o
cc -Ijournal-core@sta -I. -I.. -I../ -Isrc/libsystemd-network -I../src/libsystemd-network -I../src/libsystemd/sd-network -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-device -I../src/libsystemd/sd-bus -Isrc/core -I../src/core -Isrc/libudev -I../src/libudev -Isrc/udev -I../src/udev -Isrc/login -I../src/login -Isrc/timesync -I../src/timesync -Isrc/resolve -I../src/resolve -Isrc/journal -I../src/journal -Isrc/systemd -I../src/systemd -Isrc/shared -I../src/shared -Isrc/basic -I../src/basic -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O0 -g -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -fPIE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Werror=shadow -include config.h -fPIC -MMD -MQ 'journal-core@sta/src_journal_journald-syslog.c.o' -MF 'journal-core@sta/src_journal_journald-syslog.c.o.d' -o 'journal-core@sta/src_journal_journald-syslog.c.o' -c ../src/journal/journald-syslog.c
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/journal/journald-syslog.c:27:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-console.h:23,
from ../src/journal/journald-syslog.c:31:
/usr/include/gpg-error.h:1544:46: error: expected ‘,’ or ‘;’ before ‘)’ token
void gpgrt_log_bug (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2);
^
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/journal/journald-syslog.c:27:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-console.h:23,
from ../src/journal/journald-syslog.c:31:
/usr/include/gpg-error.h:1545:46: error: expected ‘,’ or ‘;’ before ‘)’ token
void gpgrt_log_fatal (const char *fmt, ...) GPGRT_ATTR_NR_PRINTF(1,2);
^
In file included from ../src/basic/alloc-util.h:28:0,
from ../src/journal/journald-syslog.c:27:
../src/basic/macro.h:423:18: error: expected ‘)’ before ‘__attribute__’
#define noreturn __attribute__((noreturn))
^
In file included from /usr/include/gcrypt.h:30:0,
from ../src/journal/journal-file.h:26,
from ../src/journal/journald-server.h:31,
from ../src/journal/journald-console.h:23,
from ..[]/src/journal/journald-syslog.c:31:
/usr/include/gpg-error.h:1557:43: error: expected ‘,’ or ‘;’ before ‘)’ token
const char *func) GPGRT_ATTR_NORETURN;
^
[230/1504] Generating org.freedesktop.login1.policy_merge with a custom command.
ninja: build stopped: subcommand failed.
See following link, which is with 238, but same issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893602
Attachments (1)
Change History (6)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
I can confirm that the following commit, when patched with version 238, fixes the above issue.
https://github.com/systemd/systemd/commit/848e863acc51ecfb0f3955c498874588201d9130
comment:3 by , 9 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | systemd-237 build issue (BLFS Version 8.2-systemd) → systemd-238 build issue (BLFS Version 8.2-systemd) |
by , 9 years ago
| Attachment: | systemd-238-gperf-3.1.patch added |
|---|
comment:4 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:5 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Added a patch from upstream git. Thanks to Thanos Baloukas for the diff.
Fixed at revision 20029.
Note:
See TracTickets
for help on using tickets.

Try:
sed -i '422,423d' src/basic/macro.h
But also see the sed commands added last night.