i added make clean-bin to the ebuild (before the emake...)
i now see that: (which correspond to the clean-bin rule in the Makefile.am)
find . -name "*.la" | xargs rm -f
rm -f src/src/codeblocks
before the begining of the make, so i suppose it should be good.
the ebuild install still fails with the same error.
i tried a manual compile/install, it worked nicely ...
the gentoo ebuild is bugged i think...
thanks for your help