天嵌 ARM开发社区

 找回密码
 注册
查看: 3056|回复: 9

TQ335X 安卓4.0编译不通过问题

[复制链接]
woshiqyp 发表于 2017-9-27 19:11:43 | 显示全部楼层 |阅读模式
用淘宝上下的TQ3358的包进行安卓4.0的编译,在进行到./buuild_android.sh的时候编译不通过,错误内容如下



尝试make update-api后错误如下


请问怎么解决》

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
support_Lsy 发表于 2017-9-28 15:59:37 | 显示全部楼层
请详细说明TQ335X型号,如:TQ335X_COREB_V1
 楼主| woshiqyp 发表于 2017-9-28 16:51:12 | 显示全部楼层
support_Lsy 发表于 2017-9-28 15:59
请详细说明TQ335X型号,如:TQ335X_COREB_V1

因为实际板子还没到手,买的是TQ335X_COREC_V2
support_lyl 发表于 2017-9-29 08:53:30 | 显示全部楼层
woshiqyp 发表于 2017-9-28 16:51
因为实际板子还没到手,买的是TQ335X_COREC_V2

你看下报错的是哪个java文件,在类名前加个/*@hide**/试下
 楼主| woshiqyp 发表于 2017-10-9 17:21:59 | 显示全部楼层
support_lyl 发表于 2017-9-29 08:53
你看下报错的是哪个java文件,在类名前加个/*@hide**/试下

我尝试按论坛老帖子里的方法进行编译,参考的帖子是这个:
http://www.armbbs.net/forum.php? ... p;extra=&page=1
把build_android.sh改成这样
同时将SWAP空间增加到6G,但是编译还是不通过,错误内容如下:

include/linux/sched.h:452: error: expected specifier-qualifier-list before 'cputime_t'
include/linux/sched.h:457: error: expected specifier-qualifier-list before 'cputime_t'
include/linux/sched.h:475: error: expected specifier-qualifier-list before 'cputime_t'
include/linux/sched.h:595: error: expected specifier-qualifier-list before 'cputime_t'
include/linux/sched.h:1343: error: expected specifier-qualifier-list before 'cputime_t'
include/linux/sched.h:1756: error: expected declaration specifiers or '...' before 'cputime_t'
include/linux/sched.h:1756: error: expected declaration specifiers or '...' before 'cputime_t'
include/linux/sched.h:1757: error: expected declaration specifiers or '...' before 'cputime_t'
include/linux/sched.h:1757: error: expected declaration specifiers or '...' before 'cputime_t'
include/linux/sched.h: In function 'set_cpus_allowed_ptr':
include/linux/sched.h:1893: error: 'EINVAL' undeclared (first use in this function)
include/linux/sched.h: At top level:
include/linux/sched.h:2155: error: expected declaration specifiers or '...' before 'siginfo_t'
include/linux/sched.h:2157: error: expected declaration specifiers or '...' before 'siginfo_t'
include/linux/sched.h: In function 'dequeue_signal_lock':
include/linux/sched.h:2162: error: 'struct task_struct' has no member named 'sighand'
include/linux/sched.h:2163: error: 'info' undeclared (first use in this function)
include/linux/sched.h:2163: error: too many arguments to function 'dequeue_signal'
include/linux/sched.h:2164: error: 'struct task_struct' has no member named 'sighand'
include/linux/sched.h: In function 'on_sig_stack':
include/linux/sched.h:2213: error: 'struct task_struct' has no member named 'sas_ss_sp'
include/linux/sched.h:2214: error: 'struct task_struct' has no member named 'sas_ss_sp'
include/linux/sched.h:2214: error: 'struct task_struct' has no member named 'sas_ss_size'
include/linux/sched.h: In function 'sas_ss_flags':
include/linux/sched.h:2220: error: 'struct task_struct' has no member named 'sas_ss_size'
include/linux/sched.h: In function 'get_nr_threads':
include/linux/sched.h:2304: error: 'struct task_struct' has no member named 'signal'
include/linux/sched.h: In function 'task_lock':
include/linux/sched.h:2355: error: 'struct task_struct' has no member named 'alloc_lock'
include/linux/sched.h: In function 'task_unlock':
include/linux/sched.h:2360: error: 'struct task_struct' has no member named 'alloc_lock'
include/linux/sched.h: In function 'unlock_task_sighand':
include/linux/sched.h:2376: error: 'struct task_struct' has no member named 'sighand'
include/linux/sched.h: In function '__fatal_signal_pending':
include/linux/sched.h:2500: error: 'struct task_struct' has no member named 'pending'
include/linux/sched.h: In function 'task_rlimit':
include/linux/sched.h:2706: error: 'const struct task_struct' has no member named 'signal'
include/linux/sched.h:2706: error: 'const struct task_struct' has no member named 'signal'
include/linux/sched.h:2706: warning: type defaults to 'int' in declaration of 'type name' [-Wimplicit-int]
include/linux/sched.h: In function 'task_rlimit_max':
include/linux/sched.h:2712: error: 'const struct task_struct' has no member named 'signal'
include/linux/sched.h:2712: error: 'const struct task_struct' has no member named 'signal'
include/linux/sched.h:2712: warning: type defaults to 'int' in declaration of 'type name' [-Wimplicit-int]
In file included from include/linux/i2c.h:35,
                 from include/linux/fb.h:5,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/of.h: In function 'of_property_read_u32_array':
include/linux/of.h:282: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h: In function 'of_property_read_string':
include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h: In function 'of_property_read_string_index':
include/linux/of.h:296: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h: In function 'of_property_count_strings':
include/linux/of.h:302: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h: In function 'of_property_read_u64':
include/linux/of.h:315: error: 'ENOSYS' undeclared (first use in this function)
include/linux/of.h: In function 'of_alias_get_id':
include/linux/of.h:327: error: 'ENOSYS' undeclared (first use in this function)
In file included from include/linux/irqnr.h:10,
                 from include/linux/interrupt.h:11,
                 from include/linux/serial_core.h:213,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/irq.h:4:23: error: mach/irqs.h: No such file or directory
In file included from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:12,
                 from include/linux/serial_core.h:213,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| woshiqyp 发表于 2017-10-9 17:22:58 | 显示全部楼层
support_lyl 发表于 2017-9-29 08:53
你看下报错的是哪个java文件,在类名前加个/*@hide**/试下



/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h: At top level:
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h:15: error: 'CONFIG_ARM_L1_CACHE_SHIFT' undeclared here (not in a function)
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h:15: error: requested alignment is not a constant
In file included from include/linux/hardirq.h:7,
                 from include/linux/interrupt.h:12,
                 from include/linux/serial_core.h:213,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h:30:5: warning: "NR_IRQS" is not defined
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h:32:7: warning: "NR_IRQS" is not defined
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/hardirq.h:43:27: warning: "NR_IRQS" is not defined
In file included from include/linux/interrupt.h:23,
                 from include/linux/serial_core.h:213,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/trace/events/irq.h: In function 'register_trace_irq_handler_entry':
include/trace/events/irq.h:37: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'unregister_trace_irq_handler_entry':
include/trace/events/irq.h:37: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'register_trace_irq_handler_exit':
include/trace/events/irq.h:67: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'unregister_trace_irq_handler_exit':
include/trace/events/irq.h:67: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'register_trace_softirq_entry':
include/trace/events/irq.h:112: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'unregister_trace_softirq_entry':
include/trace/events/irq.h:112: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'register_trace_softirq_exit':
include/trace/events/irq.h:126: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'unregister_trace_softirq_exit':
include/trace/events/irq.h:126: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'register_trace_softirq_raise':
include/trace/events/irq.h:140: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/irq.h: In function 'unregister_trace_softirq_raise':
include/trace/events/irq.h:140: error: 'ENOSYS' undeclared (first use in this function)
In file included from include/linux/serial_core.h:213,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:

 楼主| woshiqyp 发表于 2017-10-9 17:23:51 | 显示全部楼层
support_lyl 发表于 2017-9-29 08:53
你看下报错的是哪个java文件,在类名前加个/*@hide**/试下



