Cross Compiler, kernel linux for Xiaomi Redmi Note 5 - linux

I would like to launch a kernel linux on my smartphone(Xiaomi redmi Note 5). I follow this website https://connect.ed-diamond.com/GNU-Linux-Magazine/glmf-237/reprenez-le-controle-faites-tourner-linux-nativement-sur-vos-telephones-et-tablettes.
I already have the source code from the kernel I need here: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/tulip-p-oss/.
I also have the toolchain from this website https://toolchains.bootlin.com/ which is this: aarch64--glibc--stable-2022.08-1.
What i've done with my terminal is that:
export ARCH=arm64
export CROSS_COMPILE=/opt/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
make tulip-perf_defconfig
make menuconfig (I followed the configuration recommended by the website)
make -j8 2>> error.txt
When I try to compile I get some error, which I don't know how to solve:
make[2]: *** [scripts/Makefile.build:282 : drivers/bluetooth/btfm_slim.o] Erreur 1
make[1]: *** [scripts/Makefile.build:489 : drivers/bluetooth] Erreur 2
make: *** [Makefile:1010 : drivers] Erreur 2
make: *** Attente des tâches non terminées....
make[3]: *** [scripts/Makefile.build:282 : sound/soc/msm/msm8998.o] Erreur 1
make[3]: *** Attente des tâches non terminées....
make[2]: *** [scripts/Makefile.build:489 : sound/soc/msm] Erreur 2
make[1]: *** [scripts/Makefile.build:489 : sound/soc] Erreur 2
make: *** [Makefile:1010 : sound] Erreur 2

Related

Unable to build and install binutils in Kali linux

I was trying to install OS 161 KALI LINUX version 2020.3 64bit. The first step was to build and install binutils.
The procedure I followed is shown in this .
I configured the binutils and got this output https://pastebin.com/iXjFq3Zu but upon running i got the make command i got the following errors https://pastebin.com/DYSBdUqq .
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2551: as-new] Error 1
make[4]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[3]: *** [Makefile:2596: all-recursive] Error 1
make[3]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[2]: *** [Makefile:2482: all] Error 2
make[2]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1/gas'
make[1]: *** [Makefile:4860: all-gas] Error 2
make[1]: Leaving directory '/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1'
make: *** [Makefile:627: all] Error 2
root#kali:/home/digzsudi/Downloads/binutils-2.17+os161-2.0.1#

When I use carpet driver instead of pugh these errors generated

I am using EINSTEIN-TOOLKIT on windows via CYGWIN.
When i run any module with CARPET driver instead of PUGH. I found these type of errors.
ln -s "../../opal/asm/generated/atomic-local.s" atomic-asm.S
CPPAS atomic-asm.lo
CCLD libasm.la
../../libtool: line 1744: lib: command not found
make[6]: *** [Makefile:1659: libasm.la] Error 127
make[5]: *** [Makefile:2234: all-recursive] Error 1
make[4]: *** [Makefile:1777: all-recursive] Error 1
Died at /home/hp/cactus/arrangements/ExternalLibraries/MPI/src/build.pl line 90.
make[3]: *** [/home/hp/cactus/arrangements/ExternalLibraries/MPI/src/make.code.deps:9: /home/hp/cactus/configs/multipole/scratch/done/MPI] Error 17
make[2]: *** [/home/hp/cactus/lib/make/make.thornlib:113: make.checked] Error 2
make[1]: *** [/home/hp/cactus/lib/make/make.configuration:181: /home/hp/cactus/configs/multipole/lib/libthorn_MPI.a] Error 2
make: *** [Makefile:260: multipole] Error 2

Why am I receiving make errors when trying to compile GCC?

I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I am receiving the following make errors after about 20 minutes of compiling GCC 8.2.0:
make[3]: *** [Makefile:1110: graphite-isl-ast-to-gimple.o] Error 1
make[3]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build/gcc'
make[2]: *** [Makefile:4567: all-stage1-gcc] Error 2
make[2]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
make[1]: *** [Makefile:21435: stage1-bubble] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-8.2.0/build'
make: *** [Makefile:897: all] Error 2
Any help would be appreciated, I have been trying for hours.

Build mpeg4ip library on Ubuntu 14.04

I'm trying to build mpeg4ip library for Ubuntu 14.04 LTS. The command make && make install throws error as below. I referred to Install mpeg4ip using apt on Ubuntu 14.04TLS but it shows 404 while updating.
make[4]: *** [rtphint.lo] Error 1
make[4]: Leaving directory `/usr/local/src/mpeg4ip-1.5.0.1/lib/mp4v2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/mpeg4ip-1.5.0.1/lib/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/mpeg4ip-1.5.0.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mpeg4ip-1.5.0.1'
make: *** [all] Error 2
How can I install this library in my linux machine.

Error building HHVM on Amazon Linux 2014.03 (unrecognized command line option ‘-fno-canonical-system-headers’)

I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?

Resources