Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build AUR #2

Open
JacksonChen666 opened this issue May 9, 2021 · 0 comments
Open

Cannot build AUR #2

JacksonChen666 opened this issue May 9, 2021 · 0 comments

Comments

@JacksonChen666
Copy link

JacksonChen666 commented May 9, 2021

While looking around some systemd-boot articles I found this repository as AUR, and I tried building it. But due to apparently conflicting types, it didn't work.

System details: Macbook Pro 2017 (base model)
uname -a: Linux $hostname 5.12.1-arch1-1 #1 SMP PREEMPT Sun, 02 May 2021 12:43:58 +0000 x86_64 GNU/Linux
OS: Arch Linux

Here is the console log:

$username@$hostname /tmp/systemd-boot-password $ makepkg -sri
==> Making package: systemd-boot-password 1.0.237-1 (Sun May  9 15:49:21 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (3) docbook-xml-4.5-9  docbook-xsl-1.79.2-7  gnu-efi-3.0.13-1

Total Installed Size:  29.91 MiB

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring
(3/3) checking package integrity
(3/3) loading package files
(3/3) checking for file conflicts
(3/3) checking available disk space
:: Processing package changes...
(1/3) installing gnu-efi
(2/3) installing docbook-xml
(3/3) installing docbook-xsl
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Found systemd-boot-password-1.0.237.tar.xz
==> Validating source files with sha256sums...
    systemd-boot-password-1.0.237.tar.xz ... Passed
==> Extracting sources...
  -> Extracting systemd-boot-password-1.0.237.tar.xz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... none needed
checking for objcopy... objcopy
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking efi/x86_64/efibind.h usability... yes
checking efi/x86_64/efibind.h presence... yes
checking for efi/x86_64/efibind.h... yes
checking for xsltproc... /usr/bin/xsltproc
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating completion/Makefile
config.status: creating completion/bash/Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating src/efi/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

systemd-boot-password 1.0.237
prefix: /usr
datarootdir: ${prefix}/share
arch: x86_64
EFI machine type: x64
EFI libdir: /usr/lib
EFI ldsdir: /usr/lib
EFI includedir: /usr/include
Allow Secure Boot password: true
Bash completions dir: ${datarootdir}/bash-completion/completions
Boot lib dir: /usr/lib/systemd/boot/efi-sbp

make  all-recursive
make[1]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237'
Making all in completion
make[2]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion'
Making all in bash
make[3]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion/bash'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion/bash'
make[3]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion'
make[2]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/completion'
Making all in man
make[2]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/man'
Making all in src
make[2]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/src'
Making all in efi
make[3]: Entering directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/src/efi'
  CC       console.o
console.c:23: warning: "EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID" redefined
   23 | #define EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID \
      | 
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:22: note: this is the location of the previous definition
   22 | #define EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID \
      | 
console.c:38:3: error: conflicting types for 'EFI_KEY_STATE'
   38 | } EFI_KEY_STATE;
      |   ^~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:32:3: note: previous declaration of 'EFI_KEY_STATE' was here
   32 | } EFI_KEY_STATE;
      |   ^~~~~~~~~~~~~
console.c:43:3: error: conflicting types for 'EFI_KEY_DATA'
   43 | } EFI_KEY_DATA;
      |   ^~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:37:3: note: previous declaration of 'EFI_KEY_DATA' was here
   37 | } EFI_KEY_DATA;
      |   ^~~~~~~~~~~~
console.c:45:29: error: conflicting types for 'EFI_INPUT_READ_KEY_EX'
   45 | typedef EFI_STATUS (EFIAPI *EFI_INPUT_READ_KEY_EX)(
      |                             ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:68:10: note: previous declaration of 'EFI_INPUT_READ_KEY_EX' was here
   68 | (EFIAPI *EFI_INPUT_READ_KEY_EX) (
      |          ^~~~~~~~~~~~~~~~~~~~~
console.c:55:29: error: conflicting types for 'EFI_KEY_NOTIFY_FUNCTION'
   55 | typedef EFI_STATUS (EFIAPI *EFI_KEY_NOTIFY_FUNCTION)(
      |                             ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:82:10: note: previous declaration of 'EFI_KEY_NOTIFY_FUNCTION' was here
   82 | (EFIAPI *EFI_KEY_NOTIFY_FUNCTION) (
      |          ^~~~~~~~~~~~~~~~~~~~~~~
console.c:59:29: error: conflicting types for 'EFI_REGISTER_KEYSTROKE_NOTIFY'
   59 | typedef EFI_STATUS (EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY)(
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:88:10: note: previous declaration of 'EFI_REGISTER_KEYSTROKE_NOTIFY' was here
   88 | (EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY) (
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console.c:71:16: error: redefinition of 'struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL'
   71 | typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL {
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:102:16: note: originally defined here
  102 | typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL{
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
console.c:78:3: error: conflicting types for 'EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL'
   78 | } EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:63,
                 from console.c:17:
/usr/include/efi/eficonex.h:109:3: note: previous declaration of 'EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL' was here
  109 | } EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/efi/efi.h:42,
                 from console.c:17:
console.c: In function 'console_key_read':
console.c:104:74: warning: passing argument 1 of 'TextInputEx->ReadKeyStrokeEx' from incompatible pointer type [-Wincompatible-pointer-types]
  104 |                 err = uefi_call_wrapper(TextInputEx->ReadKeyStrokeEx, 2, TextInputEx, &keydata);
      |                                                                          ^~~~~~~~~~~
      |                                                                          |
      |                                                                          EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL * {aka struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *}
/usr/include/efi/x86_64/efibind.h:300:51: note: in definition of macro 'uefi_call_wrapper'
  300 | #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
      |                                                   ^~~~~~~~~~~
console.c:104:74: note: expected 'struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *' but argument is of type 'EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *' {aka 'struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *'}
  104 |                 err = uefi_call_wrapper(TextInputEx->ReadKeyStrokeEx, 2, TextInputEx, &keydata);
      |                                                                          ^~~~~~~~~~~
/usr/include/efi/x86_64/efibind.h:300:51: note: in definition of macro 'uefi_call_wrapper'
  300 | #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
      |                                                   ^~~~~~~~~~~
make[3]: *** [Makefile:575: console.o] Error 1
make[3]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/src/efi'
make[2]: *** [Makefile:408: all-recursive] Error 1
make[2]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237/src'
make[1]: *** [Makefile:382: all-recursive] Error 1
make[1]: Leaving directory '/tmp/systemd-boot-password/src/systemd-boot-password-1.0.237'
make: *** [Makefile:323: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...
checking dependencies...

Packages (3) docbook-xml-4.5-9  docbook-xsl-1.79.2-7  gnu-efi-3.0.13-1

Total Removed Size:  29.91 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/3) removing gnu-efi
(2/3) removing docbook-xsl
(3/3) removing docbook-xml
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
$user@$hostname /tmp/systemd-boot-password $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant