Wind River Support Network

HomeDefectsLIN6-9506
Fixed

LIN6-9506 : build error in intel-x86-32/intel-x86-32 UP platform project

Created: Feb 27, 2015    Updated: Dec 3, 2018
Resolved Date: Mar 1, 2015
Found In Version: 6.0.0.16
Fix Version: 6.0.0.18
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP

Description

when build a intel-x86-32/intel-x86-32 UP platform project, a error msg shows that some functions are not declared in 'byt_plat_clock.c' and 'platform_camera.c', see error log below.

#####################################
NOTE: Running task 627 of 2251 (ID: 330, /workspace/64_up_prj/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_compile)
NOTE: recipe linux-windriver-3.10-r0: task do_compile: Started
ERROR: Function failed: do_compile (log file is located at /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_compile/log.do_compile.20965)
ERROR: Logfile of failure stored in: /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_compile/log.do_compile.20965
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make bzImage CC=x86_64-wrs-linux-gcc   LD=x86_64-wrs-linux-ld
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/Makefile:1041: target `_clean_samples' given more than once in the same rule.
|   GEN     /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux-intel-x86-64-standard-build/Makefile
| scripts/kconfig/conf --silentoldconfig Kconfig
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/Makefile:1041: target `_clean_samples' given more than once in the same rule.
|   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
|   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
|   SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
|   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
|   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
|   SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
|   SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
|   HOSTCC  arch/x86/tools/relocs_32.o
|   HOSTCC  arch/x86/tools/relocs_64.o
|   HOSTCC  arch/x86/tools/relocs_common.o
|   HOSTLD  arch/x86/tools/relocs
|   Using /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux as source for kernel
|   GEN     /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux-intel-x86-64-standard-build/Makefile
|   WRAP    arch/x86/include/generated/asm/clkdev.h
|   CHK     include/generated/uapi/linux/version.h
|   UPD     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
|   UPD     include/generated/utsrelease.h
|   CC      kernel/bounds.s
|   GEN     include/generated/bounds.h
|   CC      arch/x86/kernel/asm-offsets.s
|   GEN     include/generated/asm-offsets.h
|   CALL    /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/scripts/checksyscalls.sh
|   CC      scripts/mod/empty.o
|   HOSTCC  scripts/mod/mk_elfconfig
|   MKELF   scripts/mod/elfconfig.h
|   CC      scripts/mod/devicetable-offsets.s
|   GEN     scripts/mod/devicetable-offsets.h
|   HOSTCC  scripts/mod/file2alias.o
|   HOSTCC  scripts/mod/modpost.o
|   HOSTCC  scripts/mod/sumversion.o
|   HOSTLD  scripts/mod/modpost
|   HOSTCC  scripts/kallsyms
|   HOSTCC  scripts/conmakehash
|   HOSTCC  scripts/bin2c
|   HOSTCC  scripts/recordmcount
|   HOSTCC  scripts/sortextable
|   CC      init/main.o
|   CHK     include/generated/compile.h
|   UPD     include/generated/compile.h
|   CC      init/version.o
|   CC      init/do_mounts.o
|   CC      init/do_mounts_rd.o
|   CC      init/do_mounts_initrd.o
|   CC      init/do_mounts_md.o
|   LD      init/mounts.o
|   CC      init/initramfs.o
|   CC      init/calibrate.o
|   CC      init/init_task.o
|   LD      init/built-in.o
|   HOSTCC  usr/gen_init_cpio
|   GEN     usr/initramfs_data.cpio
|   AS      usr/initramfs_data.o
|   LD      usr/built-in.o
|   LD      arch/x86/crypto/built-in.o
|   AS      arch/x86/ia32/ia32entry.o
|   CC      arch/x86/ia32/sys_ia32.o
|   CC      arch/x86/ia32/ia32_signal.o
|   CC      arch/x86/ia32/nosyscall.o
|   CC      arch/x86/ia32/syscall_ia32.o
|   LD      arch/x86/ia32/built-in.o
|   CC      arch/x86/kernel/process_64.o
|   CC      arch/x86/kernel/signal.o
|   AS      arch/x86/kernel/entry_64.o
|   CC      arch/x86/kernel/traps.o
|   CC      arch/x86/kernel/irq.o
|   CC      arch/x86/kernel/irq_64.o
|   CC      arch/x86/kernel/dumpstack_64.o
|   CC      arch/x86/kernel/time.o
|   CC      arch/x86/kernel/ioport.o
|   CC      arch/x86/kernel/ldt.o
|   CC      arch/x86/kernel/dumpstack.o
|   CC      arch/x86/kernel/nmi.o
|   CC      arch/x86/kernel/setup.o
|   CC      arch/x86/kernel/x86_init.o
|   CC      arch/x86/kernel/i8259.o
|   CC      arch/x86/kernel/irqinit.o
|   CC      arch/x86/kernel/jump_label.o
|   CC      arch/x86/kernel/irq_work.o
|   CC      arch/x86/kernel/probe_roms.o
|   CC      arch/x86/kernel/sys_x86_64.o
|   CC      arch/x86/kernel/x8664_ksyms_64.o
|   CC      arch/x86/kernel/syscall_64.o
|   CC      arch/x86/kernel/vsyscall_64.o
|   AS      arch/x86/kernel/vsyscall_emu_64.o
|   CC      arch/x86/kernel/espfix_64.o
|   CC      arch/x86/kernel/bootflag.o
|   CC      arch/x86/kernel/e820.o
|   CC      arch/x86/kernel/pci-dma.o
|   CC      arch/x86/kernel/quirks.o
|   CC      arch/x86/kernel/topology.o
|   CC      arch/x86/kernel/kdebugfs.o
|   CC      arch/x86/kernel/alternative.o
|   CC      arch/x86/kernel/i8253.o
|   CC      arch/x86/kernel/pci-nommu.o
|   CC      arch/x86/kernel/hw_breakpoint.o
|   CC      arch/x86/kernel/tsc.o
|   CC      arch/x86/kernel/io_delay.o
|   CC      arch/x86/kernel/rtc.o
|   CC      arch/x86/kernel/pci-iommu_table.o
|   CC      arch/x86/kernel/resource.o
|   CC      arch/x86/kernel/process.o
|   CC      arch/x86/kernel/i387.o
|   CC      arch/x86/kernel/xsave.o
|   CC      arch/x86/kernel/ptrace.o
|   CC      arch/x86/kernel/tls.o
|   CC      arch/x86/kernel/step.o
|   CC      arch/x86/kernel/i8237.o
|   CC      arch/x86/kernel/stacktrace.o
|   CC      arch/x86/kernel/acpi/boot.o
|   CC      arch/x86/kernel/acpi/sleep.o
|   AS      arch/x86/kernel/acpi/wakeup_64.o
|   CC      arch/x86/kernel/acpi/cstate.o
|   LD      arch/x86/kernel/acpi/built-in.o
|   CC      arch/x86/kernel/apic/apic.o
|   CC      arch/x86/kernel/apic/apic_noop.o
|   CC      arch/x86/kernel/apic/ipi.o
|   CC      arch/x86/kernel/apic/hw_nmi.o
|   CC      arch/x86/kernel/apic/io_apic.o
|   CC      arch/x86/kernel/apic/apic_flat_64.o
|   CC      arch/x86/kernel/apic/probe_64.o
|   LD      arch/x86/kernel/apic/built-in.o
|   CC      arch/x86/kernel/cpu/intel_cacheinfo.o
|   CC      arch/x86/kernel/cpu/scattered.o
|   CC      arch/x86/kernel/cpu/topology.o
|   CC      arch/x86/kernel/cpu/proc.o
|   MKCAP   arch/x86/kernel/cpu/capflags.c
|   CC      arch/x86/kernel/cpu/capflags.o
|   CC      arch/x86/kernel/cpu/powerflags.o
|   CC      arch/x86/kernel/cpu/common.o
|   CC      arch/x86/kernel/cpu/rdrand.o
|   CC      arch/x86/kernel/cpu/match.o
|   CC      arch/x86/kernel/cpu/bugs_64.o
|   CC      arch/x86/kernel/cpu/intel.o
|   CC      arch/x86/kernel/cpu/amd.o
|   CC      arch/x86/kernel/cpu/centaur.o
|   CC      arch/x86/kernel/cpu/perf_event.o
|   CC      arch/x86/kernel/cpu/perf_event_amd.o
|   CC      arch/x86/kernel/cpu/perf_event_amd_uncore.o
|   CC      arch/x86/kernel/cpu/perf_event_p6.o
|   CC      arch/x86/kernel/cpu/perf_event_knc.o
|   CC      arch/x86/kernel/cpu/perf_event_p4.o
|   CC      arch/x86/kernel/cpu/perf_event_intel_lbr.o
|   CC      arch/x86/kernel/cpu/perf_event_intel_ds.o
|   CC      arch/x86/kernel/cpu/perf_event_intel.o
|   CC      arch/x86/kernel/cpu/perf_event_intel_uncore.o
|   CC      arch/x86/kernel/cpu/mcheck/mce.o
|   CC      arch/x86/kernel/cpu/mcheck/mce-severity.o
|   CC      arch/x86/kernel/cpu/mcheck/mce_intel.o
|   CC      arch/x86/kernel/cpu/mcheck/mce_amd.o
|   CC      arch/x86/kernel/cpu/mcheck/threshold.o
|   CC      arch/x86/kernel/cpu/mcheck/therm_throt.o
|   LD      arch/x86/kernel/cpu/mcheck/built-in.o
|   CC      arch/x86/kernel/cpu/mtrr/main.o
|   CC      arch/x86/kernel/cpu/mtrr/if.o
|   CC      arch/x86/kernel/cpu/mtrr/generic.o
|   CC      arch/x86/kernel/cpu/mtrr/cleanup.o
|   LD      arch/x86/kernel/cpu/mtrr/built-in.o
|   CC      arch/x86/kernel/cpu/perfctr-watchdog.o
|   CC      arch/x86/kernel/cpu/perf_event_amd_ibs.o
|   LD      arch/x86/kernel/cpu/built-in.o
|   CC      arch/x86/kernel/kprobes/core.o
|   CC      arch/x86/kernel/kprobes/ftrace.o
|   LD      arch/x86/kernel/kprobes/built-in.o
|   CC      arch/x86/kernel/reboot.o
|   CC      arch/x86/kernel/msr.o
|   CC      arch/x86/kernel/cpuid.o
|   CC      arch/x86/kernel/early-quirks.o
|   CC      arch/x86/kernel/mpparse.o
|   CC      arch/x86/kernel/ftrace.o
|   CC      arch/x86/kernel/trace_clock.o
|   CC      arch/x86/kernel/module.o
|   CC      arch/x86/kernel/kgdb.o
|   CC      arch/x86/kernel/early_printk.o
|   CC      arch/x86/kernel/hpet.o
|   CC      arch/x86/kernel/amd_nb.o
|   CC      arch/x86/kernel/test_rodata.o
|   CC      arch/x86/kernel/pcspeaker.o
|   CC      arch/x86/kernel/microcode_core_early.o
|   CC      arch/x86/kernel/microcode_intel_early.o
|   CC      arch/x86/kernel/microcode_intel_lib.o
|   CC      arch/x86/kernel/microcode_core.o
|   CC      arch/x86/kernel/microcode_intel.o
|   LD      arch/x86/kernel/microcode.o
|   CC      arch/x86/kernel/check.o
|   CC      arch/x86/kernel/pci-swiotlb.o
|   CC      arch/x86/kernel/uprobes.o
|   CC      arch/x86/kernel/perf_regs.o
|   CC      arch/x86/kernel/amd_gart_64.o
|   CC      arch/x86/kernel/aperture_64.o
|   CC      arch/x86/kernel/mmconf-fam10h_64.o
|   CC      arch/x86/kernel/vsmp_64.o
|   LD      arch/x86/kernel/built-in.o
|   AS      arch/x86/kernel/head_64.o
|   CC      arch/x86/kernel/head64.o
|   CC      arch/x86/kernel/head.o
|   LDS     arch/x86/kernel/vmlinux.lds
|   CC      arch/x86/mm/init.o
|   CC      arch/x86/mm/init_64.o
|   CC      arch/x86/mm/fault.o
|   CC      arch/x86/mm/ioremap.o
|   CC      arch/x86/mm/extable.o
|   CC      arch/x86/mm/pageattr.o
|   CC      arch/x86/mm/mmap.o
|   CC      arch/x86/mm/pat.o
|   CC      arch/x86/mm/pgtable.o
|   CC      arch/x86/mm/physaddr.o
|   CC      arch/x86/mm/gup.o
|   CC      arch/x86/mm/setup_nx.o
|   CC      arch/x86/mm/pat_rbtree.o
|   CC      arch/x86/mm/hugetlbpage.o
|   LD      arch/x86/mm/built-in.o
|   LD      arch/x86/net/built-in.o
|   CC      arch/x86/platform/byt/byt-board.o
|   LD      arch/x86/platform/byt/built-in.o
|   LD      arch/x86/platform/ce4100/built-in.o
|   CC      arch/x86/platform/efi/efi.o
|   CC      arch/x86/platform/efi/efi_64.o
|   AS      arch/x86/platform/efi/efi_stub_64.o
|   CC      arch/x86/platform/efi/efi-bgrt.o
|   LD      arch/x86/platform/efi/built-in.o
|   LD      arch/x86/platform/geode/built-in.o
|   LD      arch/x86/platform/goldfish/built-in.o
|   CC      arch/x86/platform/intel-atom/platform_mt9m114.o
|   CC      arch/x86/platform/intel-atom/platform_ov5640_2.o
|   CC      arch/x86/platform/intel-atom/platform_ov5640_1.o
|   CC      arch/x86/platform/intel-atom/platform_camera.o
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c: In function '__gpio_direction_output':
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c:75:2: error: implicit declaration of function 'ioremap_nocache' [-Werror=implicit-function-declaration]
|   gpio_base = ioremap_nocache(IOBASEADDR+GPIO_OFFSET,0xF);
|   ^
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c:75:12: warning: assignment makes pointer from integer without a cast [enabled by default]
|   gpio_base = ioremap_nocache(IOBASEADDR+GPIO_OFFSET,0xF);
|             ^
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c:82:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
|   temp=readl(gpio_base+8);
|   ^
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c:85:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
|   writel(temp,gpio_base+8);
|   ^
| /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/linux/arch/x86/platform/intel-atom/platform_camera.c:98:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
|   iounmap(gpio_base);
|   ^
| cc1: some warnings being treated as errors
| make[5]: *** [arch/x86/platform/intel-atom/platform_camera.o] Error 1
| make[4]: *** [arch/x86/platform/intel-atom] Error 2
| make[3]: *** [arch/x86/platform] Error 2
| make[2]: *** [arch/x86] Error 2
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_compile/run.do_compile.20965:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /workspace/64_up_prj/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_compile/log.do_compile.20965)
NOTE: recipe linux-windriver-3.10-r0: task do_compile: Failed
ERROR: Task 330 (/workspace/64_up_prj/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_compile) failed with exit code '1'
NOTE: Running task 628 of 2251 (ID: 1786, /workspace/64_up_prj/layers/oe-core/meta/recipes-extended/cracklib/cracklib_2.9.0.bb, do_packagedata)
NOTE: recipe cracklib-2.9.0-r0: task do_packagedata: Started
NOTE: recipe cracklib-2.9.0-r0: task do_packagedata: Succeeded
NOTE: Tasks Summary: Attempted 628 tasks of which 195 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
  /workspace/64_up_prj/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make[1]: *** [export/intel-x86-64-glibc-small-standard-dist.tar.bz2] Error 1
make[1]: Leaving directory `/workspace/64_up_prj'
make: *** [fs] Error 2
Doubleclick here to scan Project '64_up' for errors.
Build Failed in Project '64_up' (Process Exit Value was 2):   2015-02-27 17:35:20   (Elapsed Time: 01:34:55)

Workaround

edit 'byt_plat_clock.c' and 'platform_camera.c', add '#include <linux/io.h>', then rebuild the project.

Steps to Reproduce

1. create platform project by following cmd
<wrLinux install dir>/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-reconfig=yes --enable-kernel=standard --enable-build=production --with-sstate-dir=/SIM_workspace/sstate --enable-checkout-all-layers=yes --enable-rootfs=glibc_small+initramfs
2. disable SMP support
3. build project

Other Downloads


Live chat
Online