include/linux/interrupt.h: In function 'irq_set_affinity':
include/linux/interrupt.h:288: error: 'EINVAL' undeclared (first use in this function)
include/linux/interrupt.h: In function 'irq_set_affinity_hint':
include/linux/interrupt.h:301: error: 'EINVAL' undeclared (first use in this function)
include/linux/interrupt.h: At top level:
include/linux/interrupt.h:475: error: expected declaration specifiers or '...' before 'softirq_work_list'
include/linux/interrupt.h:475: warning: data definition has no type or storage class
include/linux/interrupt.h:475: warning: type defaults to 'int' in declaration of 'DECLARE_PER_CPU' [-Wimplicit-int]
include/linux/interrupt.h:475: error: conflicting types for 'DECLARE_PER_CPU'
include/linux/hrtimer.h:324: note: previous declaration of 'DECLARE_PER_CPU' was here
include/linux/interrupt.h:477: error: expected declaration specifiers or '...' before 'ksoftirqd'
include/linux/interrupt.h:477: warning: data definition has no type or storage class
include/linux/interrupt.h:477: warning: type defaults to 'int' in declaration of 'DECLARE_PER_CPU' [-Wimplicit-int]
include/linux/interrupt.h:477: error: conflicting types for 'DECLARE_PER_CPU'
include/linux/hrtimer.h:324: note: previous declaration of 'DECLARE_PER_CPU' was here
include/linux/interrupt.h: In function 'this_cpu_ksoftirqd':
include/linux/interrupt.h:481: error: 'ksoftirqd' undeclared (first use in this function)
include/linux/interrupt.h:481: warning: type defaults to 'int' in declaration of 'pscr_ret__' [-Wimplicit-int]
include/linux/interrupt.h:481: error: implicit declaration of function '__verify_pcpu_ptr' [-Wimplicit-function-declaration]
include/linux/interrupt.h:481: warning: type defaults to 'int' in declaration of 'ret__' [-Wimplicit-int]
include/linux/interrupt.h:481: error: implicit declaration of function 'this_cpu_ptr' [-Wimplicit-function-declaration]
include/linux/interrupt.h:481: warning: type defaults to 'int' in declaration of 'ret__' [-Wimplicit-int]
include/linux/interrupt.h:481: warning: type defaults to 'int' in declaration of 'ret__' [-Wimplicit-int]
include/linux/interrupt.h:481: warning: type defaults to 'int' in declaration of 'ret__' [-Wimplicit-int]
include/linux/interrupt.h:481: warning: return makes pointer from integer without a cast
In file included from include/linux/fs.h:10,
                 from include/linux/tty.h:39,
                 from include/linux/serial_core.h:217,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/ioctl.h:4:23: error: asm/ioctl.h: No such file or directory
In file included from include/linux/fs.h:382,
                 from include/linux/tty.h:39,
                 from include/linux/serial_core.h:217,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/dcache.h: At top level:
include/linux/dcache.h:173: error: requested alignment is not a constant
In file included from include/linux/fs.h:387,
                 from include/linux/tty.h:39,
                 from include/linux/serial_core.h:217,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/radix-tree.h: In function 'radix_tree_replace_slot':
include/linux/radix-tree.h:216: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
In file included from include/linux/tty.h:39,
                 from include/linux/serial_core.h:217,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/fs.h: In function 'fcntl_getlk':
