2.5.25 -- Build error -- fs/ntfs/layout.h:299: unnamed fields of type other than struct or union are not allowed
gcc -Wp,-MD,./.aops.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DMODULE -DNTFS_VERSION=\"2.0.14\" -DDEBUG -DKBUILD_BASENAME=aops -c -o aops.o aops.c
In file included from inode.h:29,
from debug.h:30,
from ntfs.h:40,
from aops.c:30:layout.h:299: unnamed fields of type other than struct or union are not allowed layout.h:1449: unnamed fields of type other than struct or union are not allowed layout.h:1465: unnamed fields of type other than struct or union are not allowed layout.h:1714: unnamed fields of type other than struct or union are not allowed layout.h:1891: unnamed fields of type other than struct or union are not allowed layout.h:2051: unnamed fields of type other than struct or union are not allowed layout.h:2063: unnamed fields of type other than struct or union are not allowed make[2]: *** [aops.o] Error 1
make[2]: Leaving directory `/usr/src/linux/fs/ntfs'
CONFIG_QUOTA=yCONFIG_QFMT_V1=mCONFIG_QFMT_V2=mCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=yCONFIG_EXT3_FS=yCONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_NTFS_FS=mCONFIG_NTFS_DEBUG=y
You are using gcc-3.1. Upgrade to a newer / downgrade to an older version or enable the work around I have posted before. (edit fs/ntfs/types.h and add your compiler version to the #if __GNUC__... line at the top)
Your gcc is broken is the summary.
Best regards,
Anton
Quoted 38 lines · Miles Lane
gcc -Wp,-MD,./.aops.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall
(quoted diff) +0
-4-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DMODULE -DNTFS_VERSION=\"2.0.14\" -DDEBUG -DKBUILD_BASENAME=aops -c -o aops.o aops.cIn file included from inode.h:29,
from debug.h:30, from ntfs.h:40, from aops.c:30:layout.h:299: unnamed fields of type other than struct or union are not allowed layout.h:1449: unnamed fields of type other than struct or union are not allowed layout.h:1465: unnamed fields of type other than struct or union are not allowed layout.h:1714: unnamed fields of type other than struct or union are not allowed layout.h:1891: unnamed fields of type other than struct or union are not allowed layout.h:2051: unnamed fields of type other than struct or union are not allowed layout.h:2063: unnamed fields of type other than struct or union are not allowed make[2]: *** [aops.o] Error 1
make[2]: Leaving directory `/usr/src/linux/fs/ntfs'
CONFIG_QUOTA=yCONFIG_QFMT_V1=mCONFIG_QFMT_V2=mCONFIG_QUOTACTL=yCONFIG_AUTOFS4_FS=yCONFIG_EXT3_FS=yCONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_NTFS_FS=mCONFIG_NTFS_DEBUG=y-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 5 lines
"I've not lost my mind. It's backed up on tape somewhere." - Unknown -- Anton Altaparmakov <aia21 at cantab.net> (replace at with @) Linux NTFS Maintainer / IRC: #ntfs on irc.openprojects.net WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/