Summary: | dev-util/oprofile-0.9.6 fails to compile on hardened profile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | The Gentoo Linux Hardened Team <hardened> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug, pva, simoncion |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | /var/tmp/portage/dev-util/oprofile-0.9.6/temp/build.log |
Description
Juergen Rose
2010-01-20 22:55:06 UTC
Created attachment 217018 [details]
/var/tmp/portage/dev-util/oprofile-0.9.6/temp/build.log
Please, try with oprofile-0.9.7_rc1. For me, it doesn't work: make[2]: Entering directory `/var/tmp/portage/dev-util/oprofile-0.9.7_rc1/work/oprofile-0.9.7-rc1/libop' Making all in . make[3]: Entering directory `/var/tmp/portage/dev-util/oprofile-0.9.7_rc1/work/oprofile-0.9.7-rc1/libop' i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libutil -W -Wall -fno-common -Wdeclaration-after-statement -O2 -march=native -mfpmath=sse -pipe -fprefetch-loop-arrays -fpeel-loops -fgraphite-identity -floop-interchange -floop-block -floop-strip-mine -fira-loop-pressure -fpredictive-commoning -freorder-blocks-and-partition -ftracer -ftree-loop-distribution -ftree-vectorize --param l2-cache-size=1024 --param l1-cache-size=16 --param l1-cache-line-size=16 -ggdb -MT op_events.o -MD -MP -MF .deps/op_events.Tpo -c -o op_events.o op_events.c In file included from op_events.c:19:0: op_hw_specific.h: In function 'read_events': op_hw_specific.h:94:2: error: PIC register clobbered by 'ebx' in 'asm' op_hw_specific.h: In function 'arch_filter_events': op_hw_specific.h:30:2: error: PIC register clobbered by 'ebx' in 'asm' make[3]: *** [op_events.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-util/oprofile-0.9.7_rc1/work/oprofile-0.9.7-rc1/libop' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-util/oprofile-0.9.7_rc1/work/oprofile-0.9.7-rc1/libop' make[1]: *** [all-recursive] Error 1 # gcc -v Using built-in specs. COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.5.2/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /dane/domeny/PORT/portage/sys-devel/gcc-4.5.2/work/gcc-4.5.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.5.2 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=/usr/include/cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-esp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.5.2/python --enable-checking=release --disable-libgcj --with-arch=i686 --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 4.5.2 p1.1, pie-0.4.5' Thread model: posix gcc version 4.5.2 (Gentoo Hardened 4.5.2 p1.1, pie-0.4.5) Thank you. Could then raise this problem at upstream mailing list, please? https://lists.sourceforge.net/lists/listinfo/oprofile-list I've subscribed there and I'll follow thread there. Thank you Marcin! Here is the reference on thread with suggested fix: http://thread.gmane.org/gmane.linux.oprofile/9684 Please, try it out and report upstream! It's fixed in 0.7.7-rc2 . I'm wondering could we backport patch to 0.9.6? If we can't, i think oprofile-0.9.6 should be masked at hardened profile. oprofile-0.9.7_rc3 is in the tree and backport to 0.9.6 is not trivial so I'd better avoided that. I'll keep this bug open until release happens. As for masking, I'm not opposed to this but that's something hardened team to consider :) Fixed in 0.9.7. Thank you, guys, again! |