.tmp_vmlinux1 error on Ubuntu (Kernel Compilation) - One (M8) Q&A, Help & Troubleshooting

Im compiling the google play edition stock kernel for the htc one m8 varient. The kernel is 3.4.0-gb1b6fb1 for android 4.4.4. Im using Ubuntu 14.04.1 LTS. I used the following command:
make -j2 ARCH=arm CROSS_COMPILE=/home/richard/Workspace/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-.
So here is the error:
LD drivers/video/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `dwc3_msm_probe':
/home/richard/Workspace/kernel1/drivers/usb/dwc3/dwc3-msm.c:2561: undefined reference to `rom_stockui'
make: *** [.tmp_vmlinux1] Error 1
Click to expand...
Click to collapse
How can I fix this? Im working on a project that is due in two days. Any help is appreciated!

Related

[PORTED]ICS For Optimus ME - Baseband Unknown [Problem]

IceCreamSanwitch For LG Optimus Me p350​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have Ported the ICS to optimus ME.First the screen was distorted and it was fixed.Now the problem is with the CALL (GSM) which is not working.I have copied the lib files and bin file to the phone but it is still not working
Please Help
Download
http://www.4shared.com/zip/g5sVvKN0/ICS_pecan_vivek.html
or
http://www.zshare.net/download/990433072854d373/
or
http://www.mediafire.com/?ta11x4btg9nobbb
Call fixed (not really fixed but with rild lib files) : http://www.mediafire.com/?2l9752bowiyc35n
Screen Fixed patch : http://www.mediafire.com/?eh3ce0xz0y7zuqb
touch fix : http://uploadmirrors.com/download/1AYC8HHU/TsFix.zip
Join LG Optimus Me Group : Optimus Me p350 Development
You posted in the wrong section.For questions and problems use the general section.
Wrong section indeed. Maybe you would be better of closing this thread and send a PM to franciscofranco or fserve.
Good luck!
Greets!
mDroidd from tapatalk
_____________________________
Sent from my Galaxy Nexus
[-]Everything still stock
_____________________________
LG Optimus One
ROM: Nitrogen
Kernel: custom .35
Tweaks: All
Theme: ICS (inside Nitrogen by me)
You need to have the cross compile toolchain downloaded... You can find it in the android source or get it someplace else...
Then you need to export these variables CROSS_COMPILE and ARCH:
Code:
export CROSS_COMPILE=/path/to/toolchain/arm-eabi-
export ARCH=arm
then you're good to go...
I know it is posted in the wrong section.But Still I posted it here because In general section there will be Questions about installing apps,phone not turning On,always rebooting,what is OC,how can I flash a new ROM,how is battery life in that ROM,what is the advantage of flashing that X ROM .is it better ?? ,how can i flash back,will i lose all the data when flashing ,etc
this Qn is based on Kernel So I dont think anyone in General section can be able to answer this Qusetion.Thats why I posted it here
Thanks
popdog123 said:
You need to have the cross compile toolchain downloaded... You can find it in the android source or get it someplace else...
Then you need to export these variables CROSS_COMPILE and ARCH:
Code:
export CROSS_COMPILE=/path/to/toolchain/arm-eabi-
export ARCH=arm
then you're good to go...
Click to expand...
Click to collapse
is this enough ??
i have done this step
Code:
$ export ARCH=arm
$ export CROSS_COMPILER=arm-eabi-
$ export CROSS_COMPILE=arm-eabi-
$ export PATH=$PATH:$HOME/android/source/aosp/master/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
vivekkalady said:
is this enough ??
i have done this step
Code:
$ export ARCH=arm
$ export CROSS_COMPILER=arm-eabi-
$ export CROSS_COMPILE=arm-eabi-
$ export PATH=$PATH:$HOME/android/source/aosp/master/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
Click to expand...
Click to collapse
Yeah,for kernel this is okay,but I reccomend doing
Code:
gedit .bashrc
Then enter the export PATH=$PATH:$HOME/android/source/aosp/master/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
Just make sure you correctly enter your prebuilt path.
Got this I think this is error (do i have to configure when menu is shown "make menuconfig" or just exit when the menu is shown (ie save it)
Code:
[email protected]:~/android/system/pecan_kernal$ make -j4
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
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/mk_elfconfig
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
CC kernel/bounds.s
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
HOSTCC usr/gen_init_cpio
UPD include/linux/compile.h
CC arch/arm/kernel/compat.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/process.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/ptrace.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/iomap.o
CC init/do_mounts_md.o
CC init/initramfs.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/common/vic.o
CC arch/arm/mm/flush.o
CC init/calibrate.o
CC arch/arm/kernel/signal.o
CC arch/arm/common/icst307.o
CC init/version.o
CC arch/arm/mm/ioremap.o
CC arch/arm/common/clkdev.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/mmap.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-versatile/core.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/kernel/time.o
CC arch/arm/perfmon/perf-function-hooks.o
CC arch/arm/kernel/traps.o
CC arch/arm/mach-versatile/clock.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/mach-versatile/versatile_pb.o
In file included from arch/arm/kernel/../mach-msm/lge/lge_errorhandler.h:15,
from arch/arm/kernel/traps.c:37:
arch/arm/kernel/../mach-msm/lge/../smd_private.h:82:2: error: #error No SMD Package Specified; aborting
arch/arm/kernel/traps.c: In function 'dump_backtrace_entry':
arch/arm/kernel/traps.c:65: warning: too few arguments for format
arch/arm/kernel/traps.c: In function '__die':
arch/arm/kernel/traps.c:277: error: 'hidden_reset_enable' undeclared (first use in this function)
arch/arm/kernel/traps.c:277: error: (Each undeclared identifier is reported only once
arch/arm/kernel/traps.c:277: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/mach-versatile/pci.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
LD arch/arm/mach-versatile/built-in.o
AS arch/arm/mm/abort-ev5tj.o
AS arch/arm/mm/pabort-legacy.o
CC arch/arm/mm/copypage-v4wb.o
AS arch/arm/mm/tlb-v4wbi.o
AS arch/arm/mm/proc-arm926.o
LD arch/arm/mm/built-in.o
arm-eabi-ld: internal error in relocate_special_relocatable, at /home/jingyu/projects/gcc/android-toolchainsrc/build/../binutils/binutils-2.19/gold/arm.cc:9524
make[1]: *** [arch/arm/mm/built-in.o] Error 1
make: *** [arch/arm/mm] Error 2
make: *** wait: No child processes. Stop.
after this I didnt find the zImage so I think this is Wrong can you help me fix it
vivekkalady said:
Got this I think this is error (do i have to configure when menu is shown "make menuconfig" or just exit when the menu is shown (ie save it)
Code:
[email protected]:~/android/system/pecan_kernal$ make -j4
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
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/mk_elfconfig
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
CC kernel/bounds.s
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
HOSTCC usr/gen_init_cpio
UPD include/linux/compile.h
CC arch/arm/kernel/compat.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/process.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/ptrace.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/iomap.o
CC init/do_mounts_md.o
CC init/initramfs.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/common/vic.o
CC arch/arm/mm/flush.o
CC init/calibrate.o
CC arch/arm/kernel/signal.o
CC arch/arm/common/icst307.o
CC init/version.o
CC arch/arm/mm/ioremap.o
CC arch/arm/common/clkdev.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/mmap.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-versatile/core.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/kernel/time.o
CC arch/arm/perfmon/perf-function-hooks.o
CC arch/arm/kernel/traps.o
CC arch/arm/mach-versatile/clock.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/mach-versatile/versatile_pb.o
In file included from arch/arm/kernel/../mach-msm/lge/lge_errorhandler.h:15,
from arch/arm/kernel/traps.c:37:
arch/arm/kernel/../mach-msm/lge/../smd_private.h:82:2: error: #error No SMD Package Specified; aborting
arch/arm/kernel/traps.c: In function 'dump_backtrace_entry':
arch/arm/kernel/traps.c:65: warning: too few arguments for format
arch/arm/kernel/traps.c: In function '__die':
arch/arm/kernel/traps.c:277: error: 'hidden_reset_enable' undeclared (first use in this function)
arch/arm/kernel/traps.c:277: error: (Each undeclared identifier is reported only once
arch/arm/kernel/traps.c:277: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/mach-versatile/pci.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
LD arch/arm/mach-versatile/built-in.o
AS arch/arm/mm/abort-ev5tj.o
AS arch/arm/mm/pabort-legacy.o
CC arch/arm/mm/copypage-v4wb.o
AS arch/arm/mm/tlb-v4wbi.o
AS arch/arm/mm/proc-arm926.o
LD arch/arm/mm/built-in.o
arm-eabi-ld: internal error in relocate_special_relocatable, at /home/jingyu/projects/gcc/android-toolchainsrc/build/../binutils/binutils-2.19/gold/arm.cc:9524
make[1]: *** [arch/arm/mm/built-in.o] Error 1
make: *** [arch/arm/mm] Error 2
make: *** wait: No child processes. Stop.
after this I didnt find the zImage so I think this is Wrong can you help me fix it
Click to expand...
Click to collapse
Code:
make thunderg-perf_defconfig
make zImage -j4
Change thunderg-perf_defconfig with your device's kernel defconfig. You can find it in /arch/arm/configs.
vivekkalady said:
Got this I think this is error (do i have to configure when menu is shown "make menuconfig" or just exit when the menu is shown (ie save it)
Code:
[email protected]:~/android/system/pecan_kernal$ make -j4
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
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/mk_elfconfig
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
CC kernel/bounds.s
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
HOSTCC usr/gen_init_cpio
UPD include/linux/compile.h
CC arch/arm/kernel/compat.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/process.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/ptrace.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/iomap.o
CC init/do_mounts_md.o
CC init/initramfs.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/common/vic.o
CC arch/arm/mm/flush.o
CC init/calibrate.o
CC arch/arm/kernel/signal.o
CC arch/arm/common/icst307.o
CC init/version.o
CC arch/arm/mm/ioremap.o
CC arch/arm/common/clkdev.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/mmap.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-versatile/core.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/kernel/time.o
CC arch/arm/perfmon/perf-function-hooks.o
CC arch/arm/kernel/traps.o
CC arch/arm/mach-versatile/clock.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/mach-versatile/versatile_pb.o
In file included from arch/arm/kernel/../mach-msm/lge/lge_errorhandler.h:15,
from arch/arm/kernel/traps.c:37:
arch/arm/kernel/../mach-msm/lge/../smd_private.h:82:2: error: #error No SMD Package Specified; aborting
arch/arm/kernel/traps.c: In function 'dump_backtrace_entry':
arch/arm/kernel/traps.c:65: warning: too few arguments for format
arch/arm/kernel/traps.c: In function '__die':
arch/arm/kernel/traps.c:277: error: 'hidden_reset_enable' undeclared (first use in this function)
arch/arm/kernel/traps.c:277: error: (Each undeclared identifier is reported only once
arch/arm/kernel/traps.c:277: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/mach-versatile/pci.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
LD arch/arm/mach-versatile/built-in.o
AS arch/arm/mm/abort-ev5tj.o
AS arch/arm/mm/pabort-legacy.o
CC arch/arm/mm/copypage-v4wb.o
AS arch/arm/mm/tlb-v4wbi.o
AS arch/arm/mm/proc-arm926.o
LD arch/arm/mm/built-in.o
arm-eabi-ld: internal error in relocate_special_relocatable, at /home/jingyu/projects/gcc/android-toolchainsrc/build/../binutils/binutils-2.19/gold/arm.cc:9524
make[1]: *** [arch/arm/mm/built-in.o] Error 1
make: *** [arch/arm/mm] Error 2
make: *** wait: No child processes. Stop.
after this I didnt find the zImage so I think this is Wrong can you help me fix it
Click to expand...
Click to collapse
the traps.c file have the error , you have to fix it , you can see what wrong with it by this way: example
Code:
arch/arm/kernel/traps.c:[COLOR="Red"]65[/COLOR]: warning: too few arguments for format
see the "65" in red color , that tell you this is the problem , open the file with gedit (ubuntu text editor program) , them scoll down to the line 65 , you will see the error.
when the terminal said: zImage is ready (or some thing like that.... i don't remember)
You will see the zImage in arch/arm/boot
AND, SORRY FOR MY BAD ENGLISH!
Code:
CC net/key/af_key.o
CC net/ipv4/ip_sockglue.o
CC net/ipv6/ip6_output.o
LD drivers/input/touchscreen/built-in.o
CC drivers/input/keyreset.o
CC [M] drivers/input/evbug.o
CC net/ipv4/inet_hashtables.o
LD drivers/input/input-core.o
LD drivers/input/built-in.o
CC drivers/leds/led-core.o
CC drivers/leds/led-class.o
LD net/key/built-in.o
CC net/ipv6/ip6_input.o
CC net/ipv6/addrconf.o
CC drivers/leds/leds-cpld.o
CC net/ipv4/inet_timewait_sock.o
CC drivers/leds/leds-msm-pmic.o
CC drivers/leds/leds-msm-pmic-key.o
CC net/ipv4/inet_connection_sock.o
LD drivers/lguest/built-in.o
CC net/ipv6/addrlabel.o
LD drivers/leds/built-in.o
LD drivers/macintosh/built-in.o
CC drivers/md/dm-uevent.o
CC drivers/md/dm.o
CC net/ipv4/tcp.o
CC drivers/md/dm-table.o
CC net/ipv6/route.o
CC net/ipv4/tcp_input.o
CC drivers/md/dm-target.o
CC drivers/md/dm-linear.o
CC drivers/md/dm-stripe.o
CC drivers/md/dm-ioctl.o
CC net/ipv6/ip6_fib.o
CC net/ipv6/ipv6_sockglue.o
CC drivers/md/dm-io.o
CC net/ipv4/tcp_output.o
CC net/ipv6/ndisc.o
CC drivers/md/dm-kcopyd.o
CC drivers/md/dm-sysfs.o
CC net/ipv4/tcp_timer.o
CC drivers/md/dm-crypt.o
CC net/ipv6/udp.o
CC net/ipv6/udplite.o
CC net/ipv4/tcp_ipv4.o
LD drivers/md/dm-mod.o
LD drivers/md/built-in.o
CC drivers/media/common/tuners/tuner-xc2028.o
CC drivers/media/common/tuners/tuner-simple.o
CC net/ipv6/raw.o
CC net/ipv6/protocol.o
CC net/ipv4/tcp_minisocks.o
CC drivers/media/common/tuners/tuner-types.o
CC net/ipv4/tcp_cong.o
CC drivers/media/common/tuners/mt20xx.o
CC net/ipv6/icmp.o
CC drivers/media/common/tuners/tda8290.o
CC net/ipv4/datagram.o
CC net/ipv6/mcast.o
CC net/ipv4/raw.o
CC drivers/media/common/tuners/tea5767.o
CC net/netfilter/core.o
CC drivers/media/common/tuners/tea5761.o
CC net/ipv4/udp.o
CC net/netfilter/nf_log.o
CC drivers/media/common/tuners/tda9887.o
CC net/ipv6/reassembly.o
CC net/netfilter/nf_queue.o
CC drivers/media/common/tuners/xc5000.o
CC net/ipv4/udplite.o
CC net/netfilter/nf_sockopt.o
CC drivers/media/common/tuners/mc44s803.o
CC net/ipv6/tcp_ipv6.o
CC net/netfilter/nf_conntrack_core.o
CC net/ipv4/arp.o
LD drivers/media/common/tuners/built-in.o
LD drivers/media/common/built-in.o
LD drivers/media/radio/built-in.o
CC drivers/media/video/v4l2-dev.o
CC drivers/media/video/v4l2-ioctl.o
CC net/ipv6/exthdrs.o
CC net/ipv4/icmp.o
CC net/netfilter/nf_conntrack_standalone.o
CC net/ipv6/datagram.o
CC drivers/media/video/v4l2-device.o
CC net/netfilter/nf_conntrack_expect.o
CC net/ipv4/devinet.o
CC drivers/media/video/v4l2-int-device.o
CC net/ipv6/ip6_flowlabel.o
CC net/netfilter/nf_conntrack_helper.o
CC drivers/media/video/v4l2-common.o
CC net/netfilter/nf_conntrack_proto.o
CC net/ipv4/af_inet.o
CC drivers/media/video/v4l1-compat.o
CC net/ipv6/inet6_connection_sock.o
CC net/netfilter/nf_conntrack_l3proto_generic.o
CC net/ipv6/sysctl_net_ipv6.o
CC drivers/media/video/msm/msm_camera.o
CC net/ipv4/igmp.o
CC net/netfilter/nf_conntrack_proto_generic.o
CC net/ipv6/xfrm6_policy.o
CC net/netfilter/nf_conntrack_proto_tcp.o
CC net/ipv6/xfrm6_state.o
CC net/ipv4/fib_frontend.o
CC drivers/media/video/msm/msm_v4l2.o
CC net/netfilter/nf_conntrack_proto_udp.o
CC net/ipv6/xfrm6_input.o
CC drivers/media/video/msm/msm_axi_qos.o
CC net/ipv4/fib_semantics.o
CC net/netfilter/nf_conntrack_extend.o
CC net/ipv6/xfrm6_output.o
CC drivers/media/video/msm/msm_vfe7x.o
CC net/netfilter/nf_conntrack_acct.o
CC net/ipv6/netfilter.o
CC drivers/media/video/msm/msm_io7x.o
CC net/ipv4/inet_fragment.o
CC net/netfilter/nf_conntrack_ecache.o
CC drivers/media/video/msm/isx005.o
CC net/ipv6/fib6_rules.o
CC net/ipv4/sysctl_net_ipv4.o
drivers/media/video/msm/isx005.c:240: warning: function declaration isn't a prototype
drivers/media/video/msm/isx005.c: In function 'isx005_init_sensor':
drivers/media/video/msm/isx005.c:808: warning: unused variable 'p'
drivers/media/video/msm/isx005.c:807: warning: unused variable 'i'
CC net/netfilter/nf_conntrack_h323_main.o
CC net/ipv6/proc.o
LD drivers/media/video/msm/built-in.o
CC net/ipv4/sysfs_net_ipv4.o
LD drivers/media/video/videodev.o
LD drivers/media/video/built-in.o
LD drivers/media/built-in.o
LD drivers/mfd/built-in.o
CC drivers/misc/pmem.o
CC net/ipv4/fib_hash.o
CC net/ipv6/ah6.o
CC net/netfilter/nf_conntrack_h323_asn1.o
CC net/netfilter/nfnetlink.o
CC drivers/misc/uid_stat.o
CC net/ipv6/esp6.o
CC net/ipv4/proc.o
LD drivers/misc/cb710/built-in.o
LD drivers/misc/eeprom/built-in.o
CC drivers/misc/android_vibrator.o
CC net/netfilter/nfnetlink_queue.o
CC drivers/misc/lge_ats_at_class.o
CC net/ipv4/ah4.o
CC net/ipv6/ipcomp6.o
CC drivers/misc/lge_ats_at.o
CC net/netfilter/nfnetlink_log.o
drivers/misc/lge_ats_at.c: In function 'atcmd_probe':
drivers/misc/lge_ats_at.c:49: warning: assignment discards qualifiers from pointer target type
CC [M] drivers/misc/pmem_kernel_test.o
CC net/ipv4/esp4.o
CC net/ipv6/xfrm6_tunnel.o
LD drivers/misc/built-in.o
CC drivers/mmc/card/block.o
LD net/netfilter/nf_conntrack.o
CC net/netfilter/nf_conntrack_proto_dccp.o
CC net/ipv4/xfrm4_mode_beet.o
CC net/ipv6/tunnel6.o
CC drivers/mmc/card/queue.o
CC net/netfilter/nf_conntrack_proto_gre.o
CC net/ipv4/tunnel4.o
CC net/ipv6/xfrm6_mode_transport.o
LD drivers/mmc/card/mmc_block.o
LD drivers/mmc/card/built-in.o
CC drivers/mmc/core/core.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv6/xfrm6_mode_tunnel.o
CC net/netfilter/nf_conntrack_proto_sctp.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC net/ipv6/xfrm6_mode_beet.o
CC drivers/mmc/core/bus.o
CC net/netfilter/nf_conntrack_proto_udplite.o
CC net/ipv4/netfilter.o
CC drivers/mmc/core/host.o
CC net/ipv6/mip6.o
CC net/netfilter/nf_conntrack_netlink.o
CC drivers/mmc/core/mmc.o
CC net/ipv4/netfilter/nf_nat_rule.o
LD net/ipv6/netfilter/built-in.o
CC net/ipv6/sit.o
CC drivers/mmc/core/mmc_ops.o
CC net/ipv4/netfilter/nf_nat_standalone.o
CC net/netfilter/nf_conntrack_amanda.o
CC drivers/mmc/core/sd.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv6/ip6_tunnel.o
CC net/netfilter/nf_conntrack_ftp.o
CC drivers/mmc/core/sd_ops.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC drivers/mmc/core/sdio.o
LD net/netfilter/nf_conntrack_h323.o
CC net/netfilter/nf_conntrack_irc.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv6/addrconf_core.o
CC drivers/mmc/core/sdio_ops.o
CC net/ipv6/exthdrs_core.o
CC net/netfilter/nf_conntrack_netbios_ns.o
CC net/ipv4/netfilter/nf_nat_core.o
CC drivers/mmc/core/sdio_bus.o
CC drivers/mmc/core/sdio_cis.o
CC net/netfilter/nf_conntrack_pptp.o
CC net/ipv6/inet6_hashtables.o
CC net/ipv4/netfilter/nf_nat_helper.o
CC drivers/mmc/core/sdio_io.o
CC net/netfilter/nf_conntrack_sane.o
LD net/ipv6/ipv6.o
LD net/ipv6/built-in.o
CC net/netfilter/nf_conntrack_sip.o
CC drivers/mmc/core/sdio_irq.o
CC net/ipv4/netfilter/nf_nat_proto_unknown.o
CC drivers/mmc/core/debugfs.o
CC net/ipv4/netfilter/nf_nat_proto_common.o
CC net/netlink/af_netlink.o
LD drivers/mmc/core/mmc_core.o
LD drivers/mmc/core/built-in.o
CC drivers/mmc/host/msm_sdcc.o
CC net/ipv4/netfilter/nf_nat_proto_tcp.o
CC net/netfilter/nf_conntrack_tftp.o
CC net/ipv4/netfilter/nf_nat_proto_udp.o
CC net/netfilter/x_tables.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
LD drivers/mmc/host/built-in.o
LD drivers/mmc/built-in.o
CC drivers/mtd/mtdcore.o
CC net/netlink/genetlink.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/netfilter/xt_tcpudp.o
CC drivers/mtd/mtdsuper.o
CC drivers/mtd/mtdbdi.o
CC net/ipv4/netfilter/nf_nat_amanda.o
LD net/netlink/built-in.o
CC net/ipv4/tcp_cubic.o
CC net/netfilter/xt_CLASSIFY.o
CC drivers/mtd/mtdpart.o
CC net/ipv4/netfilter/nf_nat_ftp.o
CC net/netfilter/xt_CONNMARK.o
CC net/ipv4/netfilter/nf_nat_h323.o
CC drivers/mtd/cmdlinepart.o
CC drivers/mtd/mtdchar.o
CC net/netfilter/xt_MARK.o
CC net/ipv4/netfilter/nf_nat_irc.o
net/netfilter/xt_MARK.c: In function 'mark_mt':
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c: At top level:
net/netfilter/xt_MARK.c:38: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_mtinfo1'
make[2]: *** [net/netfilter/xt_MARK.o] Error 1
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/net/mii.o
LD drivers/platform/built-in.o
CC drivers/mtd/mtd_blkdevs.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/xfrm4_policy.o
CC drivers/net/Space.o
CC drivers/mtd/mtdblock.o
CC net/ipv4/netfilter/nf_nat_sip.o
CC drivers/net/loopback.o
CC drivers/net/ppp_generic.o
CC drivers/mtd/chips/chipreg.o
LD drivers/mtd/chips/built-in.o
CC drivers/mtd/devices/msm_nand.o
LD drivers/mtd/lpddr/built-in.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_nat_snmp_basic.o
CC net/ipv4/netfilter/nf_nat_tftp.o
CC drivers/net/ppp_async.o
LD drivers/mtd/maps/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_dccp.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/netfilter/nf_nat_proto_udplite.o
CC drivers/net/ppp_synctty.o
CC drivers/net/ppp_deflate.o
CC net/ipv4/netfilter/nf_nat_proto_sctp.o
CC net/ipv4/xfrm4_output.o
CC drivers/net/bsd_comp.o
LD drivers/mtd/devices/built-in.o
CC drivers/mtd/nand/nand_ids.o
LD drivers/mtd/nand/built-in.o
LD drivers/mtd/onenand/built-in.o
LD drivers/mtd/tests/built-in.o
CC [M] drivers/mtd/tests/mtd_oobtest.o
CC drivers/net/ppp_mppe.o
CC drivers/net/pppox.o
CC net/ipv4/netfilter/ip_tables.o
CC [M] drivers/mtd/tests/mtd_pagetest.o
CC [M] drivers/mtd/tests/mtd_readtest.o
CC drivers/net/pppoe.o
CC net/ipv4/netfilter/iptable_filter.o
CC drivers/net/pppol2tp.o
CC [M] drivers/mtd/tests/mtd_speedtest.o
LD net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/ipt_addrtype.o
CC [M] drivers/mtd/tests/mtd_stresstest.o
CC net/ipv4/netfilter/ipt_ah.o
CC [M] drivers/mtd/tests/mtd_subpagetest.o
CC drivers/net/pppolac.o
CC net/ipv4/netfilter/ipt_ecn.o
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
CC drivers/power/msm_battery.o
CC drivers/rtc/rtc-lib.o
CC [M] drivers/mtd/tests/mtd_torturetest.o
CC drivers/net/pppopns.o
CC drivers/rtc/hctosys.o
CC drivers/power/power_supply_core.o
LD drivers/mtd/mtd.o
LD drivers/mtd/built-in.o
CC drivers/rtc/class.o
CC drivers/power/power_supply_sysfs.o
CC drivers/net/slip.o
CC drivers/rtc/interface.o
LD drivers/power/power_supply.o
LD drivers/power/msm_batt.o
LD drivers/power/built-in.o
CC drivers/scsi/scsi.o
CC drivers/serial/serial_core.o
CC drivers/rtc/rtc-dev.o
CC drivers/net/slhc.o
CC drivers/rtc/rtc-proc.o
CC drivers/scsi/hosts.o
CC drivers/rtc/rtc-sysfs.o
CC drivers/serial/msm_serial.o
CC drivers/net/dummy.o
CC drivers/scsi/scsi_ioctl.o
CC drivers/rtc/alarm.o
CC drivers/net/smc91x.o
CC drivers/scsi/constants.o
CC drivers/serial/msm_serial_hs.o
drivers/net/smc91x.c: In function 'smc_hardware_send_pkt':
drivers/net/smc91x.c:553: warning: unused variable 'flags'
drivers/net/smc91x.c: In function 'smc_hard_start_xmit':
drivers/net/smc91x.c:639: warning: unused variable 'flags'
CC drivers/rtc/alarm-dev.o
CC drivers/scsi/scsicam.o
CC drivers/rtc/rtc-msm.o
LD drivers/serial/built-in.o
CC drivers/scsi/scsi_error.o
LD drivers/net/arm/built-in.o
CC drivers/net/wireless/bcm4329/brcm_static_buf.o
LD drivers/net/wireless/libra/built-in.o
CC [M] drivers/net/wireless/libra/libra_sdioif.o
LD drivers/rtc/rtc-core.o
LD drivers/rtc/built-in.o
CC drivers/scsi/scsi_lib.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_linux.o
LD [M] drivers/net/wireless/libra/librasdioif.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/src/shared/linux_osl.o
CC drivers/scsi/scsi_lib_dma.o
CC drivers/scsi/scsi_scan.o
CC [M] drivers/net/wireless/bcm4329/src/shared/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_common.o
CC drivers/scsi/scsi_sysfs.o
CC drivers/net/msm_rmnet.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_custom_gpio.o
CC drivers/scsi/scsi_devinfo.o
CC drivers/staging/staging.o
CC drivers/staging/android/binder.o
CC [M] drivers/net/wireless/bcm4329/src/shared/siutils.o
CC drivers/scsi/scsi_sysctl.o
CC [M] drivers/net/wireless/bcm4329/src/shared/sbutils.o
CC drivers/scsi/scsi_proc.o
CC drivers/scsi/scsi_tgt_lib.o
CC [M] drivers/net/wireless/bcm4329/src/shared/aiutils.o
CC drivers/switch/switch_class.o
CC drivers/switch/switch_gpio.o
drivers/switch/switch_gpio.c:1:2: warning: #warning compile out
LD drivers/switch/built-in.o
CC drivers/staging/android/logger.o
CC drivers/scsi/scsi_tgt_if.o
CC [M] drivers/net/wireless/bcm4329/src/shared/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/src/wl/sys/wl_iw.o
CC drivers/staging/android/ram_console.o
CC drivers/staging/android/timed_output.o
CC drivers/scsi/sd.o
LD drivers/scsi/arm/built-in.o
CC [M] drivers/net/wireless/bcm4329/src/shared/bcmwifi.o
CC drivers/staging/android/timed_gpio.o
drivers/staging/android/timed_gpio.c:1:2: warning: #warning compile out
CC drivers/staging/android/lowmemorykiller.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_cdc.o
LD drivers/staging/android/built-in.o
LD drivers/staging/built-in.o
CC drivers/usb/gadget/msm72k_udc.o
drivers/usb/gadget/msm72k_udc.c: In function 'print_switch_state':
drivers/usb/gadget/msm72k_udc.c:320: warning: unused variable 'ui'
drivers/usb/gadget/msm72k_udc.c: At top level:
drivers/usb/gadget/msm72k_udc.c:509: warning: 'ulpi_read' defined but not used
drivers/usb/gadget/msm72k_udc.c:545: warning: 'ulpi_init' defined but not used
CC drivers/usb/gadget/android.o
CC drivers/scsi/sg.o
CC [M] drivers/net/wireless/bcm4329/src/dhd/sys/dhd_sdio.o
CC drivers/usb/otg/otg.o
CC drivers/usb/otg/msm72k_otg.o
CC drivers/usb/gadget/f_adb.o
CC drivers/scsi/ch.o
LD drivers/usb/otg/built-in.o
CC drivers/usb/gadget/f_mass_storage.o
CC [M] drivers/net/wireless/bcm4329/src/bcmsdio/sys/bcmsdh_sdmmc.o
CC drivers/video/fb_notify.o
CC [M] drivers/scsi/scsi_wait_scan.o
CC drivers/video/fbmem.o
CC [M] drivers/net/wireless/bcm4329/src/bcmsdio/sys/bcmsdh.o
LD drivers/scsi/scsi_mod.o
LD drivers/scsi/scsi_tgt.o
LD drivers/scsi/sd_mod.o
LD drivers/scsi/built-in.o
CC [M] drivers/net/wireless/bcm4329/src/bcmsdio/sys/bcmsdh_linux.o
CC drivers/video/fbmon.o
CC drivers/usb/gadget/u_serial.o
CC [M] drivers/net/wireless/bcm4329/src/bcmsdio/sys/bcmsdh_sdmmc_linux.o
CC drivers/usb/gadget/f_acm.o
CC drivers/video/fbcmap.o
drivers/usb/gadget/f_acm.c: In function 'acm_cdc_notify':
drivers/usb/gadget/f_acm.c:478: warning: unused variable 'len'
LD drivers/net/wireless/bcm4329/built-in.o
LD [M] drivers/net/wireless/bcm4329/wireless.o
CC drivers/usb/gadget/u_ether.o
LD drivers/net/wireless/built-in.o
LD drivers/net/built-in.o
CC drivers/usb/gadget/f_ecm.o
CC drivers/usb/gadget/f_serial.o
CC drivers/video/fbsysfs.o
drivers/usb/gadget/f_serial.c: In function 'gser_notify':
drivers/usb/gadget/f_serial.c:419: warning: unused variable 'len'
CC drivers/video/modedb.o
CC drivers/usb/gadget/f_diag.o
CC drivers/video/fbcvt.o
CC drivers/video/backlight/lcd.o
CC drivers/video/console/dummycon.o
CC drivers/video/console/fbcon.o
CC drivers/usb/gadget/rndis.o
CC drivers/video/backlight/backlight.o
LD drivers/video/display/built-in.o
CC drivers/video/backlight/generic_bl.o
CC drivers/video/console/bitblit.o
CC drivers/video/backlight/aat2870_bl.o
CC drivers/usb/gadget/f_rndis.o
drivers/video/backlight/aat2870_bl.c:538: warning: 'aat28xx_poweroff' defined but not used
CC drivers/usb/gadget/u_lgeusb.o
LD drivers/video/backlight/built-in.o
CC drivers/video/console/fonts.o
CC drivers/video/console/font_6x11.o
LD drivers/usb/gadget/g_android.o
CC drivers/video/console/softcursor.o
LD drivers/usb/gadget/built-in.o
CC drivers/video/cfbfillrect.o
CC drivers/video/msm/msm_fb.o
CC drivers/video/cfbcopyarea.o
LD drivers/video/console/font.o
LD drivers/video/console/built-in.o
CC drivers/video/msm/msm_fb_bl.o
CC drivers/video/cfbimgblt.o
CC drivers/video/msm/mdp.o
CC drivers/video/msm/mdp_hw_init.o
CC drivers/video/output.o
CC drivers/video/msm/mdp_ppp.o
drivers/video/msm/mdp_ppp.c: In function 'flush_imgs':
drivers/video/msm/mdp_ppp.c:557: warning: unused variable 'dst1_len'
drivers/video/msm/mdp_ppp.c:557: warning: unused variable 'dst0_len'
CC drivers/video/msm/mdp_ppp_v20.o
CC drivers/video/msm/mdp_dma_lcdc.o
CC drivers/video/msm/mdp_dma.o
LD drivers/video/fb.o
CC drivers/video/msm/mdp_dma_s.o
CC drivers/video/msm/mdp_vsync.o
CC drivers/video/msm/mdp_cursor.o
CC drivers/video/msm/mdp_dma_tv.o
CC drivers/video/msm/ebi2_lcd.o
CC drivers/video/msm/msm_fb_panel.o
CC drivers/video/msm/ebi2_tovis.o
drivers/video/msm/ebi2_tovis.c:294: warning: function declaration isn't a prototype
drivers/video/msm/ebi2_tovis.c: In function 'do_tovis_init':
drivers/video/msm/ebi2_tovis.c:295: warning: unused variable 'y'
drivers/video/msm/ebi2_tovis.c:295: warning: unused variable 'x'
drivers/video/msm/ebi2_tovis.c: At top level:
drivers/video/msm/ebi2_tovis.c:568: warning: function declaration isn't a prototype
drivers/video/msm/ebi2_tovis.c: In function 'do_ilitek_init':
drivers/video/msm/ebi2_tovis.c:569: warning: unused variable 'y'
drivers/video/msm/ebi2_tovis.c:569: warning: unused variable 'x'
drivers/video/msm/ebi2_tovis.c: At top level:
drivers/video/msm/ebi2_tovis.c:69: warning: 'disp_area_start_row' defined but not used
drivers/video/msm/ebi2_tovis.c:70: warning: 'disp_area_end_row' defined but not used
LD drivers/video/msm/built-in.o
LD drivers/video/built-in.o
LD drivers/built-in.o
[email protected]:~/android/system/pecan_kernal$
make zImage -j4
Code:
[email protected]:~/android/system/pecan_kernal$ make zImage -j4
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
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
LD net/netfilter/netfilter.o
CC net/netfilter/xt_MARK.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat.o
CC net/ipv4/netfilter/ipt_ecn.o
net/netfilter/xt_MARK.c: In function 'mark_mt':
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:30: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c: At top level:
net/netfilter/xt_MARK.c:38: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_mtinfo1'
make[2]: *** [net/netfilter/xt_MARK.o] Error 1
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
CC net/ipv4/netfilter/ipt_LOG.o
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/system/pecan_kernal$
the errors shown are fine ???
hey dude start from fresh use this guide.
http://forum.xda-developers.com/showpost.php?p=19450739&postcount=7
and
http://forum.xda-developers.com/showpost.php?p=19051547&postcount=1
DId u try only 'make'?
aspee said:
hey dude start from fresh use this guide.
http://forum.xda-developers.com/showpost.php?p=19450739&postcount=7
and
http://forum.xda-developers.com/showpost.php?p=19051547&postcount=1
DId u try only 'make'?
Click to expand...
Click to collapse
make command will make the build slower, but you should give it a try!
And those code you posted above is not OK, see the line "unfished job", this is the problem , fix it
But I downloaded it from a source which works perfect then how it shows error for me??
Source
Output of make
Code:
[email protected]:~/android/system/pecan_kernal$ make
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
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC net/ipv4/netfilter/ipt_ecn.o
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
[email protected]:~/android/system/pecan_kernal$
this is the source if you guys have time please compile it and check the problem is with my PC or the kernel itself
have you modified anything?
If you have not, what toolchain you use to compile? the arm-eabi GCC 4.4.3?
i thought that the problems caused by toolchain you use , the kernel source on github may used the linaro toolchain to compile. So it just can compile with linaro (i think)
if the .config file is found in the kernel then do i have to type menuconfig ??
or can i skip the line and do make zimage -j4 ???
thachtunganh said:
have you modified anything?
If you have not, what toolchain you use to compile? the arm-eabi GCC 4.4.3?
i thought that the problems caused by toolchain you use , the kernel source on github may used the linaro toolchain to compile. So it just can compile with linaro (i think)
Click to expand...
Click to collapse
download this ???
http://android-build.linaro.org/builds/~linaro-android/toolchain-4.6-2011.09/1/android-toolchain-eabi-linaro-4.6-2011.09-1-1-2011-09-16_16-16-01-linux-x86.tar.bz2
and extract it to prebuilt/toolchain
and insert path to .bashrc
thats it ??
I have compiled another Kernel Source and It also showed some errors but still running line of codes in terminal and atlast I got the zImage file
so can I apply it to the phone (I havent edited anything and it still has errors)
or do i have to download the latest toolchain and compile it again
thanks Guys for Supporting Me
thank you verymuch
Finally I got ZImage file Ya Hooooo !!!!!!
will only apply it to phone after your Reply
Yep of u got zimage then all should be OK
Only flash zimage and check wifi and other thing are stable if not then u need .ko drivers too
Please used pastebin dot com instead of pasting whole thing here
Sent from my LG-P500 using xda premium
Hello, vivekkalady ! I know a few guys that expected from last year an iniitiative to build a stable kernel for Optimus Me P350 . I hope your kernel will be as good as franco.kernel or goldenleaf. Congratulations for your initiative!
PS: When you will post here a download link?

help rebuilding/install CM10 kernel (I get a bootloop)

has anyone here rebuilt the CM10 nightly kernel before? I am trying to rebuild it and install it myself (which I've done on many other devices), but for some reason after installing my kernel I'm getting stuck in a bootloop.
I have a SGS3 AT&T, but from what I've read all US versions use a unified kernel. By digging through the Cyanogenmod github repositories, I found that this is the CM10 kernel:
https://github.com/CyanogenMod/android_kernel_samsung_d2
The kernel configuration that it ends up using is: cyanogen_d2_defconfig ... so to build the kernel I do:
Code:
make ARCH=arm clean
make ARCH=arm cyanogen_d2_defconfig
make -j2 ARCH=arm CROSS_COMPILE=arm-eabi-
Now, I need to create boot.img and pack the ramdisk. I extracted the ramdisk from one of the CM10 nightlies, and I do:
Code:
./mkbootfs ramdisk | gzip > ramdisk.gz
cp arch/arm/boot/zImage .
./mkbootimg --kernel zImage --ramdisk ramdisk.gz --cmdline "androidboot.hardware=qcom user_debug=31" -o boot.img --base 0x80200000 --pagesize 2048
I got the command line using unpackbootimg:
Code:
$ ../unpackbootimg -i boot.img
BOARD_KERNEL_CMDLINE androidboot.hardware=qcom user_debug=31
BOARD_KERNEL_BASE 80200000
BOARD_PAGE_SIZE 2048
Finally, I took the updater script from this kernel, replacing its boot.img with my boot.img, as well as placing my kernel modules in system/lib/modules. In the end, I have no created the following update zip file to flash in CWM. Feel free to download it and verify the updater script, however here is the updater code:
Code:
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
package_extract_dir("system", "/system");
unmount("/system");
assert(package_extract_file("boot.img", "/cache/boot.img"),
write_raw_image("/cache/boot.img", "/dev/block/mmcblk0p7"),
delete("/cache/boot.img"));
show_progress(0.100000, 0);
But like I said, whenever I go to install this kernel it just gives me a bootloop, so something doesn't seem right. I get no errors/warnings when building the kernel, I extracted the ramdisk correctly... can anyone pick out something I'm missing? maybe mkbootimg?
Thanks!
Why do you need to do this?
Sent from my SGH-I747 using xda app-developers app
because I'm creating a custom kernel, and I figured before I modified it I would just try a simple rebuild...
Look at my repo and match up everything or just use it whole and create the folders for Package and Ramdisk that it wants, then replace the toolchain/cross_compile that I use with the path of yours.
Build script:
https://github.com/ktoonsez/KT747-JB/blob/jellybean/build_d2att_aosp.sh
Alos replace your existing "mkbootfs" and "mkbootimg" files with mine.
thanks a bunch for the pointer to your scripts! I am now using your mkbootfs and mkbootimg, and I also noticed that you included the following in your mkbootimg, which I didn't:
Code:
--ramdiskaddr 0x81500000
So, I added this and now I actually boot but my screen is not working I get the Samsung logo, then the Samsung Galaxy SIII boot screen, then my screen never turns on. I am able to grab dmesg and logcat now though, so I am digging through to narrow down the problem as I continue to go through your scripts!
if I don't want to overclock with my kernel, can I skip including 00post-init.sh which runs these commands:
Code:
#Set governor items
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo 1512000 > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq;
echo 1512000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
echo $(date) END of post-init.sh
I was trying to jump on the bandwagon and build KT747 but I encounter the following errors:
Code:
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/lib1funcs.o: unknown CPU architecture
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/ashldi3.o: unknown CPU architecture
Anyone know why this is happening? I am using GCC 4.7 and the appropriate toolchain. More detailed log: http://pastebin.com/Kb3PWYtq
so I am still having issues where my phone goes through the entire boot process, but my screen does not re-activate after the Samsung Galaxy SIII logo. So I never end up seeing the Cyanogen animation.
Here are relevant logs:
No screen logcat: http://pastebin.com/W4v6Xk9g
No screen dmesg: http://pastebin.com/ydGtj216
With screen logcat: http://pastebin.com/DjENx2gE
With screen dmesg: http://pastebin.com/f3sAzjZa
The "with screen" cases are using the prebuilt CM10 nightlies
Rocket Nine said:
I was trying to jump on the bandwagon and build KT747 but I encounter the following errors:
Code:
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/lib1funcs.o: unknown CPU architecture
/home/trevor/programming/android/linaro4.7/bin/arm-eabi-ld: error: arch/arm/boot/compressed/ashldi3.o: unknown CPU architecture
Anyone know why this is happening? I am using GCC 4.7 and the appropriate toolchain. More detailed log: http://pastebin.com/Kb3PWYtq
Click to expand...
Click to collapse
where did you download your linaro 4.7 binaries from?
Components > Android > android-toolchain 4.7 (ICS, JB)
http://www.linaro.org/downloads/
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Rocket Nine said:
Components > Android > android-toolchain 4.7 (ICS, JB)
http://www.linaro.org/downloads/
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
thanks! So, in another thread ktoonsez said to use the :June 2012 build. That one seems to be from September. Here is the June link:
http://releases.linaro.org/12.06/co...12.06-3-2012-06-19_14-52-07-linux-x86.tar.bz2
using the June toolchain, the kernel almost builds entirely successfully until the last few links when I get these errors:
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Building modules, stage 2.
MODPOST 13 modules
Kernel: arch/arm/boot/Image is ready
CC arch/arm/mach-msm/dma_test.mod.o
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
CC arch/arm/mach-msm/msm-buspm-dev.mod.o
CC arch/arm/mach-msm/reset_modem.mod.o
CC crypto/ansi_cprng.mod.o
CC drivers/crypto/msm/qce40.mod.o
CC drivers/crypto/msm/qcedev.mod.o
CC drivers/crypto/msm/qcrypto.mod.o
CC drivers/input/evbug.mod.o
CC drivers/media/video/gspca/gspca_main.mod.o
CC drivers/net/wireless/bcmdhd/dhd.mod.o
CC drivers/net/wireless/btlock/btlock.mod.o
CC drivers/scsi/scsi_wait_scan.mod.o
CC drivers/spi/spidev.mod.o
LD [M] arch/arm/mach-msm/dma_test.ko
CC arch/arm/boot/compressed/misc.o
LD [M] arch/arm/mach-msm/msm-buspm-dev.ko
LD [M] arch/arm/mach-msm/reset_modem.ko
LD [M] crypto/ansi_cprng.ko
LD [M] drivers/crypto/msm/qce40.ko
LD [M] drivers/crypto/msm/qcedev.ko
LD [M] drivers/crypto/msm/qcrypto.ko
LD [M] drivers/input/evbug.ko
LD [M] drivers/media/video/gspca/gspca_main.ko
LD [M] drivers/net/wireless/bcmdhd/dhd.ko
CC arch/arm/boot/compressed/decompress.o
LD [M] drivers/net/wireless/btlock/btlock.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
LD [M] drivers/spi/spidev.ko
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/piggy.gzip.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
/home/owner/Documents/android-wmon/core/linaro-android-toolchain/bin/arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
/home/owner/Documents/android-wmon/core/linaro-android-toolchain/bin/arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
hedpe said:
using the June toolchain, the kernel almost builds entirely successfully until the last few links when I get these errors:
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Building modules, stage 2.
MODPOST 13 modules
Kernel: arch/arm/boot/Image is ready
CC arch/arm/mach-msm/dma_test.mod.o
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
CC arch/arm/mach-msm/msm-buspm-dev.mod.o
CC arch/arm/mach-msm/reset_modem.mod.o
CC crypto/ansi_cprng.mod.o
CC drivers/crypto/msm/qce40.mod.o
CC drivers/crypto/msm/qcedev.mod.o
CC drivers/crypto/msm/qcrypto.mod.o
CC drivers/input/evbug.mod.o
CC drivers/media/video/gspca/gspca_main.mod.o
CC drivers/net/wireless/bcmdhd/dhd.mod.o
CC drivers/net/wireless/btlock/btlock.mod.o
CC drivers/scsi/scsi_wait_scan.mod.o
CC drivers/spi/spidev.mod.o
LD [M] arch/arm/mach-msm/dma_test.ko
CC arch/arm/boot/compressed/misc.o
LD [M] arch/arm/mach-msm/msm-buspm-dev.ko
LD [M] arch/arm/mach-msm/reset_modem.ko
LD [M] crypto/ansi_cprng.ko
LD [M] drivers/crypto/msm/qce40.ko
LD [M] drivers/crypto/msm/qcedev.ko
LD [M] drivers/crypto/msm/qcrypto.ko
LD [M] drivers/input/evbug.ko
LD [M] drivers/media/video/gspca/gspca_main.ko
LD [M] drivers/net/wireless/bcmdhd/dhd.ko
CC arch/arm/boot/compressed/decompress.o
LD [M] drivers/net/wireless/btlock/btlock.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
LD [M] drivers/spi/spidev.ko
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/piggy.gzip.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
/home/owner/Documents/android-wmon/core/linaro-android-toolchain/bin/arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
/home/owner/Documents/android-wmon/core/linaro-android-toolchain/bin/arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
Click to expand...
Click to collapse
I am having the same errors now but this post apparently has a fix. Trying now.
Rocket Nine said:
I am having the same errors now but this post apparently has a fix. Trying now.
Click to expand...
Click to collapse
thanks! tried that fix but getting some memcpy issue despite string.h being included... still digging!
hedpe said:
thanks! tried that fix but getting some memcpy issue despite string.h being included... still digging!
Click to expand...
Click to collapse
Try replacing your arch/arm/boot/compressed/Makefile with this http://pastebin.com/J0m6ka26
It compiles successfully now :good:
Rocket Nine said:
Try replacing your arch/arm/boot/compressed/Makefile with this http://pastebin.com/J0m6ka26
It compiles successfully now :good:
Click to expand...
Click to collapse
Thanks bud! I'm having one last error, not sure if it was an issue with your paste:
Code:
/home/owner/Documents/android-wmon/core/KT747-JB/arch/arm/boot/compressed/Makefile:112: *** missing separator. Stop.
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
Here is the relevant part of the Makefile:
Code:
$(addprefix $(obj)/,$(libfdt) $(libfdt_hdrs)): $(obj)/%: $(srctree)/scripts/dtc/libfdt/%
$(call cmd,shipped) <----- this is line 112
The odd thing is that this exists in the original Makefile unmodified
----
EDIT: Sorry! I got this working now, it was an issue with tabs/spaces from copying and pasting
I believe that is caused by wrong indentation. Did you copy the code from the webpage? My browser (Chrome) copies the tabs as spaces. Try downloading the paste and flat out replace the file with it.
I copied the META-INF folder out of a KT747 zip to my build and according to TWRP it flashes successfully. Now we are on the same page with the boot loop.
Rocket Nine said:
I believe that is caused by wrong indentation. Did you copy the code from the webpage? My browser (Chrome) copies the tabs as spaces. Try downloading the paste and flat out replace the file with it.
I copied the META-INF folder out of a KT747 zip to my build and according to TWRP it flashes successfully. Now we are on the same page with the boot loop.
Click to expand...
Click to collapse
Thanks a bunch! I got it to build successfully.
I'm officially dumbfounded. I no longer get the bootloop in either one of my kernels (stock CM10 or the KT747 rebuild), but in both cases my phone boots without the display working. I have NO clue why my display doesn't work when I rebuild these kernels.
Let me help you get your bootloop fixed though first... then I'm curious if your screen will work.
I think what was causing my bootloop was a lack of this parameter when using mkbootfs:
Code:
--ramdiskaddr 0x81500000
However, if you're using ktoosez script, that should already be included. Also, make sure to clear your cache, dalvik, and fix permissions.
also, come to #cyanogenmod on irc.freenode.net, we might be able to work through this more quickly there
finalllyyyyy i have a display working! Apparently I was using too old of a version of userspace that did not match with my kernel. So my nightly was too old with the kernel rebuilds I was using. Let me know if you still have issues.

Why this error happens?{Kernel building}

Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
I am having this problem too where you able to solve it?
borillion_star said:
I am having this problem too where you able to solve it?
Click to expand...
Click to collapse
it is still unsolved
suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
You solve it ?

[Q] android kernel compiling error

hello
i try to compiler android kernel source code for samsung note 2
my host is ubuntu 13.04 and i use toolchains 4.8
i choice a defconfig from arch/arm/configs
when i compile the kernel using
make -j4 ARCH=arm CROSS_COMPILE=/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
i get this error:
linux-androideabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from arch/arm/kernel/asm-offsets.c:16:0:
/home/naimk/lab/note2/kernel/arch/arm/include/asm/cacheflush.h:19:22: fatal error: mach/smc.h: No such file or directory
#include <mach/smc.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
and for other kernel source like samsung ace GT-S5830i
i get this error :
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/modpost.o
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/conmakehash
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/genksyms/parse.o
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CC init/do_mounts.o
CC init/main.o
UPD include/generated/compile.h
CC init/do_mounts_rd.o
HOSTCC usr/gen_init_cpio
In file included from include/linux/nfs_fs.h:41:0,
from init/do_mounts.c:20:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_rd.c:12:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
In file included from include/linux/mempolicy.h:70:0,
from init/main.c:51:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/compat.o
CC init/do_mounts_md.o
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_initrd.c:11:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC init/initramfs.o
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_md.c:5:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC init/calibrate.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
arch/arm/mm/dma-mapping.c: In function '__dma_alloc':
arch/arm/mm/dma-mapping.c:215:25: warning: array subscript is above array bounds [-Warray-bounds]
pte = consistent_pte[++idx];
^
CC init/version.o
arch/arm/mm/dma-mapping.c: In function 'dma_free_coherent':
arch/arm/mm/dma-mapping.c:259:25: warning: array subscript is above array bounds [-Warray-bounds]
ptep = consistent_pte[++idx];
^
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/fault.o
CC arch/arm/kernel/return_address.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/common/vic.o
arch/arm/kernel/signal.c: In function 'restore_sigframe':
arch/arm/kernel/signal.c:278:30: warning: variable 'aux' set but not used [-Wunused-but-set-variable]
struct aux_sigframe __user *aux;
^
CC arch/arm/common/icst.o
CC arch/arm/common/clkdev.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
LD arch/arm/common/built-in.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/mach-versatile/core.o
In file included from arch/arm/mm/fault-armv.c:18:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC arch/arm/kernel/stacktrace.o
CC arch/arm/mm/flush.o
In file included from arch/arm/mm/flush.c:12:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC arch/arm/mm/ioremap.o
CC arch/arm/kernel/time.o
CC arch/arm/mm/mmap.o
CC arch/arm/kernel/traps.o
CC arch/arm/mach-versatile/versatile_pb.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/plat-versatile/clock.o
CC arch/arm/mach-versatile/pci.o
CC arch/arm/plat-versatile/timer-sp.o
/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/plat-versatile/sched-clock.o
CC arch/arm/mm/vmregion.o
LD arch/arm/plat-versatile/built-in.o
CC arch/arm/mm/proc-syms.o
LD arch/arm/mach-versatile/built-in.o
CC arch/arm/mm/alignment.o
AS arch/arm/mm/abort-ev5tj.o
AS arch/arm/mm/pabort-legacy.o
CC arch/arm/mm/copypage-v4wb.o
AS arch/arm/mm/tlb-v4wbi.o
AS arch/arm/mm/proc-arm926.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized]
offset.un = -offset.un;
^
arch/arm/mm/alignment.c:720:21: note: 'offset.un' was declared here
union offset_union offset;
^
LD arch/arm/mm/built-in.o
/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
make[1]: *** [arch/arm/mm/built-in.o] Error 1
make: *** [arch/arm/mm] Error 2
please if you can help me

[Q] Kernel Compilation Error for HTC One m8

Im trying to compile a kernel in kali linux using the slimrom kernel source code provided for the htc one m8. I have tried numerous times to solve this error and it is driving me nuts Any help would be greatly appreciated. What could I possibly do to rectify this problem? Im using the latest slim for the htc one m8 with android 4.4.4. Im also using the arm-eabi-4.7 cross compiler.
Kali Linux 64 bit ISO version 1.0.8
Any more information that I might need to give out to assist in finding a solution?
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `video_open':
/root/Kernel/drivers/media/radio/radio-iris.c:5069: undefined reference to `hci_fm_smd_register'
drivers/built-in.o: In function `iris_remove':
/root/Kernel/drivers/media/radio/radio-iris.c:5226: undefined reference to `hci_fm_smd_deregister'
make: *** [.tmp_vmlinux1] Error 1
Click to expand...
Click to collapse

Categories

Resources