[Q] Error compilling cyanogenmod 10 - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

I'm trying to compile cyanogenmod 10.2 from sources for samsung janice (i9070) but i edited files to match my device (Samsung gavini (I8530))
I write here, because my device isn't so popular, but it is very similar to S Advance.
When i try to compile CYanogenmod everything goes well untill it starts to compile kernel. At one moment it stopps with this error:
Code:
ARCH=arm CROSS_COMPILE=" /home/denisrus/Documents/CYANOGENMOD/i9070/prebuilt/linux-x86/toolchain/arm-eabi-4.6/bin/arm-eabi-"
...
In file included from /home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:16:0:
...
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: error: unknown field 'atchcalst' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:747:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: error: unknown field 'atchcalsthr' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:748:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: error: unknown field 'tchthr_batt' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:749:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: error: unknown field 'tchthr_charging' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:750:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: error: unknown field 'tchthr_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:751:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: error: unknown field 'tchthr_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:752:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: error: unknown field 'calcfg_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:753:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: error: unknown field 'calcfg_charging_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:754:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: error: unknown field 'atchfrccalthr_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:755:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: error: unknown field 'atchfrccalratio_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:756:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: error: unknown field 't48_config_batt_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:757:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: error: unknown field 't48_config_chrg_e' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:758:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: error: unknown field 'power_con' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:759:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: error: unknown field 'read_ta_status' specified in initializer
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: excess elements in struct initializer [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:761:2: warning: (near initialization for 'mxt224_data') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1002:3: error: (near initialization for 'gavini_r0_1_gpio_i2c5_devices[0].irq')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: 'NMK_GPIO_ALT_A' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: 'NMK_GPIO_PULL_UP' undeclared here (not in a function)
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1955:2: error: (near initialization for 'mop500_pins_uart0[0]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1956:2: error: (near initialization for 'mop500_pins_uart0[1]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:20: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1957:2: error: (near initialization for 'mop500_pins_uart0[2]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:1: error: invalid operands to binary << (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: invalid operands to binary | (have 'int' and 'struct i2c_board_info *')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:18: error: invalid operands to binary | (have 'struct i2c_board_info *' and 'int')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: initializer element is not constant
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1958:2: error: (near initialization for 'mop500_pins_uart0[3]')
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: initialization from incompatible pointer type [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2015:2: warning: (near initialization for 'uart0_plat.amba_pl011_wake_peer') [enabled by default]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: In function 'gavini_init_machine':
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2342:2: error: implicit declaration of function 'nmk_gpio_clocks_enable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2382:2: error: implicit declaration of function 'mms136_ts_init' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:2383:2: error: implicit declaration of function 'nmk_gpio_clocks_disable' [-Werror=implicit-function-declaration]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c: At top level:
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:190:37: warning: 'mpu_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:517:13: warning: 'tsu6111_reset' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:582:13: warning: 'mxt224_register_callback' defined but not used [-Wunused-function]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:734:36: warning: 'mxt224_data' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:999:41: warning: 'gavini_r0_1_gpio_i2c5_devices' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1949:31: warning: 'sec_device_rfkill' defined but not used [-Wunused-variable]
/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500/arch/arm/mach-ux500/board-gavini.c:1999:13: warning: 'bt_wake_peer' defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-ux500/board-gavini.o] Error 1
make[2]: *** [arch/arm/mach-ux500] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/denisrus/Documents/CYANOGENMOD/i9070/kernel/samsung/u8500'
make: *** [TARGET_KERNEL_BINARIES] Error 2

Interesting. Finally we found someone who has a gavini. I'll take a look at the error tomorrow
Inviato dal mio GT-I9070 utilizzando Tapatalk

I don't have much experience in compiling cyanogenmod roms, i only know how to compile kernels... All the time, i've compiled kernels from stock sources, i've never seen such errors, but how to solve this, I don't know. So if you know solution or have some recommendations, i'm ready to try them. So if it is possible, look at this error when you have time.

Did you try another toolchain to build?
Sent from my GT-I9505 using xda app-developers app

Yes. As i remember, i tried Code Sourcery toolchain and Google toolchain. May be i just made something wrong with files? If i put cyanogenmod config and ramdisk to stock kernel source files, will it be possible to compile it? And i'm not sure that platform is compiling correctly, because it has some differents from janice, i'v tried to modify files to match my board, but i'm not sure it works.
If you have some ideas, i can try them.
If you need some more information about files that i'm using or PC configuration, i can write everything that you need.
------
Sorry for bad English, it's not my native language.

Related

Error Compiling Wlan.ko for kernel 2.6.32.9

Hi i was compiling wlan.ko for the kernel 2.6.32.9. Its gives following error:
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'setup_netif':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:766: error: 'struct net_device' has no member named 'open'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:767: error: 'struct net_device' has no member named 'stop'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:768: error: 'struct net_device' has no member named 'hard_start_xmit'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:769: error: 'struct net_device' has no member named 'get_stats'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'tiwlan_init_drv':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:1415: error: 'struct net_device' has no member named 'hard_start_xmit'
make[2]: *** [/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.o] Error 1
make[1]: *** [_module_/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32] Error 2
make[1]: Leaving directory `/home/peshal/kernel/msm'
Any help is greatly appreciated.. Thanx
peshal said:
Hi i was compiling wlan.ko for the kernel 2.6.32.9. Its gives following error:
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'setup_netif':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:766: error: 'struct net_device' has no member named 'open'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:767: error: 'struct net_device' has no member named 'stop'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:768: error: 'struct net_device' has no member named 'hard_start_xmit'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:769: error: 'struct net_device' has no member named 'get_stats'
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c: In function 'tiwlan_init_drv':
/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.c:1415: error: 'struct net_device' has no member named 'hard_start_xmit'
make[2]: *** [/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32/./pform/linux/src/esta_drv.o] Error 1
make[1]: *** [_module_/home/peshal/aosp/system/wlan/ti/sta_dk_4_0_4_32] Error 2
make[1]: Leaving directory `/home/peshal/kernel/msm'
Any help is greatly appreciated.. Thanx
Click to expand...
Click to collapse
i have the same problem

Stock Kernel with Voodoo Sound, No USB Functions, Available if Demand

Kernel Compiled and working: see http://forum.xda-developers.com/showthread.php?t=1833136
I tried to compile the new 3.1 kernel with voodoo sound in it. I specifically copied and replaced
Kconfig.voodoo
Makefile
wm8994_p3
wm8994_samsung.c
wm8994_voodoo.c
wm8994_voodoo.h
in the directory (source root)/sound/soc/codecs with the ones found in the pershoot git. I also swapped the file (source root)/sound/soc/Kconfig and commented out the line "#source "sound/soc/s3c24xx/Kconfig". When I tried to compile it, I get these compile errors
Code:
CC sound/soc/codecs/wm8994_samsung.o
sound/soc/codecs/wm8994_samsung.c: In function 'wm899x_outpga_put_volsw_vu':
sound/soc/codecs/wm8994_samsung.c:247:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voip_call':
sound/soc/codecs/wm8994_samsung.c:320:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voip_call':
sound/soc/codecs/wm8994_samsung.c:331:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_loopback_path':
sound/soc/codecs/wm8994_samsung.c:343:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_loopback_path':
sound/soc/codecs/wm8994_samsung.c:354:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:356:6: warning: unused variable 'val'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:400:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_codec_tuning':
sound/soc/codecs/wm8994_samsung.c:412:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_mic_path':
sound/soc/codecs/wm8994_samsung.c:427:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_mic_path':
sound/soc/codecs/wm8994_samsung.c:438:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_path':
sound/soc/codecs/wm8994_samsung.c:479:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_path':
sound/soc/codecs/wm8994_samsung.c:490:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_voice_path':
sound/soc/codecs/wm8994_samsung.c:576:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_voice_path':
sound/soc/codecs/wm8994_samsung.c:587:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_get_input_source':
sound/soc/codecs/wm8994_samsung.c:642:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_input_source':
sound/soc/codecs/wm8994_samsung.c:653:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_headset_analog_vol':
sound/soc/codecs/wm8994_samsung.c:676:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:722:43: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:735:6: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:736:34: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:676:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_controls':
sound/soc/codecs/wm8994_samsung.c:848:13: error: too few arguments to function 'snd_soc_cnew'
include/sound/soc.h:366:22: note: declared here
sound/soc/codecs/wm8994_samsung.c:848:13: warning: passing argument 1 of 'snd_ctl_add' from incompatible pointer type
include/sound/control.h:114:5: note: expected 'struct snd_card *' but argument is of type 'struct snd_soc_card *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_add_widgets':
sound/soc/codecs/wm8994_samsung.c:863:4: warning: passing argument 1 of 'snd_soc_dapm_new_controls' from incompatible pointer type
include/sound/soc-dapm.h:348:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:865:44: warning: passing argument 1 of 'snd_soc_dapm_add_routes' from incompatible pointer type
include/sound/soc-dapm.h:355:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c:867:2: warning: passing argument 1 of 'snd_soc_dapm_new_widgets' from incompatible pointer type
include/sound/soc-dapm.h:353:5: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_codec *'
sound/soc/codecs/wm8994_samsung.c: In function 'configure_clock':
sound/soc/codecs/wm8994_samsung.c:873:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_bias_level':
sound/soc/codecs/wm8994_samsung.c:1050:12: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c:1090:7: error: 'struct snd_soc_codec' has no member named 'bias_level'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_sysclk':
sound/soc/codecs/wm8994_samsung.c:1099:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_set_dai_fmt':
sound/soc/codecs/wm8994_samsung.c:1123:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_hw_params':
sound/soc/codecs/wm8994_samsung.c:1225:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_startup':
sound/soc/codecs/wm8994_samsung.c:1385:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1410:13: error: static declaration of 'wm8994_shutdown' follows non-static declaration
sound/soc/codecs/wm8994_samsung.h:249:6: note: previous declaration of 'wm8994_shutdown' was here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_shutdown':
sound/soc/codecs/wm8994_samsung.c:1414:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1522:2: error: unknown field 'playback' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1522:2: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1523:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1523:8: warning: initialization makes integer from pointer without a cast
sound/soc/codecs/wm8994_samsung.c:1524:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1524:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1525:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1526:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: error: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1527:8: warning: (near initialization for 'wm8994_dai.id')
sound/soc/codecs/wm8994_samsung.c:1529:2: error: unknown field 'capture' specified in initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: braces around scalar initializer
sound/soc/codecs/wm8994_samsung.c:1529:2: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1530:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1530:7: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:1531:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1531:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1532:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1533:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: error: field name not in record or union initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: error: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: excess elements in scalar initializer
sound/soc/codecs/wm8994_samsung.c:1534:7: warning: (near initialization for 'wm8994_dai.dev')
sound/soc/codecs/wm8994_samsung.c:1537:2: error: unknown field 'ops' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3164:5: warning: function declaration isn't a prototype
sound/soc/codecs/wm8994_samsung.c: In function 'Is_call_active':
sound/soc/codecs/wm8994_samsung.c:3168:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_init':
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3209:2: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_i2c_probe':
sound/soc/codecs/wm8994_samsung.c:3263:45: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3275:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3326:7: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_probe':
sound/soc/codecs/wm8994_samsung.c:3390:16: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3392:23: error: 'struct snd_soc_codec' has no member named 'dapm_widgets'
sound/soc/codecs/wm8994_samsung.c:3393:23: error: 'struct snd_soc_codec' has no member named 'dapm_paths'
sound/soc/codecs/wm8994_samsung.c:3395:7: error: 'struct snd_soc_codec' has no member named 'owner'
sound/soc/codecs/wm8994_samsung.c:3398:27: warning: assignment from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3399:7: error: 'struct snd_soc_codec' has no member named 'reg_cache_size'
sound/soc/codecs/wm8994_samsung.c:3400:7: error: 'struct snd_soc_codec' has no member named 'set_bias_level'
sound/soc/codecs/wm8994_samsung.c:3401:7: error: 'struct snd_soc_codec' has no member named 'dai'
sound/soc/codecs/wm8994_samsung.c:3403:8: error: dereferencing pointer to incomplete type
sound/soc/codecs/wm8994_samsung.c:3406:2: error: implicit declaration of function 'snd_soc_new_pcms'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_remove':
sound/soc/codecs/wm8994_samsung.c:3426:2: error: implicit declaration of function 'snd_soc_free_pcms'
sound/soc/codecs/wm8994_samsung.c:3427:2: warning: passing argument 1 of 'snd_soc_dapm_free' from incompatible pointer type
include/sound/soc-dapm.h:354:6: note: expected 'struct snd_soc_dapm_context *' but argument is of type 'struct snd_soc_device *'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_reset_analog_vol_work':
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: type defaults to 'int' in declaration of '__mptr'
sound/soc/codecs/wm8994_samsung.c:3442:3: warning: initialization from incompatible pointer type
sound/soc/codecs/wm8994_samsung.c:3442:3: error: 'struct snd_soc_codec' has no member named 'delayed_work'
sound/soc/codecs/wm8994_samsung.c:3443:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c:3443:22: warning: unused variable 'wm8994'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_suspend':
sound/soc/codecs/wm8994_samsung.c:3466:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_resume':
sound/soc/codecs/wm8994_samsung.c:3489:36: error: 'struct snd_soc_codec' has no member named 'drvdata'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:3508:8: error: variable 'soc_codec_dev_wm8994' has initializer but incomplete type
sound/soc/codecs/wm8994_samsung.c:3509:2: error: unknown field 'probe' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3509:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3510:2: error: unknown field 'remove' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3510:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3512:2: error: unknown field 'suspend' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3512:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c:3513:2: error: unknown field 'resume' specified in initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: excess elements in struct initializer
sound/soc/codecs/wm8994_samsung.c:3513:2: warning: (near initialization for 'soc_codec_dev_wm8994')
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_modinit':
sound/soc/codecs/wm8994_samsung.c:3520:2: warning: passing argument 1 of 'snd_soc_register_dai' from incompatible pointer type
include/sound/soc-dai.h:97:5: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c:3520:2: error: too few arguments to function 'snd_soc_register_dai'
include/sound/soc-dai.h:97:5: note: declared here
sound/soc/codecs/wm8994_samsung.c: In function 'wm8994_exit':
sound/soc/codecs/wm8994_samsung.c:3531:2: warning: passing argument 1 of 'snd_soc_unregister_dai' from incompatible pointer type
include/sound/soc-dai.h:99:6: note: expected 'struct device *' but argument is of type 'struct snd_soc_dai *'
sound/soc/codecs/wm8994_samsung.c: At top level:
sound/soc/codecs/wm8994_samsung.c:1034:12: warning: 'wm8994_set_bias_level' defined but not used
sound/soc/codecs/wm8994_samsung.c:1354:12: warning: 'wm8994_digital_mute' defined but not used
make[3]: *** [sound/soc/codecs/wm8994_samsung.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
[[email protected] p75102]$
Any ideas? Also, under menuconfig I enabled p3 sound and disabled p4 sound to get the voodoo option.
Wish I could help you out. I just wanted to bump this up. I miss my voodoo sound. Good Luck.
From what I could gather from looking at the sources, you could try replacing all the "codec->drvdata" lines with "snd_soc_codec_get_drvdata(codec)" and "&codec->delayed_work" with "&wm8994->delayed_work" and so on.
EDIT: Comparing the files even more, it might be enough to just add in the few lines with Voodoo in to the source. I've added a file where I've done that so you can try with it but I wont give any guarantees that it will work with just that. To be honest, it sounds too simple for it to work with just those changes.
CazeW said:
From what I could gather from looking at the sources, you could try replacing all the "codec->drvdata" lines with "snd_soc_codec_get_drvdata(codec)" and "&codec->delayed_work" with "&wm8994->delayed_work" and so on.
EDIT: Comparing the files even more, it might be enough to just add in the few lines with Voodoo in to the source. I've added a file where I've done that so you can try with it but I wont give any guarantees that it will work with just that. To be honest, it sounds too simple for it to work with just those changes.
Click to expand...
Click to collapse
Thanks for that. I managed to get voodoo sound compiled in but for some reason the wifi doesn't work anymore and neither does adb. I did try the voodoo control app and it worked just fine. Any suggestions for why wifi suddenly died out? I am looking at pershoot's git config but I can't find anything markedly different.(I attached mine) Also, in the about section my kernel string info didn't appear. It said something along the lines of error retrieving string. (Note my tablet is not running the voodoo sound kernel right now since it would have no wifi and no adb which makes it kinda useless).
I got the wifi with voodoo sound working. However, adb/mtp usb functions still do not work. When I try to compile the so called "fsl_usb" "fsl_tegra" thingy I get the following error messages:
Code:
drivers/usb/gadget/fsl_tegra_udc.c:113:6: warning: function declaration isn't a prototype
LD [M] drivers/usb/gadget/fsl_usb2_udc.o
Building modules, stage 2.
MODPOST 4 modules
ERROR: "tegra_usb_phy_close" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_charger_detect" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_memory_prefetch_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_power_on" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_open" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_memory_prefetch_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
ERROR: "tegra_usb_phy_power_off" [drivers/usb/gadget/fsl_usb2_udc.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
I am really at quite a loss as for how to correct source code errors. I am by no means a kernel developer by even the most lenient definitions. Just an enthusiast who wants to compile in voodoo sound while waiting for cm9 with a bit of know how. If I compile with the fsl_tegra/usb thingy as built in and not a module I get no errors but it still doesn't work. I attached a logcat from the tablet showing some kind of usb file error.
This issue has been fixed. See first post for working link.

[HELP] Tmobile Theme Chooser Compiler Failure after Initial Sync

Code:
[email protected]:~/roms/themes$ source build/envsetup.sh
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including vendor/tmobile/vendorsetup.sh
including vendor/tmobile/products/themes/productsetup.sh
[email protected]:~/roms/themes$ lunch themes_generic-eng hdpi
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=themes_generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRH78
============================================
[email protected]Android2:~/roms/themes$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=themes_generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRH78
============================================
Checking build tools versions...
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
diff: out/target/product/generic/obj/PACKAGING/updater_extensions_intermediates/register.inc.list: No such file or directory
host Java: apicheck (out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/classes)
Header: out/host/linux-x86/obj/include/libexpat/expat.h
Header: out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: out/target/product/generic/obj/include/libexpat/expat.h
Header: out/target/product/generic/obj/include/libexpat/expat_external.h
Header: out/host/linux-x86/obj/include/libpng/png.h
Header: out/host/linux-x86/obj/include/libpng/pngconf.h
Header: out/host/linux-x86/obj/include/libpng/pngusr.h
Header: out/target/product/generic/obj/include/libpng/png.h
Header: out/target/product/generic/obj/include/libpng/pngconf.h
Header: out/target/product/generic/obj/include/libpng/pngusr.h
Header: out/target/product/generic/obj/include/libwpa_client/wpa_ctrl.h
Header: out/target/product/generic/obj/include/libsonivox/eas.h
Header: out/target/product/generic/obj/include/libsonivox/eas_types.h
Header: out/target/product/generic/obj/include/libsonivox/eas_reverb.h
Header: out/target/product/generic/obj/include/libsonivox/jet.h
Header: out/target/product/generic/obj/include/libsonivox/ARM_synth_constants_gnu.inc
host C: acp <= build/tools/acp/acp.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libhost <= build/libs/host/pseudolocalize.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libhost <= build/libs/host/CopyFile.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
echo out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o | xargs ar crsP out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
true
Install: out/host/linux-x86/bin/acp
Install: out/host/linux-x86/framework/apicheck.jar
host Java: clearsilver (out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/classes)
Install: out/host/linux-x86/framework/clearsilver.jar
host Java: droiddoc (out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/droiddoc.jar
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_cs.c
host C: libneo_util <= external/clearsilver/util/neo_err.c
host C: libneo_util <= external/clearsilver/util/neo_files.c
host C: libneo_util <= external/clearsilver/util/neo_misc.c
host C: libneo_util <= external/clearsilver/util/neo_rand.c
host C: libneo_util <= external/clearsilver/util/ulist.c
host C: libneo_util <= external/clearsilver/util/neo_hdf.c
host C: libneo_util <= external/clearsilver/util/neo_str.c
host C: libneo_util <= external/clearsilver/util/neo_date.c
host C: libneo_util <= external/clearsilver/util/wildmat.c
host C: libneo_util <= external/clearsilver/util/ulocks.c
host C: libneo_util <= external/clearsilver/util/neo_hash.c
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)
host C: libneo_cs <= external/clearsilver/cs/csparse.c
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c
host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
host C: libneo_cgi <= external/clearsilver/cgi/html.c
host C: libneo_cgi <= external/clearsilver/cgi/date.c
host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
host SharedLib: libclearsilver-jni (out/host/linux-x86/obj/lib/libclearsilver-jni.so)
Install: out/host/linux-x86/lib/libneo_util.so
Install: out/host/linux-x86/lib/libneo_cs.so
Install: out/host/linux-x86/lib/libneo_cgi.so
Install: out/host/linux-x86/lib/libclearsilver-jni.so
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.jar
host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/dx.jar
Copy: dx (out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx)
Install: out/host/linux-x86/bin/dx
target Dex: core
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/noproguard.classes.dex
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Command.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Main.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Package.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/StringPool.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
frameworks/base/tools/aapt/StringPool.cpp: In function ‘void printStringPool(const android::ResStringPool*)’:
frameworks/base/tools/aapt/StringPool.cpp:33:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/XMLNode.h:10,
from frameworks/base/tools/aapt/XMLNode.cpp:7:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/ResourceTable.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/ResourceTable.h:10,
from frameworks/base/tools/aapt/ResourceTable.cpp:8:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Images.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/StringPool.h:10,
from frameworks/base/tools/aapt/ResourceTable.h:10,
from frameworks/base/tools/aapt/Images.h:10,
from frameworks/base/tools/aapt/Images.cpp:9:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: aapt <= frameworks/base/tools/aapt/Resource.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/AaptAssets.h:18:0,
from frameworks/base/tools/aapt/Main.h:14,
from frameworks/base/tools/aapt/Resource.cpp:6:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
frameworks/base/tools/aapt/Resource.cpp: In function ‘bool applyFileOverlay(Bundle*, const android::sp<AaptAssets>&, android::sp<ResourceTypeSet>*, const char*)’:
frameworks/base/tools/aapt/Resource.cpp:546:75: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
frameworks/base/tools/aapt/Resource.cpp:550:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
frameworks/base/tools/aapt/Resource.cpp:566:98: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t {aka unsigned int}’ [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/SourcePos.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: aapt <= frameworks/base/tools/aapt/ZipEntry.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: aapt <= frameworks/base/tools/aapt/ZipFile.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from frameworks/base/tools/aapt/ZipFile.cpp:26:0:
frameworks/base/tools/aapt/ZipFile.h:65:5: warning: ‘typedef’ was ignored in this declaration [enabled by default]
host C++: libutils <= frameworks/base/libs/utils/Asset.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/AssetDir.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/AssetManager.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/BufferedTextOutput.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/CallStack.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/Debug.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/FileMap.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/Flattenable.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/ObbFile.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/Pool.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: libutils <= frameworks/base/libs/utils/PackageRedirectionMap.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
frameworks/base/libs/utils/PackageRedirectionMap.cpp: In member function ‘uint32_t android::PackageRedirectionMap::lookupRedirection(uint32_t)’:
frameworks/base/libs/utils/PackageRedirectionMap.cpp:121:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
frameworks/base/libs/utils/PackageRedirectionMap.cpp:129:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C++: libutils <= frameworks/base/libs/utils/RefBase.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’:
frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/RefBase.o] Error 1
[email protected]:~/roms/themes$
Try this:
http://bicosyes.com/building-android-error-passing-const-androidrefbaseweakref_impl/
Code:
(cd out/target/product/generic/system/usr/srec/config/en.us/grammars; rm -f phone_type_choice.Grev2.det.txt phone_type_choice.map phone_type_choice.omap phone_type_choice.P.txt phone_type_choice.params phone_type_choice.PCLG.txt phone_type_choice.script)
target Prebuilt: (out/target/product/generic/system/bin/monkey)
target Prebuilt: (out/target/product/generic/system/usr/share/bmd/RFFspeed_501.bmd)
target Prebuilt: (out/target/product/generic/system/usr/share/bmd/RFFstd_501.bmd)
host C: adb <= system/core/adb/adb.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/adb/adb.c: In function ‘connect_device’:
system/core/adb/adb.c:988:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: adb <= system/core/adb/console.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport_local.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/transport_usb.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/commandline.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/adb_client.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/sockets.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/services.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/file_sync_client.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/get_my_path_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/usb_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/utils.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: adb <= system/core/adb/usb_vendors.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/adb/usb_vendors.c: In function ‘build_path’:
system/core/adb/usb_vendors.c:175:74: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: adb <= system/core/adb/fdevent.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] Error 1
Code:
sudo apt-get install lib32ncurses5-dev
Code:
sudo apt-get install libncurses5-dev
Maybe U have to reboot after installing this.
icke said:
Code:
sudo apt-get install lib32ncurses5-dev
Code:
sudo apt-get install libncurses5-dev
Maybe U have to reboot after installing this.
Click to expand...
Click to collapse
This is linux :highfive:
khuongkk said:
This is linux :highfive:
Click to expand...
Click to collapse
Kubuntu 12.04.1 to be exact
I get a ton of errors stating _FORTIFY_SOURCE
Code:
true
Install: out/host/linux-x86/bin/mkyaffs2image
host Prebuilt: monkeyrunner (out/host/linux-x86/obj/EXECUTABLES/monkeyrunner_intermediates/monkeyrunner)
Install: out/host/linux-x86/bin/monkeyrunner
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
[email protected]:~/roms/themes$
full error
http://paste.kde.org/563048/
raziel23x said:
full error
http://paste.kde.org/563048/
Click to expand...
Click to collapse
How about googling, binging, yahooing...whatever...your errors! Was trying to help u and your answers was just giving me some error codes!
Should i chew how to use ubuntu?!

[Q] Problem about build LEWA code

target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bash_logout)
bootable/recovery/extendedcommands.c: In function 'choose_file_menu':
bootable/recovery/extendedcommands.c:288: warning: passing argument 1 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'const char **'
bootable/recovery/extendedcommands.c: In function 'show_choose_zip_menu':
bootable/recovery/extendedcommands.c:327: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_restore_menu':
bootable/recovery/extendedcommands.c:351: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_mount_usb_storage_menu':
bootable/recovery/extendedcommands.c:369: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:376: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:396: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c:403: warning: 'return' with a value, in function returning void
bootable/recovery/extendedcommands.c: In function 'confirm_selection':
bootable/recovery/extendedcommands.c:413: warning: initialization discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c: In function 'format_device':
bootable/recovery/extendedcommands.c:450: warning: implicit declaration of function 'format_rfs_device'
bootable/recovery/extendedcommands.c:495: warning: implicit declaration of function 'reset_ext4fs_info'
bootable/recovery/extendedcommands.c:496: warning: implicit declaration of function 'make_ext4fs'
target Prebuilt: system_etcdir (out/target/product/shakira/system/etc/bash/bashrc)
bootable/recovery/extendedcommands.c: In function 'format_unknown_device':
bootable/recovery/extendedcommands.c:534: warning: implicit declaration of function 'format_ext3_device'
bootable/recovery/extendedcommands.c:543: warning: implicit declaration of function 'format_ext2_device'
bootable/recovery/extendedcommands.c: In function 'show_partition_menu':
bootable/recovery/extendedcommands.c:636: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:637: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:640: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:641: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:646: warning: passing argument 1 of 'is_safe_to_format' discards qualifiers from pointer target type
bootable/recovery/extendedcommands.c:585: note: expected 'char *' but argument is of type 'const char *'
bootable/recovery/extendedcommands.c:648: warning: passing argument 1 of 'sprintf' from incompatible pointer type
bionic/libc/include/stdio.h:265: note: expected 'char *' but argument is of type 'char (*)[255]'
bootable/recovery/extendedcommands.c:666: warning: implicit declaration of function 'is_path_mounted'
bootable/recovery/extendedcommands.c:682: warning: passing argument 2 of 'get_menu_selection' from incompatible pointer type
bootable/recovery/recovery_ui.h:86: note: expected 'char **' but argument is of type 'char * (*)[255]'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_advanced_restore_menu':
bootable/recovery/extendedcommands.c:745: warning: passing argument 3 of 'choose_file_menu' from incompatible pointer type
bootable/recovery/extendedcommands.c:250: note: expected 'const char **' but argument is of type 'char **'
bootable/recovery/extendedcommands.c: In function 'show_nandroid_menu':
bootable/recovery/extendedcommands.c:831: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c:855: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
bootable/recovery/extendedcommands.c: In function 'show_advanced_menu':
bootable/recovery/extendedcommands.c:992: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c:1044: warning: assignment makes integer from pointer without a cast
bootable/recovery/extendedcommands.c: In function 'process_volumes':
bootable/recovery/extendedcommands.c:1155: warning: format '%d' expects type 'int', but argument 3 has type 'time_t *'
make: *** [out/target/product/shakira/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] 错误 1
make: *** 正在等待未完成的任务....
who can help me how to do ?
Thank you very much !!!
i am sorry for my bad English
Delete the out folder..try to build again
Sent by Vince™
Vınce said:
Delete the out folder..try to build again
Sent by Vince™
Click to expand...
Click to collapse
OK,i will try ~~ thank you ~!!

[Q] build errors

Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
golcheck said:
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
crt60 said:
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
Click to expand...
Click to collapse
It was actually my fault. Was building with Java 7. Switched back to Java 6 and all good now. Thanks anyway
Build issues with openjdk-6-jdk_6b30
Hi,
just wanted to mention that I got the very same issue, introduced by a system update which also did update the jdk to 6b30. Took me some time to figure out that this was the actual issue, and it could only be resolved by switching back to 6b27 (which I had installed before)
Just in case someone comes across the same issue on Ubuntu precise, go back instantly and don't lose that much time as I did looking for the root cause somewhere else.
Interestingly, the newer raring, swarty releases are still on 6b27

Categories

Resources