hi35xx / hi35xx-buildroot

buildroot for hisilicon hi35xx series
Other
143 stars 95 forks source link

uboot-tools 2018.07 Building conflicting types for ‘__packed’ #15

Open rucebee opened 4 years ago

rucebee commented 4 years ago

uboot-tools 2018.07 Building

In file included from tools/env/fw_env.c:38:0: ./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/mtd/ubi-user.h:329:3: error: conflicting types for ‘packed’ } packed; ^~~~ ./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/mtd/ubi-user.h:313:3: note: previous declaration of ‘packed’ was here } packed; ^~~~

any suggestion?

dmascord commented 4 years ago

perl -i -p -e 's/\b__packed\b/__attribute__((packed))/g;' ./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/mtd/ubi-user.h

That did it for me, not sure why editing linux/linux-3.0.y/scripts/headers_install.pl didn't work.