Bug 14476

Summary: Cannot build Image
Product: buildroot Reporter: Mauricio <mlicul>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Mauricio 2021-12-27 06:22:57 UTC
Hello,

please, if someone can help me to resolve the error that I am getting when try to do make (for imx6 sabre...) with Buildroot. Thank you very much. Regards.

The make process stops and I get this errors:

PATH="/home/m/buildroot/output/host/bin:/home/m/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" PKG_CONFIG="/home/m/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/m/buildroot/output/host/lib/pkgconfig:/home/m/buildroot/output/host/share/pkgconfig"  /usr/bin/make -j9  -C /home/m/buildroot/output/build/host-util-linux-2.37.2/
make[1]: Entering directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
/usr/bin/make  all-recursive
make[2]: Entering directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
Making all in po
make[3]: Entering directory '/home/m/buildroot/output/build/host-util-linux-2.37.2/po'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/m/buildroot/output/build/host-util-linux-2.37.2/po'
make[3]: Entering directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
  CC       sys-utils/umount-umount.o
  CC       sys-utils/mountpoint-mountpoint.o
gcc: error: unrecognized command line option ‘-Waddress-of-packed-member’
gcc: error: unrecognized command line option ‘-Waddress-of-packed-member’
make[3]: *** [Makefile:13879: sys-utils/umount-umount.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:12087: sys-utils/mountpoint-mountpoint.o] Error 1
  CC       sys-utils/fstrim-fstrim.o
  CC       sys-utils/ctrlaltdel.o
gcc: error: unrecognized command line option ‘-Waddress-of-packed-member’
gcc: error: unrecognized command line option ‘-Waddress-of-packed-member’
make[3]: *** [Makefile:11499: sys-utils/fstrim-fstrim.o] Error 1
make[3]: *** [Makefile:9488: sys-utils/ctrlaltdel.o] Error 1
make[3]: Leaving directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
make[2]: *** [Makefile:14611: all-recursive] Error 1
make[2]: Leaving directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
make[1]: *** [Makefile:6321: all] Error 2
make[1]: Leaving directory '/home/m/buildroot/output/build/host-util-linux-2.37.2'
make: *** [package/pkg-generic.mk:295: /home/m/buildroot/output/build/host-util-linux-2.37.2/.stamp_built] Error 2
Comment 1 Thomas Petazzoni 2021-12-27 09:03:59 UTC
Thanks for your report. Could you clarify which Buildroot version/commit you're using, and also which gcc version you are using on your Linux distribution?

Additionally, could you attach the file output/build/host-util-linux-2.37.2/config.log ?

What's weird is that util-linux-2.37.2 indeed tries to use -Waddress-of-packed-member, but only after testing that the compiler supports it. So it's quite odd that you get into a situation where this compiler flag gets used, while the compiler doesn't support it.
Comment 2 Yann E. MORIN 2024-06-15 15:00:30 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!