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

evb-rk3328 #56

Open
jwinarske opened this issue Jun 27, 2020 · 0 comments
Open

evb-rk3328 #56

jwinarske opened this issue Jun 27, 2020 · 0 comments

Comments

@jwinarske
Copy link

jwinarske commented Jun 27, 2020

make CROSS_COMPILE=aarch64-none-linux-gnu- evb-rk3328_defconfig all

disk/part_efi.c: In function 'gpt_verify_partitions':
disk/part_efi.c:863:49: error: taking address of packed member of 'struct _gpt_entry' may result in an unaligned pointer value [-Werror=address-of-packed-member]
  863 |   gpt_convert_efi_name_to_char(efi_str, gpt_e[i].partition_name,
      |                                         ~~~~~~~~^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
lib/uuid.c:239:2: error: converting a packed ‘struct uuid’ pointer (alignment 1) to a ‘unsigned int’ pointer (alignment 4) may result in an unaligned pointer value [-Werror=address-of-packed-member]
  239 |  unsigned int *ptr = (unsigned int *)&uuid;
      |  ^~~~~~~~
In file included from include/part.h:12,
                 from include/common.h:37,
                 from lib/uuid.c:7:
include/uuid.h:11:8: note: defined here
   11 | struct uuid {
      |        ^~~~

etc.

They're easy fixes using the pattern of assigning it to a void*, then using the void*. It builds when I use this pattern to fix all the build breaks. Seems odd I would see this.

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