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

Compile errors in pop!_OS 20.04 #57

Open
TheLongDefeat opened this issue Jan 18, 2021 · 0 comments
Open

Compile errors in pop!_OS 20.04 #57

TheLongDefeat opened this issue Jan 18, 2021 · 0 comments

Comments

@TheLongDefeat
Copy link

I was trying to run make to build in Pop!_OS 20.04, and I received the following error message:

make[1]: Entering directory '/home/luisrivera/Downloads/hakchi/3rdparty/mkbootimg'
gcc -o mkbootimg.o -ffunction-sections -O3 -c mkbootimg.c -I. -Werror
mkbootimg.c: In function ‘main’:
mkbootimg.c:381:40: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
381 | kernel_data = load_file(kernel_fn, &hdr.kernel_size);
| ^~~~~~~~~~~~~~~~
mkbootimg.c:391:46: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
391 | ramdisk_data = load_file(ramdisk_fn, &hdr.ramdisk_size);
| ^~~~~~~~~~~~~~~~~
mkbootimg.c:399:44: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
399 | second_data = load_file(second_fn, &hdr.second_size);
| ^~~~~~~~~~~~~~~~
mkbootimg.c:407:36: error: taking address of packed member of ‘struct boot_img_hdr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
407 | dt_data = load_file(dt_fn, &hdr.dt_size);
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:35: mkbootimg.o] Error 1
make[1]: Leaving directory '/home/luisrivera/Downloads/hakchi/3rdparty/mkbootimg'
make: *** [Makefile:43: 3rdparty/mkbootimg/mkbootimg] Error 2

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