Hi all.
I'm still tring to compile ML.
It builds without problem arm "things". By example "make 500D" run without problems.
When I try to build rawdng or something related to the host machine, it fails.
I tried with and without "-m32" cflag, with 4.8 and 4.7. No way.
pls help
[ GCC ] raw2dng
[ GCC ] raw2dng
[ GCC ] raw2dng
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_s.so when searching for -lgcc_s
My setup:
$ gcc --version
gcc (Ubuntu/Linaro 4.7.3-12ubuntu1) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ dpkg -l |grep libgcc
ii libgcc-4.7-dev:amd64 4.7.3-12ubuntu1 amd64 GCC support library (development files)
ii libgcc-4.7-dev:i386 4.7.3-12ubuntu1 i386 GCC support library (development files)
ii libgcc-4.8-dev:amd64 4.8.2-19ubuntu1 amd64 GCC support library (development files)
ii libgcc1:amd64 1:4.9.1-0ubuntu1 amd64 GCC support library
ii libgcc1:i386 1:4.9.1-0ubuntu1 i386 GCC support library
Arm toolchain:
$ dpkg -l |grep arm-none
ii gcc-arm-none-eabi 4.8.4.2014q3-0trusty10 i386
Ok.
Removing -m32 from modules/*/Makefile did not help:
'struct raw_info' has no member named 'buffer'
(same as: http://www.magiclantern.fm/forum/index.php?topic=7122.1550)
So I did:
apt-get install gcc-4.7:i386
apt forced me to remove the 64bit version!!
After that,
/usr/bin/ld: cannot find crt1.o: No such file or directory
but it's only a path problem.
So:
LIBRARY_PATH=/usr/lib32 make
did the work. Finally.