Where did you define CONFIG_SYS_NO_FLASH in your file ?
Somewhere in your file you should have something like :
/* NOR Flash */
#ifndef CONFIG_SYS_NO_FLASH
#define CONFIG_SYS_FLASH_BASE 0x00000000
#define CONFIG_SYS_MAX_FLASH_BANKS 1
#define CONFIG_SYS_MAX_FLASH_SECT 512
#define CONFIG_FLASH_CFI_DRIVER
#define CONFIG_SYS_FLASH_CFI
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
#endif
So you need to ensure CONFIG_SYS_NO_FLASH is defined before this part.
I tried to build rskrza1 U-boot-2015.01 from Renesas git repository with CONFIG_SYS_NO_FLASH, I didn't get any error.