With none-eabi (which is supported in newer versions of gcc) I get this error:
stubs.o has EABI version 5, but target magiclantern has EABI version 0
But with elf (which is obsolete since 4.7.3), gcc complains about VFP.
What do you mean by ubuntu toolchain?
EDIT:
And now with linaro's gcc 4.7.4, I get :
[ LD ] magiclantern
/home/minlite/toolchain/arm-elf/lib/gcc/arm-elf/4.7.4/../../../../arm-elf/bin/ld: cannot find -lm
collect2: error: ld returned 1 exit status
make: *** [magiclantern] Error 1
Finally I fixed the error.
I deleted the magic-lantern code and cloned it again to my system. And used the same gcc as in Makefile.user.default file. Suddenly it started building just fine.
I guess maybe some of the last commits have solved my problem. It is still strange to me. The thing I spotted is that, when I couldn't build, the GCC_VERSION constant in the Makefile.user.default file was being set to plain 4.7.3, and I was setting it to any version I used.
But the new file uses a small dash(-) in the beginning. (It is defined as -4.7.3). That's why I'm sure it was the Makefile.user.default causing the problem.
Anyway it is solved now, and I have the autoexec.bin being built
