#20077: MTD Build Problem - imx6 (OpenWRT Trunk)
-----------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: highest | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Keywords: |
-----------------------+----------------------------------
arm-openwrt-linux-muslgnueabi-gcc -DHAVE_CONFIG_H -I. -I../include
-I../include -I/home/openwrt/openwrt-ubnt-trunk/staging_dir/target-
arm_cortex-a9+neon_musl-1.1.10_eabi/usr/include -I/home/openwrt/openwrt-
ubnt-trunk/staging_dir/target-arm_cortex-a9+neon_musl-1.1.10_eabi/include
-I/home/openwrt/openwrt-ubnt-trunk/staging_dir/toolchain-
arm_cortex-a9+neon_gcc-4.8-linaro_musl-1.1.10_eabi/usr/include
-I/home/openwrt/openwrt-ubnt-trunk/staging_dir/toolchain-
arm_cortex-a9+neon_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify
-I/home/openwrt/openwrt-ubnt-trunk/staging_dir/toolchain-
arm_cortex-a9+neon_gcc-4.8-linaro_musl-1.1.10_eabi/include -Os -pipe
-march=armv7-a -mtune=cortex-a9 -mfpu=neon -fno-caller-saves -fhonour-
copts -Wno-error=unused-but-set-variable -mfloat-abi=hard -Wformat -Werror
=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro -Wall -MT mtd.o -MD -MP -MF .deps/mtd.Tpo -c -o mtd.o
mtd.c
mtd.c: In function 'mtd_read_page':
mtd.c:253:8: warning: variable 'oobdata' set but not used [-Wunused-but-
set-variable]
void *oobdata;
^
mtd.c: In function 'mtd_write_page':
mtd.c:331:14: warning: variable 'oobdata' set but not used [-Wunused-but-
set-variable]
const void *oobdata;
^
mtd.c: At top level:
mtd.c:2920:2: warning: implicit declaration of function 'offsetof'
[-Wimplicit-function-declaration]
ARG_IGNORE(chip_count),
^
mtd.c:2913:57: error: expected expression before 'struct'
#define ARG_IGNORE(x) { .name = #x , .offset = offsetof(struct
mtd_config, x), .ignore = true, }
^
mtd.c:2920:2: note: in expansion of macro 'ARG_IGNORE'
ARG_IGNORE(chip_count),
^
mtd.c:2913:57: error: expected expression before 'struct'
#define ARG_IGNORE(x) { .name = #x , .offset = offsetof(struct
mtd_config, x), .ignore = true, }
^
mtd.c:2921:2: note: in expansion of macro 'ARG_IGNORE'
ARG_IGNORE(chip_0_offset),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2922:2: note: in expansion of macro 'ARG'
ARG(chip_0_size),
^
mtd.c:2913:57: error: expected expression before 'struct'
#define ARG_IGNORE(x) { .name = #x , .offset = offsetof(struct
mtd_config, x), .ignore = true, }
^
mtd.c:2923:2: note: in expansion of macro 'ARG_IGNORE'
ARG_IGNORE(chip_1_offset),
^
mtd.c:2913:57: error: expected expression before 'struct'
#define ARG_IGNORE(x) { .name = #x , .offset = offsetof(struct
mtd_config, x), .ignore = true, }
^
mtd.c:2924:2: note: in expansion of macro 'ARG_IGNORE'
ARG_IGNORE(chip_1_size),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2925:2: note: in expansion of macro 'ARG'
ARG(search_exponent),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2926:2: note: in expansion of macro 'ARG'
ARG(data_setup_time),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2927:2: note: in expansion of macro 'ARG'
ARG(data_hold_time),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2928:2: note: in expansion of macro 'ARG'
ARG(address_setup_time),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2929:2: note: in expansion of macro 'ARG'
ARG(data_sample_time),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2930:2: note: in expansion of macro 'ARG'
ARG(row_address_size),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2931:2: note: in expansion of macro 'ARG'
ARG(column_address_size),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2932:2: note: in expansion of macro 'ARG'
ARG(read_command_code1),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2933:2: note: in expansion of macro 'ARG'
ARG(read_command_code2),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2934:2: note: in expansion of macro 'ARG'
ARG(boot_stream_major_version),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2935:2: note: in expansion of macro 'ARG'
ARG(boot_stream_minor_version),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2936:2: note: in expansion of macro 'ARG'
ARG(ncb_version),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2937:2: note: in expansion of macro 'ARG'
ARG(boot_stream_1_address),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2938:2: note: in expansion of macro 'ARG'
ARG(boot_stream_2_address),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2940:2: note: in expansion of macro 'ARG'
ARG(chip_0_device_path),
^
mtd.c:2912:50: error: initializer element is not constant
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2940:2: note: in expansion of macro 'ARG'
ARG(chip_0_device_path),
^
mtd.c:2912:50: error: (near initialization for 'mtd_charp_args[0].offset')
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2940:2: note: in expansion of macro 'ARG'
ARG(chip_0_device_path),
^
mtd.c:2912:50: error: expected expression before 'struct'
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2941:2: note: in expansion of macro 'ARG'
ARG(chip_1_device_path),
^
mtd.c:2912:50: error: initializer element is not constant
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2941:2: note: in expansion of macro 'ARG'
ARG(chip_1_device_path),
^
mtd.c:2912:50: error: (near initialization for 'mtd_charp_args[1].offset')
#define ARG(x) { .name = #x , .offset = offsetof(struct mtd_config, x),
.ignore = false, }
^
mtd.c:2941:2: note: in expansion of macro 'ARG'
ARG(chip_1_device_path),
^
mtd.c:421:28: warning: 'none_oobinfo' defined but not used [-Wunused-
variable]
static struct nand_oobinfo none_oobinfo = { .useecc = MTD_NANDECC_OFF };
^
make[5]: *** [mtd.o] Error 1
make[5]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk/build_dir
/target-arm_cortex-a9+neon_musl-1.1.10_eabi/kobs-ng-3.0.35-4.0.0/src'
make[5]: Entering directory `/home/openwrt/openwrt-ubnt-trunk/build_dir
/target-arm_cortex-a9+neon_musl-1.1.10_eabi/kobs-ng-3.0.35-4.0.0'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk/build_dir
/target-arm_cortex-a9+neon_musl-1.1.10_eabi/kobs-ng-3.0.35-4.0.0'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk/build_dir
/target-arm_cortex-a9+neon_musl-1.1.10_eabi/kobs-ng-3.0.35-4.0.0'
make[3]: *** [/home/openwrt/openwrt-ubnt-trunk/build_dir/target-
arm_cortex-a9+neon_musl-1.1.10_eabi/kobs-ng-3.0.35-4.0.0/.built] Error 2
make[3]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk/package/boot
/kobs-ng'
make[2]: *** [package/boot/kobs-ng/compile] Error 2
make[2]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk'
make[1]: *** [/home/openwrt/openwrt-ubnt-trunk/staging_dir/target-
arm_cortex-a9+neon_musl-1.1.10_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/openwrt-ubnt-trunk'
make: *** [world] Error 2
--
Ticket URL: <https://dev.openwrt.org/ticket/20077>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets