[LUGSB] Make Error
Mark Drago
markdrago at gmail.com
Thu Feb 14 10:37:32 EST 2008
On Wed, Feb 13, 2008 at 2:40 PM, Damian Tommasino <damian.itc at gmail.com> wrote:
> I get the following error (nothing else is given):
>
> cc1: warnings being treated as errors
> ..include/geekos/segment.h:43: warning: 'packed' attribute ignored for
> field of type 'uchar'
> make: *** [geekos/gdt.o] Error 1
Could you post the contents of include/geekos/segment.h around line
43? There is probably a simple patch that can be cooked up for
stifling this warning.
> Then it dumps me back into the bash shell. I'm using ubuntun (7.10) &
> have gcc-4.1 installed as well as nasm (don't know if that helps at all).
> It's a small microkernel operating system called geekOS. I'll try building
> it again and see what happens. Thanks for the quick replies everyone ~
> - Damian
That first line that says 'cc1: warnings being treated as errors'
means that the -Werror argument is being passed to gcc. That makes
any warning stop the compilation process. This is a really good thing
to do during development. I always compile things with '-Wall
-Werror'. It's a good practice. But, different compiler versions may
produce warnings for different things. For this reason it is usually
cortious to not ship released software with -Werror. It is possible,
for example, that none of the geekOS developers are compiling with
gcc-4.1. What version of gcc is included with Cygwin? I doubt that
something is misconfigured in your build system. Especially if that
build system is installed straight from Ubuntu. If you compiled your
own toolchain then things might have gone wonky.
Please post that section of the .h file and someone here should be
able to tell you how to change it.
Mark.
More information about the lugsb
mailing list