grsecurity-2.9.1-3.8.4-201303252035 compile issue

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

grsecurity-2.9.1-3.8.4-201303252035 compile issue

Postby x14sg1 » Wed Mar 27, 2013 8:58 pm

Hello,

My linux distro just updated to gcc 4.8.0 (gcc -v output below) and now I get the following compile error related to target.h:

# make V=1 bzImage
make -f scripts/Makefile.build obj=tools/gcc
g++ -Wp,-MD,tools/gcc/.constify_plugin.o.d -O2 -Wall -W -fno-delete-null-pointer-checks -I/usr/lib/gcc/i486-slackware-linux/4.8.0/plugin/include -std=gnu++98 -ggdb -Wno-unused-parameter -fPIC -c -o tools/gcc/constify_plugin.o tools/gcc/constify_plugin.c
tools/gcc/constify_plugin.c:35:20: fatal error: target.h: No such file or directory
#include "target.h"
^
compilation terminated.
make[1]: *** [tools/gcc/constify_plugin.o] Error 1
make: *** [gcc-plugins] Error 2



# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.8.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i486-slackware-linux/4.8.0/lto-wrapper
Target: i486-slackware-linux
Configured with: ../gcc-4.8.0/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib/python2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib/jvm/jre --with-jvm-root-dir=/usr/lib/jvm --with-jvm-jar-dir=/usr/lib/jvm/jvm-exports --with-arch-directory=i386 --with-antlr-jar=/tmp/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --with-arch=i486 --target=i486-slackware-linux --build=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.8.0 (GCC)

Thanks,

Tim
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm

Re: grsecurity-2.9.1-3.8.4-201303252035 compile issue

Postby x14sg1 » Wed Mar 27, 2013 9:07 pm

It looks like while I do not have target.h, there is an article on the web for Darwin and gcc 4.8.0 that indicates it does. Not sure but this is probably not your issue - comments?

# ls /usr/lib/gcc/i486-slackware-linux/4.8.0/plugin/include/target.h
/bin/ls: cannot access /usr/lib/gcc/i486-slackware-linux/4.8.0/plugin/include/target.h: No such file or directory
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm


Re: grsecurity-2.9.1-3.8.4-201303252035 compile issue

Postby x14sg1 » Wed Mar 27, 2013 9:53 pm

Thanks for the info and quick reply

Tim
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm

Re: grsecurity-2.9.1-3.8.4-201303252035 compile issue

Postby x14sg1 » Wed Mar 27, 2013 11:18 pm

Using your bug report, I copied the 3 files in and was able to build the kernel.

I also reported the bug to slackware

Thanks
x14sg1
 
Posts: 137
Joined: Sun Aug 23, 2009 7:47 pm


Return to grsecurity support

cron