[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig - Android Q&A, Help & Troubleshooting

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....

Any?

blttalas said:
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try to use another versions of toolchain.

Related

[Q] Compiling CM kernel error

Im trying to compile a CM kernel for my device using this guide:
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
I run into this error:
[email protected]:~/android/kernel/cm-kernel$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
scripts/kconfig/conf --silentoldconfig Kconfig
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 ‘-mapcs’
cc1: error: unrecognized command line option ‘-mno-sched-prolog’
scripts/mod/empty.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv4t) for -march= switch
scripts/mod/empty.c:1:0: error: bad value (arm9tdmi) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/kernel/cm-kernel$
I did have a look in the scripts/mod/empty.c file. Only line of txt in there is:
/* empty file to figure out endianness / word size */
my config file: http://www.mediafire.com/?5kq9m6vecl22rzx
Someone a idee how to fix this problem?

[Q] Another compiling question - kernels

It seems like I'm stuck in a different difficult situation now. I've been reading through 11 how-to guides on building/compiling a kernel, none of them are the same, but similar--some are missing steps, some have additional steps, some have modified steps, some do things in a different order. Not a single one gets me from start to finish, but picking parts from various guides seems to help me make progress, but I'm still stuck. I'm not a linux guy, I just get by with following directions and a few things I remember from my old job.
My goal is not to be told how to tweak things or change things or add 50 new governors. All I want is some help to successfully make a plain, boring, unmodified, OEM or Cyanogenmod kernel. I'll be happy to flash what I already have on there, the source from Cyanogenmod that I built from, and make no changes to my phone. I just want to be able to build it and flash it without my phone bricking so that I know I'm doing things correctly.
So, I need help at a 10 year old's level. I need to know the steps where I'm unable to read between the lines for things such as "if you make changes to .bashrc, they won't actually take effect until you
Code:
source .bashrc
, which I eventually remembered, fortunately, from the little linux I know. It's those "on Tuesdays, you have to ____ for android builds to work" presumed-knowledge things that are never mentioned in even the "noob-friendly" guides. That's the stuff I need help with, so that I can compile a kernel. Success with the Cyanogenmod build came primarily from the switch to dual-boot, because I may have actually gotten things correct after frankenstein rigging multiple guides/documentation, but VirtualBox completely froze at various hours into the compiling, so I never really knew.
I have the huge NDK source setup.
I have the huge kernel source from Samsung setup.
Everything has the highest level of permissions.
I've done ARCH=arm and export ARCH=arm, and the same for SUBARCH=arm
I've done the PATH stuff two ways for the toolchains, both in .bashrc and through the terminal
I've entered CROSS_COMPILE in two different ways
I've done about 8 or more different make commands (not including clean and mrproper)
I've moved the missing msm_rtb.h file from its other location, but stopped there because I don't want to cherry-pick things like I did with permissions (ended up chmod +777 -R because I got fed up with random permission denied errors)
Other things that I'm having a hard time remembering because I've been working on the kernel stuff for about five straight hours
I believe I'm supposed to only use jf_vzw_defconfig, but some guides mention additional defconfigs
One guide has a step that no others have, and that's the VARIANT_DEFCONFIG and VARIANT_SELINUX or whatever it is command...and it had two things listed for DEFCONFIG, so I got lost there as well
Here are the applicable, android contents of my .bashrc (if you read it and say to yourself "why did he..."--I had to because none of the guides worked for me and I had to follow step 1 from one guide C, step 2 from guide A, and so on):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
export PATH=~/bin:$PATH
export PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export USE_CCACHE=1
Warning, this is long stuff from the terminal, but it's mostly repetitive (and is a snippet of things I just recently did). I tried different things from different guides in different orders because I can't seem to get any guide to get me to the finish line. If it looks like I did things in the wrong order or things I shouldn't have, it's for two reasons--one is that some guides have things way out of order from others and some have instructions that others don't. I figured if none work, I'll frankenstein the instructions like I had to for the Cyanogenmod build.
Code:
[email protected]:~/android/NC5/Kernel$ ./make_defconfig.sh
Need defconfig file(j1v-perf_defconfig)!
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make maker.config
HOSTCC scripts/basic/fixdep
make[1]: *** No rule to make target `maker.config'. Stop.
make: *** [maker.config] Error 2
[email protected]:~/android/NC5/Kernel$ cd arch/arm/configs/
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ cd ..
[email protected]:~/android/NC5/Kernel/arch/arm$ cd ..
[email protected]:~/android/NC5/Kernel/arch$ cd ..
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
Generating include/generated/mach-types.h
HOSTCC scripts/mod/mk_elfconfig
CC kernel/bounds.s
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/genksyms/lex.lex.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/kallsyms
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/recordmcount
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d*
chmod: cannot access ‘android-ndk-r10d*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d/* -R
chmod: cannot access ‘android-ndk-r10d/*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ cd ..
[email protected]:~/android/NC5$ chmod +777 -R Kernel/*
[email protected]:~/android/NC5$ chmod +777 -R Kernel*
[email protected]:~/android/NC5$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android/NC5$ cd Kernel/
[email protected]:~/android/NC5/Kernel$ make clean
CLEAN .
CLEAN .tmp_versions
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm/include/generated
CLEAN .config include/linux/version.h
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-^C
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ sudo make jf_vzw_defconfig
[sudo] password for jon8rfc:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ sudo make VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfigscripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ export SUBARCH=arm
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
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
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/android/NC5/Kernel$ make -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/kallsyms
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/modpost.o
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/conmakehash
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/recordmcount
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Jon8RFC said:
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Click to expand...
Click to collapse
From the log output it seems you're not defining variant defconfig. Here's one I used for nc5 or maybe it's for mj7 either way you get the picture. Also in the kernel source zip there's a text file that should help you define these.
export PATH=$PATH:~/android/arm-eabi-4.7/bin
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=${PATH}:/opt/android-sdk/tools
export PATH=${PATH}:/opt/android-sdk/platform-tools
export PATH=${PATH}:~/bin
#export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export KERNEL_DIR=`pwd`
export KERNELDIR=$KERNEL_DIR
make ARCH=arm VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig jf_defconfig
make -j8 ARCH=arm zImage
make -j8 ARCH=arm modules
There's likely not a guide on doing this that in depth Samsung Galaxy only, but hope this helps.
Oh and you need to arm-eabi-4.7 or atleast some recent toolchain that you will also need to add to your path for cross compiling
P.S. Nice job with recent questions in Q&A, yours are the first in a long time that one can't find the answer to via googling and/or reading. (thus why I'm answering/trying to help)
Awesome, thanks! I'm getting it to come along now, and I'm just making corrections (fixes, maybe?) as errors come up, because I still can't reach the finish line. I've begun doing make -j1 to see each thing as it pops up and I'm fixing each thing as it happens. I'm stuck with this particular one though, and I've been hunting for a couple of hours to no avail:
Code:
sound/soc/codecs/wcd9310.c: In function 'tabla_codec_remove':
sound/soc/codecs/wcd9310.c:9109:22: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
error, forbidden warning: wcd9310.c:9109
make[3]: *** [sound/soc/codecs/wcd9310.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
I couldn't find anyone with code corrections, just slightly different code which didn't seem to apply. The code which did seem to apply (although it wasn't for the s4), didn't have changes and people just used the same source. I also looked at the MDK source, and it's the same as NC5 (I thought it was an i9505 issue at first from one repository I found, but MDK is the same). Apparently, I need to enable -fno-aggressive-loop-optimizations, I believe. I think? It's supposed to be enabled by default, according to GCC 4.8 documentation as a "new feature" to avoid these issues, but maybe it's not in my case. From the error shown, it looks like -Wno-aggressive-loop-optimizations is in effect, right? I can't figure out how to make GCC use the -fno option though. I'm barely understanding myself, heh, please keep that in mind.
https://android.googlesource.com/toolchain/gcc/+/325a57a9cceb570741de8b68c40f4a72136cc35d/gcc-4.8/NEWS said:
GCC now uses a more aggressive analysis to derive an upper bound for
the number of iterations of loops using constraints imposed by language
standards. This may cause non-conforming programs to no longer work as
expected, such as SPEC CPU 2006 464.h264ref and 416.gamess. A new
option, -fno-aggressive-loop-optimizations, was added to disable this
aggressive analysis. In some loops that have known constant number of
iterations, but undefined behavior is known to occur in the loop before
reaching or during the last iteration, GCC will warn about the
undefined behavior in the loop instead of deriving lower upper bound of
the number of iterations for the loop. The warning can be disabled with
-Wno-aggressive-loop-optimizations.
Click to expand...
Click to collapse
Whew...finally found it, here:
http://forum.xda-developers.com/showpost.php?p=51966700&postcount=5529
I'm still going to post this in the event it's helpful for anyone else. Thanks a lot Surge...I was going crazy until you gave me those new things to put into .bashrc and what commands to actually use. Hopefully I'll get through and zImage will compile and if I can do it without errors, all the better. Thanks again. I really do appreciate it =)
Woohoo! Thanks, Surge =)
Code:
OBJCOPY arch/arm/boot/zImage
/home/jon8rfc/android/Kernel/scripts/mk_fipsbinary.sh arch/arm/boot/zImage
Make kernel fips binary..
Done.
Kernel: arch/arm/boot/zImage is ready
Now, on to modules...

poblem with gcc compiling kernel

when i try to compile a kernel with this command
Code:
make ARCH=arm CROSS_COMPILE=arm-eabi- modules_prepare
i get this error:
Code:
CC_PATH/arm-eabi- modules_prepare
make: /arm-eabi-gcc: command not found
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
/bin/sh: 1: /arm-eabi-gcc: not found
/home/user/Desktop/ArchiKernel-smdk4412/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1216: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
can someone help me?
thanks in advance

poblem with gcc compiling kernel

when i try to compile a kernel with this command
Code:
make ARCH=arm CROSS_COMPILE=arm-eabi- modules_prepare
i get this error:
Code:
CC_PATH/arm-eabi- modules_prepare
make: /arm-eabi-gcc: command not found
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
/bin/sh: 1: /arm-eabi-gcc: not found
/home/user/Desktop/ArchiKernel-smdk4412/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1216: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
can someone help me?
thanks in advance

Trying to build a kernel

I am trying to build a kernel for moto g 2014 based on cm source.
Code:
[email protected]:~/kernelmoto$ export ARCH=arm
[email protected]:~/kernelmoto$ export CROSS_COMPILER=~/android/arm-cortex_a7-linux/arm-cortex_a7-linux-gnueabihf-
[email protected]:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
[email protected]:~/kernelmoto$ make -j6
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/kernelmoto$
what am I missing, I am using the linaro toolchain. How do I fix these errors?

Categories

Resources