[Q] need help kernel build - General Questions and Answers

i tried to compile using linaro 4.8 toolchain but i always get this error... just a starter...
[email protected]:/usr/src/kernel# cd Vengeance-Kernel-MSM7x27
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export ARCH=arm
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# export CROSS_COMPILE=/usr/src/toolchain/Linaro-Toolchain-4.8/bin/arm-linux-androideabi-
[email protected]:/usr/src/kernel/Vengeance-Kernel-MSM7x27# make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/usr/src/toolchain/Linaro-Toolchain-4.8/bin/../libexec/gcc/arm-linux-androideabi/4.8.1/cc1: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

Related

Kernel Compiling Errors?

I need help!
Here is my error.
Code:
/home/rootuser/kernel/scripts/gcc-version.sh: 25: arm-eabi-gcc: not found
/home/rootuser/kernel/scripts/gcc-version.sh: 26: arm-eabi-gcc: not found
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I have been searching all over Google for a fix. I can't get anything to work!
Hey airbus what's this for ?? Gingerbread optimum??
it cannot find the crosscompiler gcc binary in ur path, hence the error.
bs828 said:
Hey airbus what's this for ?? Gingerbread optimum??
Click to expand...
Click to collapse
Yes It is, When this error is resolved, new rom will come out

[Q] Build Kernel From Source

Been messing around with the Tiamat kernel to add a couple things, and now I need to build it, but I'm not exactly sure how.
Can someone point me to or explain how to do it exactly? I'm using a Wi-Fi Xoom so that's what I plan to build it for if that makes any difference.
Bump. Anyone?
Sent from my MB860 using xda premium
I kinda answered this on the android kernel mailing list the other day as well.
https://groups.google.com/d/msg/android-kernel/U-Oo6WG8WFU/D9EmeFyn47sJ
To flash, download one of the kernel zip files I have released and update the modules and zImage in it.
It is important to note I use the prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- toolchain from AOSP to compile my kernels.
Sweet thanks. Going to try this out later today possibly.
Sent from my Xoom using XDA Premium HD app
Having issues compiling. Here is what I get:
Code:
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make stingray_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
arch/arm/configs/stingray_defconfig:442:warning: override: reassigning to symbol NTFS_FS
arch/arm/configs/stingray_defconfig:443:warning: override: reassigning to symbol NTFS_RW
#
# configuration written to .config
#
[email protected]:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm CROSS_COMPILE=/home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
d3athsd00r said:
Having issues compiling. Here is what I get:
Code:
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
Click to expand...
Click to collapse
"make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found"
It can't find your tool chain.
Well, I just attempted to build the current 3.0.23 kernel and when I do I get
Code:
kernel/bounds.c:1: warning: switch -mcpu=cortex-a0 conflicts with -march= switch
kernel/bounds.c:1: sorry, unimplemented: -mfloat-abi=hard and VFP
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
this happens right after issuing the command of
Code:
ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
does anyone know how to fix this? Version 3.0.13 builds with no problems. Did something change? Should I be using a different toolchain now?
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
solarnz said:
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
Click to expand...
Click to collapse
thanks

SierraVisor Hypervisor compile error

Hi good to see you.
I have some trouble, when i compile SierraVisor at OpenVirtualization for trustzone.
i read documentation about how to build Open virtualization SDK.
However i encounter compile error.
Before use tzone_sdk, i have to compile otz_linux.
this is error message.
I use ubuntu x64 12.04 and installed latest tool version such as gcc and so on.
///////////////////////////////////////////////////////////////////
patching file tools/usb/hcd-tests.sh
patching file tools/usb/Makefile
patching file arch/arm/include/asm/hardirq.h
patching file arch/arm/include/asm/smp.h
patching file arch/arm/kernel/smp.c
patching file arch/arm/common/gic.c
Hunk #1 succeeded at 395 with fuzz 2 (offset -1 lines).
patching file arch/arm/mach-vexpress/include/mach/motherboard.h
make ARCH=arm -C /home/chaser/TrustZone/trustzone/otz_linux/linux-otz fastmodel_ve_defconfig
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make EXTRA_CFLAGS=-DOTZONE_ASYNC_NOTIFY_SUPPORT=y EXTRA_CFLAGS+=-DOTZONE_AMP_SUPPORT=y EXTRA_CFLAGS+= -j8 ARCH=arm -C /home/chaser/TrustZone/trustzone/otz_linux/linux-otz uImage
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make[1]: Entering directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/conmakehash
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
make[3]: *** [scripts/mod/empty.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[2]: *** [scripts/mod] Error 2
make[2]: *** Waiting for unfinished jobs....
Generating include/generated/mach-types.h
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/chaser/TrustZone/trustzone/otz_linux/linux-otz'
make: *** [linux_build] Error 2
///////////////////////////////////////////////////////////
I also try to compile delete -unrecongnized argument option. But the other compile error occured.
error is
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch
How can i deal with this problem?
previously thanks

[q] compiling kernel probs!!

I'm having problem while compiling kernel from source :
[email protected]:~$ cd Android/kernel
[email protected]:~/Android/kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
[email protected]:~/Android/kernel$ ^C
[email protected]:~/Android/kernel$
Click to expand...
Click to collapse
In .bashrc I added this line at the end :
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
export PATH=${PATH}:Android/bootimagetools/tools
Click to expand...
Click to collapse
What to do please help me :crying:
Thanks in advance
Edit .bashrc
In the first line of export change it
From:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
To:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
Other things seems to be fine
Please hit on the thanks button if you like my work.

Question [Question] How to compile Vayu Kernel from github sources?

Hi, I am trying to compile the kernel from Github source code using Proton Clang
make -j$(nproc --all) O=out ARCH=arm64 AR=llvm-ar NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-strip CC=clang CROSS_COMPILE=aarch64-linux-gnu- CROSS_COMPILE_ARM32=arm-linux-gnueabi - 2>&1
make[1]: Entering directory '/home/omensight/kernel/Xiaomi_Kernel_OpenSource/out'
arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
CHK include/config/kernel.release
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** [/home/omensight/kernel/Xiaomi_Kernel_OpenSource/Makefile:1305: prepare-compiler-check] Error 1
make[1]: *** Waiting for unfinished jobs....
UPD include/config/kernel.release
make[1]: Leaving directory '/home/omensight/kernel/Xiaomi_Kernel_OpenSource/out'
make: *** [Makefile:146: sub-make] Error 2
Got the up problem. Do you have some guide to compile this kernel? Thanks.

Categories

Resources