[Completed] [Q] Errors building samsung android kernel on ubuntu 14.04 - XDA Assist

I am following this tutorial
http://forum.xda-developers.com/showthread.php?t=2152819
I get the following when i execute
Code:
$make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
Then i set the CROSS_COMPILER and echo it
Code:
$ echo $CROSS_COMPILE
/usr/bin/arm-none-eabi-
and when i execute
Code:
$make ARCH=arm
i get the following errors
///////////////////////////////////////
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
////////////////////////////////////////////////////
Any idea how to resolve these
I got the same errors using Android NDK toolchain.
Thanks

Hi,
You can browse through this section for other guides and tutorials that may help, there are many,
http://forum.xda-developers.com/chef-central/android
Or, you can ask for help in the tutorial thread you already linked here. Failing all that, you can start your own thread in the section above and ask for help.
Good luck!

Related

[Q]Error building kernel

I`m trying to compile my own kernel but i`m stuck here:
Code:
[[email protected] Kernel]$ make -j2
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC scripts/mod/empty.o
cc1: error: unrecognized command line option '-mlittle-endian'
cc1: error: unrecognized command line option '-mapcs'
cc1: error: unrecognized command line option '-mno-sched-prolog'
cc1: error: unrecognized command line option '-mno-thumb-interwork'
scripts/mod/empty.c:1:0: error: unknown ABI (aapcs-linux) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv5t) for -march= switch
scripts/mod/empty.c:1:0: error: bad value (strongarm) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
Ideeas?
Ask hillbeast or Moikop. They knows pretty well about kernels.
Yeah i kinda offtopic to ask this on theyr topics. I think i will use pm.

help in compiling kernel

i m trying to build a kernel for our devices
i have done every thing including config modifaction
n now m ready to compile the kernel but i have tried many commands for compiling kernel but the it always retur an error like for example when i put
this command
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j4
or
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER zImage -j4
get this error
[email protected]:~/kernel/omap$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
cc1: error: unrecognized command line option ‘-mlittle-endian’
cc1: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/mod/empty.c:1:0: error: unknown ABI (aapcs-linux) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv5t) for -march= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
[email protected]:~/kernel/omap$
plz help guyz its urgent!!!
Bro asking for technical help here isn't going to help, most devs do not look here. You try posting in various kernel threads for help, or private message a kernel developer for help
Cheers
Sent from my GT-i9003 powered by Stable and Smooth CyanogenMod 9!
1. make ARCH=arm CROSS_COMPILE=/home/name /toolchain/arm-eabi-4.4.0/bin/arm-eabi- menuconfig
2. make ARCH=arm CROSS_COMPILE=/home/name/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
1. make ARCH=arm CROSS_COMPILE=/home/name /toolchain/arm-eabi-4.4.0/bin/arm-eabi- menuconfig
2. make ARCH=arm CROSS_COMPILE=/home/name/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Click to expand...
Click to collapse
Sent from my GT-I9003 using the XDA mobile application powered by Tapatalk

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

[Completed] [Q] cm-11 os x build issue

Hello xda-assist,
I've been trying to build cm-11 for a while following their build instructions. I'm building on a mac os x 10.9.5 with Xcode
I've pulled the repo from official cm-11 and followed all the setup steps for building on mac. But I keep getting stuck with errors as follow:
Code:
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ec.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/dsa_sig.o] Error 1
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ecdsa.o] Error 1
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256.o] Error 1
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1
GEN include/applets.h
GEN include/usage.h
After some debugging it turns out it's running prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1, which does not support the -arch and the -Wno-nested-anon-types flags.
I've googled and search the forum for keywords but I have no been able to find any help.
I've checked my path and verifies that /opt/local/bin (using macport) is in the front of the default /usr/bin:
Code:
$ echo $PATH | sed 's/:/\'$'\n/g'
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
/Volumes/android/build_output/system/host/darwin-x86/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.7/bin
/Volumes/android/cm-11/system/development/emulator/qtools
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin
/Volumes/android/cm-11/system/development/scripts
/Volumes/android/cm-11/system/prebuilts/devtools/tools
/Users/pobetiger/bin
/opt/local/bin
/opt/local/sbin
/usr/local/bin
/Applications/eclipse
~/android-sdks/platform-tools
~/android-sdks/tools
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/opt/X11/bin
/usr/local/git/bin
/Applications/MacVim.app/Contents/MacOS
But this does not seem to be important...my build/core/combo/HOST_darwin-x86.mk contains this line (line 80):
Code:
HOST_TOOLCHAIN_ROOT := prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1
HOST_TOOLCHAIN_PREFIX := $(HOST_TOOLCHAIN_ROOT)/bin/i686-apple-darwin$(gcc_darwin_version)
# Don't do anything if the toolchain is not there
ifneq (,$(strip $(wildcard $(HOST_TOOLCHAIN_PREFIX)-gcc)))
HOST_CC := $(HOST_TOOLCHAIN_PREFIX)-gcc
HOST_CXX := $(HOST_TOOLCHAIN_PREFIX)-g++
ifeq ($(mac_sdk_version),10.9)
HOST_GLOBAL_CFLAGS += -I$(mac_sdk_root)/usr/include/c++/4.2.1 -arch i386 -Wno-nested-anon-types -Wno-unused-parameter
HOST_GLOBAL_LDFLAGS += -Wl,-arch,i386,-lstdc++
Which says it will always use the prebuilts/gcc/darwin-x86/host compiler.
So this is not a path setup issue. Not sure how to get around this. Any pointers to threads or right place to post the issue would be very helpful.
Hi,
You can review the tutorials and guides... Or ask for help.... Here,
> Chef Central > Android
Good luck!
Darth said:
Hi,
You can review the tutorials and guides... Or ask for help.... Here,
> Chef Central > Android
Good luck!
Click to expand...
Click to collapse
Thanks Darth, anyway to move this question over? Or do I just open another thread there?
Also, how do I mark this one closed?
Thanks,
pobetiger
Really, I'd do some reading before posting. Maybe you won't need to. But expectations in that section will be higher than other areas of xda. They expect posters there to be well informed and well read.
If you feel you have, then yes... Start a new thread there. ?
Thank you. Thread closed.

problems building your own android kernel

I am following this tutorial
http://forum.xda-developers.com/showthread.php?t=2152819
I get the following when i execute
$make maker.defconfig
$ echo $CROSS_COMPILE
/usr/bin/arm-none-eabi-
and when i execute
$make ARCH=arm
i get the following errors
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Any idea how to resolve these
I got the same errors using Android NDK toolchain.
Thanks

Categories

Resources