Menu

#36 compilation failure on riscv64

v1.0_(example)
closed
None
5
2023-05-18
2023-05-13
Moody Liu
No

there is missing typedef for CHAR8 and a conflicted typedef for BOOLEAN:

the error log is as follows:

In file included from /build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/efi.h:62,
                 from /build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/lib.h:23,
                 from /build/gnu-efi/src/gnu-efi-3.0.17//lib/smbios.c:17:
/build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/efidef.h:25:15: error: conflicting types for ‘BOOLEAN’; have ‘_Bool’
   25 | typedef _Bool BOOLEAN;
      |               ^~~~~~~
In file included from /build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/efi.h:54:
/build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/riscv64/efibind.h:38:33: note: previous declaration of ‘BOOLEAN’ with type ‘BOOLEAN’ {aka ‘unsigned char’}
   38 | typedef uint8_t                 BOOLEAN;
      |                                 ^~~~~~~
/build/gnu-efi/src/gnu-efi-3.0.17//lib/../inc/efidef.h:217:9: error: unknown type name ‘CHAR8’
  217 | typedef CHAR8 ISO_639_2;
      |         ^~~~~

Discussion

  • Nigel Croxon

    Nigel Croxon - 2023-05-16

    If you produce a patch, I will review it.

     
  • Pete Batard

    Pete Batard - 2023-05-18

    For the record, I submitted a patch for it in https://sourceforge.net/p/gnu-efi/patches/88/

     
    👍
    1
  • Moody Liu

    Moody Liu - 2023-05-18

    well there has been one at https://sourceforge.net/p/gnu-efi/code/merge-requests/52/
    they are the same btw :)

     

    Last edit: Moody Liu 2023-05-18
  • Nigel Croxon

    Nigel Croxon - 2023-05-18

    committed [20d8d8] Merge /u/moodyhunter/gnu-efi/ branch master into master
    merged merge request #52 on Code riscv64: fix build errors

     

    Related

    Commit: [20d8d8]

  • Nigel Croxon

    Nigel Croxon - 2023-05-18
    • status: open --> closed
    • assigned_to: Nigel Croxon
     

Log in to post a comment.