6 Mar 2008 04:11
-current kernel headers vs. MS VC compiler
Rafal Boni <rafal <at> pobox.com>
2008-03-06 03:11:26 GMT
2008-03-06 03:11:26 GMT
Folks: It looks like changes to the kernel headers over the last couple of months have broken the ability to build things that rely on libsa, etc. with compilers other than GCC & PCC. Specifically, I can no longer build hpcboot.exe with MS eMbedded Visual C++ 4.0 after upgrading my kernel tree to the head of trunk. The first change that bit me was a change from the old '__attribute__((packed))', which used to be defined away on non-GCC compilers (probably incorrectly, but nonetheless) to using '__packed', in sys/ufs/ffs/fs.h: RCS file: /cvsroot/src/sys/ufs/ffs/fs.h,v Working file: fs.h head: 1.49 ---------------------------- revision 1.49 date: 2007/12/25 18:33:49; author: perry; state: Exp; lines: +2 -2 Convert many of the uses of __attribute__ to equivalent __packed, __unused and __dead macros from cdefs.h I've 'fixed' this with the following change, because I don't know how to make the MS compiler #pragma pack fit into the syntax we require (nor was I able to find an MS compiler extension which looked it it might help): Index: cdefs.h =================================================================== RCS file: /cvsroot/src/sys/sys/cdefs.h,v retrieving revision 1.66 diff -u -p -r1.66 cdefs.h(Continue reading)
RSS Feed