I'm trying to cross-compile a kernel and rootfs using mipsel-linux-gcc compiler. Host machine is 64-bit, while the rootfs to be built is 32-bit.i tried to install ia32-libs and ia32-libs-multiarch. But failed. I've installed gcc-multilib using apt-get. However, I can't build. I've updated PATH variable to the toolchain used.
echo $PATH
usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/toolchains/stbgcc-4.5.3-1.1/bin
Error I get :
root#android-build:uclinux-rootfs# make vmlinuz-7425b0-android
make TFTPHOST=android-build TFTPDIR=/tftpboot/$USER TFTPPATH=$USER defaults-7425b0-android
make[1]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/uclinux-rootfs'
WARNING: using toolchain binaries in:
/opt/toolchains/stbgcc-4.5.3-1.1/bin
The recommended toolchain for this release is:
stbgcc-4.5.3-2.4
perl -w bin/config.pl save_defaults 7425b0-android
make[2]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make -f Makefile savedefconfig
make[3]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[3]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make[2]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make -j1 silentoldconfig
make[2]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/uclinux-rootfs'
WARNING: using toolchain binaries in:
/opt/toolchains/stbgcc-4.5.3-1.1/bin
The recommended toolchain for this release is:
stbgcc-4.5.3-2.4
make -C linux ARCH=mips silentoldconfig
make[3]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make -f Makefile silentoldconfig
make[4]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
scripts/kconfig/conf --silentoldconfig Kconfig
make[4]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make[3]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make -C linux ARCH=mips prepare scripts
make[3]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make -f Makefile prepare
/bin/sh: mipsel-linux-gcc: not found
/bin/sh: mipsel-linux-gcc: not found
/bin/sh: mipsel-linux-gcc: not found
/bin/sh: mipsel-linux-gcc: not found
make[4]: mipsel-linux-gcc: Command not found
make[4]: Entering directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: mipsel-linux-gcc: not found
make[5]: *** [kernel/bounds.s] Error 127
make[4]: *** [prepare0] Error 2
make[4]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make[3]: *** [prepare] Error 2
make[3]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/linux'
make[2]: *** [silentoldconfig] Error 2
make[2]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/uclinux-rootfs'
make[1]: *** [defaults-7425b0-android] Error 2
make[1]: Leaving directory `/opt/kernel/android/kernel-3.3-1.2-7425b0/uclinux-rootfs'
make: *** [vmlinuz-7425b0-android] Error 2
But what I get for which mipsel-linux-gcc gave the right answer
which mipsel-linux-uclibc-gcc
/opt/toolchains/stbgcc-4.5.3-1.1/bin/mipsel-linux-uclibc-gcc
What could be the variable I need to export?
I had that 'command not found' problem. Try to install ia32-libs or if that is not found try suggested lib32z1 lib32ncurses5 lib32bz2-1.0 packages. That fixed the problem for me.
Related
follow here https://github.com/savoirfairelinux/ring-project to build Jami android but I face this error when build client-android
libtool: link: rm -fr .libs/libiconv.a .libs/libiconv.la .libs/libiconv.lai libtool: link: ar cru .libs/libiconv.a objects/iconv.o objects/localcharset.o objects/relocatable.o
ar: u modifier ignored since D is the default (see U)
libtool: link: /home/tan111/devtools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib .libs/libiconv.a
libtool: link: ( cd ".libs" && rm -f "libiconv.la" && ln -s "../libiconv.la" "libiconv.la" )
cp .libs/libiconv.so preloadable_libiconv.so
cp: cannot stat .libs/libiconv.so': No such file or directory
make[2]: *** [Makefile:52: preloadable_libiconv.so] Error 1 make[2]: Leaving directory /home/tan111/jami/ring-project/daemon/contrib/native-aarch64-linux-android/iconv/preload
make[1]: *** [Makefile:49: install] Error 2 make[1]: Leaving directory /home/tan111/jami/ring-project/daemon/contrib/native-aarch64-linux-android/iconv
make: *** [/home/tan111/jami/ring-project/daemon/contrib/src/iconv/rules.mak:41: .iconv] Error 2
Does anyone facing it before? Please help me
Thank a lot!
try to set ar to the ndk, like this:
make AR=/home/tan111/devtools/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar -j4
For cross compiling MPICH2 for Android.
I found the reference here
http://hex.ro/wp/projects/personal-cloud-computing/compiling-mpich2-for-android-and-running-on-two-phones/
and here
www.scientificbulletin.upb.ro/rev_docs_arhiva/fullffc_583765.
I did following
BuildRoot
Used Build Root (buildroot-2016.02) for cross compiling ARM toolchain
Target options :
Target Architecture as ARM little endian
Target binary format as ELF
Selected Toolchain as Buildroot toolchain (Internal)
Kernel headers as 3.12.x
C library as uClibc
After this make command was run.
MPICH2
mpich-3.2.tar.gz was extracted and following commands were executed
1. $ export PATH=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin:$PATH
2. $ sudo ./configure --prefix=/home/mpiuser/CrossBuild/arm-mpich-install --disable-fortran CC=/home/mpiuser/CrossBuild/buildroot-2016.02/output/host/usr/bin/arm-linux-gcc --host=arm-linux
After this make was run for mpich-3.2, and during compilation following error was thrown :
GEN lib/libmpi.la
CXX src/binding/cxx/initcxx.lo
CXXLD lib/libmpicxx.la
lib/.libs/libmpi.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mpiuser/CrossBuild/mpich-3.2'
make: *** [all] Error 2
Request to please help. Thanks
I am trying to build u-boot and getting these error
No private recovery resources for TARGET_DEVICE G0
Building U-boot
make -C u-boot ARCH=arm fio-om3xxx_config
make[1]: Entering directory `/home/mrigendra/GingerBread_2_3_4_FIO/u-boot'
Configuring for fio-om3xxx board...
rm: cannot remove `asm': Is a directory
make[1]: *** [fio-om3xxx_config] Error 1
make[1]: Leaving directory `/home/mrigendra/GingerBread_2_3_4_FIO/u-boot'
make: *** [uboot] Error 2
i don't know why it wants to remove asm directory.
do anybody have idea from where i should start ..
I'm getting the following error when trying to compile the kernel of Note3.
This is a kernel from Samsung.
Does someone has any suggestion how to fix it?
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g'
CHK include/linux/version.h
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" zImage
make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g'
GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/ran/android/system/kernel/samsung/ha3g as source for kernel
GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/ran/android/system/kernel/samsung/ha3g/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/sensorhub/stm/factory/light_max88921.o
/home/ran/android/system/kernel/samsung/ha3g/drivers/sensorhub/stm/factory/light_max88921.c:78:1: fatal error: opening dependency file drivers/sensorhub/stm/factory/.light_max88921.o.d: No such file or directory
compilation terminated.
make[5]: *** [drivers/sensorhub/stm/factory/light_max88921.o] Error 1
make[4]: *** [drivers/sensorhub/stm] Error 2
make[3]: *** [drivers/sensorhub] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Somehow the folder factory was missing under out/target/product/ha3g/obj/KERNEL_OBJ/drivers/sensorhub/stm
When I added this folder (with mkdir) it worked.
I need to implement speech to text offline functionality for my android apps, I found library sphinxbase i tried to installed in ubuntu but something went wrong and the error occured.
I have download the both package of sphinxbase and pockectsphinx and placed in same directory , As document says i ran ./autogen.sh file successfuly after this one message occur to run make command to compile packages after make command there is some error occur
libtool: install: /usr/bin/install -c .libs/libsphinxbase.a /usr/local/lib/libsphinxbase.a
libtool: install: chmod 644 /usr/local/lib/libsphinxbase.a
libtool: install: ranlib /usr/local/lib/libsphinxbase.a/bin/bash: /home/speech: No such file or directory
make[4]: *** [install-libLTLIBRARIES] Error 127
make[4]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src'
make: *** [install-recursive] Error 1
Strip off the space in the directory name.
Try renaming "speech to text" to "speechtotext".