I'm not sure what this loop is doing. Run make VERBOSE=1 and check what arguments are passed to g++
Here is a copy of the full build log:
http://humanreadable.nfshost.com/trinity/build_logs/amarok-R14.0.0-i486-13.1...
To avoid parallel processing I ran this specific build with NUMJOBS=-j1. The build fails very early.
The build output is at the end of the full log. At line 103 is the cmake cache output.
Darrell