I went to http://www.mentor.com/embedded-software/codesourcery
and downloaded ALL versions of toolchains and tried them ALL with kindlepdfviewer. These are my findings.
First, I tried the oldest, 2005q1b. Luajit reported error - it needed at least gcc 4.2. So, I skipped versions before 2007q1-10, since the 2007q1-10 was the first to have gcc 4.2. All other versions, 2007q1-10 to 2012.03-57 compiled without errors, with the exception of 2008q1-126. It didn't compile at all. It reported this:
Of those that did compile, zips compiled with 2007q1-10, 2007q1-21 and 2007q3-51 worked on Kindle "out of the box". The rest of them didn't (I suppose they need sysroot).
I also tested linaro that comes with Ubuntu again. This time it compiled (thanks to dave2008's Makefile fix
), but of course, it didn't work on Kindle (Again, I suppose it needs sysroot).
Since twobob said that 2008q1 is "the last TC that compiles natively (Runs applications without replacing the onboard system libraries) for the Kindle 3
", any idea why it is the only version that didn't work with kpdfview?