Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263322 - Undefined symbol ____ilog2_NaN when compiling hardened sources 2.6.28-r3
Summary: Undefined symbol ____ilog2_NaN when compiling hardened sources 2.6.28-r3
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 23:43 UTC by Francisco Blas Izquierdo Riera
Modified: 2010-04-24 01:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel conmfig file (config,38.56 KB, text/plain)
2009-03-26 18:45 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details
emerge --info (emergeinfo,3.01 KB, text/plain)
2009-03-26 18:45 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details
last lines before error message (lastlinesfail,743 bytes, text/plain)
2009-03-26 18:46 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details
real solution (KERNEL_icc.txt,1.87 KB, text/plain)
2010-04-24 01:12 UTC, Sergey Ya. Korshunoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-21 23:43:15 UTC
When compiling hardened sources 2.6.28-r3 without "Support for paging of anonymous memory (swap)" I get an ld error relating to a use of an undefined function: ____ilog2_NaN inside of mm/page-writeback.c


Reproducible: Always

Steps to Reproduce:
1.Configure the kernel without "Support for paging of anonymous memory (swap)"
2.run make

Actual Results:  
Compilations fails due to undefined symbol

Expected Results:  
The kernel compiles smoothly

Maybe it can affect previous versions and even vanilla kernels. I haven't tried.
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-21 23:55:50 UTC
I forgot to say that, according to ld the responsible function is test_clear_page_writeback()
Comment 2 Gordon Malm (RETIRED) gentoo-dev 2009-03-22 17:40:06 UTC
Please post emerge --info, the failing kernel config and the error message (along with about 10 lines leading up to it).
Comment 3 Gordon Malm (RETIRED) gentoo-dev 2009-03-23 16:08:38 UTC
CCed upstream.  They may not need it for this particular issue, but would be cool if you would provide the requested information ahead of time to potentially prevent unnecessary back-and-forth.
Comment 4 PaX Team 2009-03-23 19:49:07 UTC
it's a vanilla linux bug, or that of gcc-3.4.6 as 4.3.3 compiles the code fine. since not many things depend on CONFIG_SWAP, i guess it's got something to do with PAGEFLAG_FALSE(SwapCache) in include/linux/page-flags.h but i leave the rest for the kernel devs to figure out ;).
Comment 5 Gordon Malm (RETIRED) gentoo-dev 2009-03-23 20:40:02 UTC
klondike,

Can you try with sys-kernel/gentoo-sources-2.6.28-r4?
Comment 6 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-26 18:45:33 UTC
Created attachment 186332 [details]
Kernel conmfig file
Comment 7 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-26 18:45:51 UTC
Created attachment 186333 [details]
emerge --info
Comment 8 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-26 18:46:06 UTC
Created attachment 186335 [details]
last lines before error message
Comment 9 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-03-26 18:48:31 UTC
First, I beg your pardon for taking too long to post :( I don't have almost time from monday to wednesdays and this was a long weekend :/

All those are with r6 but are reproducible too on r4.
Comment 10 Gordon Malm (RETIRED) gentoo-dev 2009-10-27 00:46:42 UTC
gcc-4.3.4 is stable and you should be able to compile a kernel without swap support with it.  Closing as CANTFIX.
Comment 11 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2009-11-03 03:51:56 UTC
I can confirm that using gcc-4.3 solves the problem, feel free to close it as solved if you want :)
Comment 12 Sergey Ya. Korshunoff 2010-04-24 01:12:08 UTC
Created attachment 228941 [details]
real solution

look http://software.intel.com/en-us/articles/compiler-moblin2-kernel-sources-with-intel-compiler/
from Intel development about compiling kernel with icc. There is nothing special in kernel which cant be compiled with gcc 3.4.6 ... 4.1.2