include/linux/fs.h:1210: error: 'EINVAL' undeclared (first use in this function)
include/linux/fs.h: In function 'fcntl_setlk':
include/linux/fs.h:1216: error: 'EACCES' undeclared (first use in this function)
include/linux/fs.h: In function 'fcntl_getlk64':
include/linux/fs.h:1222: error: 'EINVAL' undeclared (first use in this function)
include/linux/fs.h: In function 'fcntl_setlk64':
include/linux/fs.h:1228: error: 'EACCES' undeclared (first use in this function)
include/linux/fs.h: In function 'posix_lock_file':
include/linux/fs.h:1274: error: 'ENOLCK' undeclared (first use in this function)
include/linux/fs.h: In function 'posix_lock_file_wait':
include/linux/fs.h:1279: error: 'ENOLCK' undeclared (first use in this function)
include/linux/fs.h: In function 'posix_unblock_lock':
include/linux/fs.h:1285: error: 'ENOENT' undeclared (first use in this function)
include/linux/fs.h: In function 'vfs_lock_file':
include/linux/fs.h:1296: error: 'ENOLCK' undeclared (first use in this function)
include/linux/fs.h: In function 'flock_lock_file_wait':
include/linux/fs.h:1307: error: 'ENOLCK' undeclared (first use in this function)
include/linux/fs.h: In function 'generic_setlease':
include/linux/fs.h:1323: error: 'EINVAL' undeclared (first use in this function)
include/linux/fs.h: In function 'vfs_setlease':
include/linux/fs.h:1329: error: 'EINVAL' undeclared (first use in this function)
include/linux/fs.h: In function 'lease_modify':
include/linux/fs.h:1334: error: 'EINVAL' undeclared (first use in this function)
include/linux/fs.h: At top level:
include/linux/fs.h:1641: error: requested alignment is not a constant
include/linux/fs.h: In function 'get_write_access':
include/linux/fs.h:2277: error: 'ETXTBSY' undeclared (first use in this function)
include/linux/fs.h: In function 'deny_write_access':
include/linux/fs.h:2282: error: 'ETXTBSY' undeclared (first use in this function)
In file included from include/linux/serial_core.h:219,
                 from include/linux/serial_8250.h:14,
                 from include/linux/kgdb.h:16,
                 from include/linux/fb.h:7,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:


 楼主| woshiqyp 发表于 2017-10-9 17:24:17 | 显示全部楼层
support_lyl 发表于 2017-9-29 08:53
你看下报错的是哪个java文件,在类名前加个/*@hide**/试下



include/linux/sysrq.h: In function 'register_sysrq_key':
include/linux/sysrq.h:68: error: 'EINVAL' undeclared (first use in this function)
include/linux/sysrq.h: In function 'unregister_sysrq_key':
include/linux/sysrq.h:73: error: 'EINVAL' undeclared (first use in this function)
In file included from include/linux/slab_def.h:18,
                 from include/linux/slab.h:189,
                 from include/linux/fb.h:409,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/trace/events/kmem.h: In function 'register_trace_kmalloc':
include/trace/events/kmem.h:45: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kmalloc':
include/trace/events/kmem.h:45: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_kmem_cache_alloc':
include/trace/events/kmem.h:53: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kmem_cache_alloc':
include/trace/events/kmem.h:53: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_kmalloc_node':
include/trace/events/kmem.h:99: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kmalloc_node':
include/trace/events/kmem.h:99: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_kmem_cache_alloc_node':
include/trace/events/kmem.h:108: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kmem_cache_alloc_node':
include/trace/events/kmem.h:108: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_kfree':
include/trace/events/kmem.h:136: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kfree':
include/trace/events/kmem.h:136: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_kmem_cache_free':
include/trace/events/kmem.h:143: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_kmem_cache_free':
include/trace/events/kmem.h:143: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_page_free_direct':
include/trace/events/kmem.h:150: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_page_free_direct':
include/trace/events/kmem.h:150: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_pagevec_free':
include/trace/events/kmem.h:172: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_pagevec_free':
include/trace/events/kmem.h:172: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_page_alloc':
include/trace/events/kmem.h:194: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_page_alloc':
include/trace/events/kmem.h:194: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_page_alloc_zone_locked':
include/trace/events/kmem.h:249: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_page_alloc_zone_locked':
include/trace/events/kmem.h:249: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_page_pcpu_drain':
include/trace/events/kmem.h:256: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_page_pcpu_drain':
include/trace/events/kmem.h:256: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'register_trace_mm_page_alloc_extfrag':
include/trace/events/kmem.h:267: error: 'ENOSYS' undeclared (first use in this function)
include/trace/events/kmem.h: In function 'unregister_trace_mm_page_alloc_extfrag':
include/trace/events/kmem.h:267: error: 'ENOSYS' undeclared (first use in this function)
In file included from include/linux/slab_def.h:146,
                 from include/linux/slab.h:189,
                 from include/linux/fb.h:409,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
