Re: [Geekos-devel] Some help regarding a well known error
Status: Pre-Alpha
Brought to you by:
daveho
From: K. Ø. <ken...@gm...> - 2008-03-27 16:26:44
|
Holá, On Thu, Mar 27, 2008 at 3:18 PM, Juan Pablo Garcia <48...@gm...> wrote: > > $ startProject project0 /home/userdungeon/geekos-0.3.0/src > <comment> I had to figure which was the last parameter as the > documentation doesn't mentions it, and yes, I have set the environment > variable GEEKOS_HOME. > $ cd project0/build > $ make depend > <comment> No need to document this process. It runs fine actually! > $ make > <comment> Runs perfectly, until... > cc1: warnings being treated as errors > In file included from ../src/geekos/gdt.c:11: > ../include/geekos/segment.h:43: warning: 'packed' attribute ignored > for field of type 'uchar_t' > make: *** [geekos/gdt.o] Error 1 > > And that's all. I found a possible solution reading this: > http://www.fsl.cs.sunysb.edu/pipermail/lugsb/2008-February.txt , > removing PACKED actually works, actually, it compiles without > problems. Not that it solves the actual problem, but it might be safer to comment out the -Werror flag, instead of actual code. That way the code continues with a warning instead of elevating it to an error. I also had to add the -fno-stack-protector to CC_GENERAL_OPTS to make it work on my ubuntu box. -- Kenneth Østby <ken...@gm...> http://langly.org |