An error is reported when 32-bit Android 4.04 source code is compiled in ubuntu12.10 64-bit today:
/Usr/bin/ld: Skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libstdc ++. so when searching for-lstdc ++/usr/bin/ld: Skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libstdc ++. A when searching for-lstdc ++/usr/bin/ld: cannot find-lstdc ++/usr/bin/ld: skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libgcc_s.so when searching for-lgcc_s/usr/bin/ld: cannot find-lgcc_s/usr/bin/ld: skipping incompatible/usr/lib/GCC/x86_64-linux-gnu/4.5.4/libgcc. A when searching for-lgcc/usr/bin/ld: cannot find-lgcc
Because the 64-bit system only contains 64-bit library files and does not contain 32-bit library files, but the target system is 32-bit, an error is returned.
The solution is to copy data on a colleague's machine.
1./usr/lib/GCC/x86_64-linux-gnu/4.5.4/32
2./usr/lig32
Two directories are stored on my machine, and the problem is solved.
During copying, note that the directory may fail to be copied when there is a linked file. In this case, you can package the Directory and copy it again. For example:
Tar-CVF lib32.tar.gz lib32