include/linux/kmalloc_sizes.h:5:5: warning: "CONFIG_ARM_L1_CACHE_SHIFT" is not defined
include/linux/kmalloc_sizes.h:9:5: warning: "CONFIG_ARM_L1_CACHE_SHIFT" is not defined
In file included from include/linux/fb.h:410,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:30:
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/kernel/arch/arm/include/asm/io.h:111:21: error: mach/io.h: No such file or directory
In file included from include/linux/module.h:13,
                 from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:31:
include/linux/kmod.h: In function 'request_module':
include/linux/kmod.h:42: error: 'ENOSYS' undeclared (first use in this function)
include/linux/kmod.h: In function 'request_module_nowait':
include/linux/kmod.h:43: error: 'ENOSYS' undeclared (first use in this function)
include/linux/kmod.h: In function 'call_usermodehelper_fns':
include/linux/kmod.h:99: error: 'ENOMEM' undeclared (first use in this function)
In file included from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:31:
include/linux/module.h: In function 'lookup_module_symbol_name':
include/linux/module.h:583: error: 'ERANGE' undeclared (first use in this function)
In file included from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:31:
include/linux/module.h: In function 'lookup_module_symbol_attrs':
include/linux/module.h:588: error: 'ERANGE' undeclared (first use in this function)
include/linux/module.h: In function 'module_get_kallsym':
include/linux/module.h:595: error: 'ERANGE' undeclared (first use in this function)
In file included from /opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:38:
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/services4/3rdparty/dc_ti335x_linux/omaplfb.h:46:6: warning: "LINUX_VERSION_CODE" is not defined
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/services4/3rdparty/dc_ti335x_linux/omaplfb.h:46:28: warning: "KERNEL_VERSION" is not defined
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/services4/3rdparty/dc_ti335x_linux/omaplfb.h:46:42: error: missing binary operator before token "("
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c: In function 'OMAPLFBInitFBDev':
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:1062: error: implicit declaration of function 'acquire_console_sem' [-Wimplicit-function-declaration]
/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.c:1287: error: implicit declaration of function 'release_console_sem' [-Wimplicit-function-declaration]
make[5]: *** [/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild/services4/3rdparty/dc_ti335x_linux/omaplfb_displayclass.o] 错误 1
make[4]: *** [_module_/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/binary2_omap4430_android_release/target/kbuild] 错误 2
make[3]: *** [kbuild] 错误 2
make[2]: *** [build] 错误 2
make[2]:正在离开目录 `/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx/eurasiacon/build/linux2/omap4430_android'
make[1]: *** [buildkernel] 错误 2
make[1]:正在离开目录 `/opt/EmbedSky/TQ3358/TQ3358_Android4.0_v1.2/hardware/embedsky/sgx'
make: *** [sgx] 错误 2

 楼主| woshiqyp 发表于 2017-10-18 08:42:27 | 显示全部楼层
使用平台资源:TQ335x_Android4.0_v2.0.1.tar.bz2 同环境一次编译成功
使用平台资源:TQ3358_Android_4.0.3_V1.2.tar.bz2 编译不通过出现帖中问题
希望能处理一下别再坑到后面人
support_lyl 发表于 2017-10-18 12:37:27 | 显示全部楼层
woshiqyp 发表于 2017-10-18 08:42
使用平台资源:TQ335x_Android4.0_v2.0.1.tar.bz2 同环境一次编译成功
使用平台资源:TQ3358_Android_4.0. ...

刚才试了一下确实是我们这边的问题,实在很抱歉
下面是解决方法:
cd kernel
cp config_TQ3358_android_for_V2_V2.0 .config
make ARCH=arm CROSS_COMPILE=arm-linux- zImage -j8
cd ..
./build_android.sh
测试完是可以编译出文件系统的,执行make zImage时内核会报错,这个可以忽略,因为只要用到内核的头文件
附件是config_TQ3358_android_for_V2_V2.0.txt(其实是android kernel的配置文件,附件名限制在后缀加了.txt)感谢提出问题,后续更新会解决此问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-3-28 20:59 , Processed in 1.062507 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表