[#6960] build e2fsprogs fails for error in include/linux/netdevice.h
Submitted By: Mingquan Pan
Open Date
2012-01-19 22:39:38 Close Date
2012-05-14 04:52:14
Priority:
Medium Assignee:
Bob Liu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
2012-trunk head
App binary format:
N/A
Summary: build e2fsprogs fails for error in include/linux/netdevice.h
Details:
build e2fsprogs fails for error in include/linux/if_packet.h now. It happens when building canbus which needs e2fsprogs.
make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.12/po'^M
if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then make install-libs ; fi^M
make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.12'^M
make DVI=true MAKEINFO=true post-build^M
make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
make[4]: Nothing to be done for `post-build'.^M
make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
/home/test/work/cruise/checkouts/uclinux-dist/tools/cross-fix-root^M
make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o utils.o utils.c^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o rt_names.o rt_names.c^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o ll_types.o ll_types.c^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -c -o ll_proto.o ll_proto.c^M
In file included from ../include/linux/netdevice.h:30:0,^M
from ll_types.c:24:^M
/home/test/uClinux.2012_Jan_15/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/if_packet.h:176:2: error: expected specifier-qualifier-list before ‘__aligned_u64’^M
In file included from ../include/linux/netdevice.h:30:0,^M
from ll_proto.c:24:^M
/home/test/uClinux.2012_Jan_15/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/if_packet.h:176:2: error: expected specifier-qualifier-list before ‘__aligned_u64’^M
make[5]: *** [ll_types.o] Error 1^M
make[5]: *** Waiting for unfinished jobs....^M
[ ! -d "jpegview" ] || ( touch jpegview/.sgbuilt_user && make -C jpegview ) || exit $?^M
make[5]: *** [ll_proto.o] Error 1^M
[ ! -d "lrzsz" ] || ( touch lrzsz/.sgbuilt_user && make -C lrzsz ) || exit $?^M
make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/lrzsz'^M
list='lib src '; for subdir in $list; do \^M
target=all \^M
Follow-ups
--- Bob Liu 2012-02-10 02:46:29
try toolchain built with linux kernel 3.2 header file.
--- Mingquan Pan 2012-02-21 02:24:51
It looks changing to build with 3.2 linux kernel header file doesn't help.
with toolchain :
Using built-in specs.
Target: bfin-uclinux
Configured with: /home/test/work/cruise/checkouts/toolchain/gcc-4.3/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux
--prefix=/home/test/work/cruise/temp/bfin-uclinux --disable-libstdcxx-pch
--with-sysroot=/home/test/work/cruise/temp/bfin-uclinux/bfin-uclinux/runtime
--enable-threads=posix --enable-clocale=generic --disable-symvers
--disable-libssp --disable-libffi --disable-libgcj
--enable-version-specific-runtime-libs --enable-__cxa_atexit
--with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker
--with-pkgversion=ADI-trunk/svn-5764
Thread model: posix
gcc version 4.3.5 (ADI-trunk/svn-5764)
build_canbus_kernel_log still get:
make[5]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.12/po'^M
if test ! -d e2fsck && test ! -d debugfs && test ! -d misc
&& test ! -d ext2ed ; then make install-libs ; fi^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
-DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC
-DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist
-mcpu=bf537-0.2 -c -o ll_types.o ll_types.c^M
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.12'^M
make DVI=true MAKEINFO=true post-build^M
make[4]: Entering directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
make[4]: Nothing to be done for `post-build'.^M
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
/home/test/work/cruise/checkouts/uclinux-dist/tools/cross-fix-root^M
make[3]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/e2fsprogs'^M
bfin-uclinux-gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include
-DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib/\" -DNO_SHARED_LIBS -fPIC
-DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist
-mcpu=bf537-0.2 -c -o ll_proto.o ll_proto.c^M
make[4]: Entering directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6'^M
make[4]: warning: jobserver unavailable: using -j1. Add `+' to parent make
rule.^M
CHK include/version.h^M
In file included from ../include/linux/netdevice.h:30,^M
from ll_types.c:24:^M
/opt/uClinux.0215/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/if_packet.h:176:
error: expected specifier-qualifier-list before ‘__aligned_u64’In file
included from ../include/linux/netdevice.h:30,^M
from ll_proto.c:24:^M
/opt/uClinux.0215/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/linux/if_packet.h:176:
error: expected specifier-qualifier-list before ‘__aligned_u64’^M
^M
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6'^M
for f in mkfs.jffs2 ; do ln -sf
build-36d8de81049c9c908740b690c664b5bd3703ccd6-host//$f $f ; done^M
make[5]: *** [ll_types.o] Error 1^M
make[5]: *** Waiting for unfinished jobs....^M
--- Bob Liu 2012-03-07 04:47:30
add
#define __aligned_u64 __u64 __attribute__((aligned(8)))
to file
user/iproute2/iproute2-2.6.35/include/linux/types.h
can fix this bug.
--- Mingquan Pan 2012-05-14 05:52:05
Yes, it fixed. Close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found