Using gcc-specs for 3.2.3 prevents kernel from compiling.

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Using gcc-specs for 3.2.3 prevents kernel from compiling.

Postby cmouse » Mon May 19, 2003 11:18 pm

$ make
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
init/main.c: In function `init':
/usr/src/linux-2.4.20/include/asm/unistd.h:373: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:371: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:371: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/linux/highmem.h: In function `bh_kmap_irq':
/usr/src/linux-2.4.20/include/linux/highmem.h:51: warning: asm operand 1 probably doesn't match constraints

This was when your specfile was used.
cmouse
 
Posts: 98
Joined: Tue Dec 17, 2002 10:58 am

Re: Using gcc-specs for 3.2.3 prevents kernel from compiling

Postby hightower » Tue May 20, 2003 4:44 am

Hi cmouse,

cmouse wrote:$ make
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
init/main.c: In function `init':
/usr/src/linux-2.4.20/include/asm/unistd.h:373: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:371: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:371: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/asm/unistd.h:372: can't find a register in class `BREG' while reloading `asm'
/usr/src/linux-2.4.20/include/linux/highmem.h: In function `bh_kmap_irq':
/usr/src/linux-2.4.20/include/linux/highmem.h:51: warning: asm operand 1 probably doesn't match constraints

This was when your specfile was used.

you cannot use the grsec spec file for compiling a kernel.
BTW: Openssh does not compile with it also. Just in case you may try it ;)

ciao, Marc
hightower
 
Posts: 49
Joined: Wed Mar 06, 2002 11:36 am

Postby cmouse » Mon Jun 02, 2003 10:15 am

Is there a way to fix this?
cmouse
 
Posts: 98
Joined: Tue Dec 17, 2002 10:58 am


Return to grsecurity support